Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main (v3.5.0) on 2022-02-08 #243

Merged
merged 266 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
6cc30fe
fix small
meltingrabbit Jan 5, 2022
bdc546d
delete temp variable
chutaro Jan 5, 2022
f2aa923
Merge pull request #133 from ut-issl/feature/improve_TMGR
chutaro Jan 5, 2022
415f44e
認証情報を環境変数から取得できるようにした
yngyu Jan 7, 2022
95646d6
modify README
yngyu Jan 7, 2022
f8a0543
modify readme & and blank
yngyu Jan 10, 2022
99b697d
Merge pull request #172 from ut-issl/feature/test_use_os_env
yngyu Jan 11, 2022
9fa905d
add USE_32BIT_COMPILER option for build with 32bit(only) compiler
sksat Jan 12, 2022
c615e5c
Merge pull request #174 from ut-issl/feature/fix-cmake-32bit
sksat Jan 12, 2022
b242c60
added utl_cmd
chutaro Dec 15, 2021
0e46451
modify PH
chutaro Dec 16, 2021
cb9a8ea
modify little
chutaro Dec 16, 2021
4c3076b
copied packet in PH_add_utl_cmd_
chutaro Dec 16, 2021
8a2f52a
modify little for coding rule
chutaro Dec 16, 2021
ff4a32d
reflect TMGR changes
chutaro Jan 5, 2022
5a1503c
add Cmd_TMGR_SET_UTL_UNIXTIME_EPOCH
chutaro Jan 5, 2022
032b27a
add utl_unixtime_epoch to MOBC_tlm
chutaro Jan 7, 2022
3887bf0
reflect reviews
chutaro Jan 12, 2022
c2d3778
Merge pull request #114 from ut-issl/feature/utl_cmd
chutaro Jan 13, 2022
660cf2a
add link to discussion in readme
meltingrabbit Jan 13, 2022
16f9ca8
Merge pull request #178 from ut-issl/feature/add_discussion_to_readme
meltingrabbit Jan 13, 2022
e5cfeb8
rename dir name TlmCmd from CmdTlm
meltingrabbit Jan 13, 2022
027af02
rename text to TlmCmd from CmdTlm
meltingrabbit Jan 13, 2022
911171e
fix order
meltingrabbit Jan 13, 2022
7a2523c
fix small
meltingrabbit Jan 13, 2022
222a5bf
Merge pull request #179 from ut-issl/feature/rename_tlmcmd
meltingrabbit Jan 13, 2022
7234a3b
conv code file encode to UTF-8 from SJIS
meltingrabbit Jan 16, 2022
84060f5
fix build ci to disable converting encode
meltingrabbit Jan 16, 2022
a6e4d82
fix encode settings of gcc build
meltingrabbit Jan 16, 2022
6cb23e2
fix CI scripts temporarily
meltingrabbit Jan 16, 2022
1e1502a
fix check_encoding.py
meltingrabbit Jan 16, 2022
3e5ee2f
Merge pull request #184 from ut-issl/feature/change_encode_from_SJIS_…
meltingrabbit Jan 16, 2022
8f66b93
change doxygen input encoding
meltingrabbit Jan 16, 2022
bc9ba16
fix coding rule due to change encoding
meltingrabbit Jan 16, 2022
934837d
Update common.cmake
meltingrabbit Jan 16, 2022
1381271
make check_coding_rule.py encoding independent
meltingrabbit Jan 16, 2022
2c5493e
fix sils setting header and script
meltingrabbit Jan 16, 2022
7bf464e
make check_endoginf.py encoding independent and fix to be applicable …
meltingrabbit Jan 16, 2022
412a3d7
fix enum loader settigns
meltingrabbit Jan 16, 2022
6f4f267
Update build_settings.h
meltingrabbit Jan 16, 2022
b5fa537
fix setting file struct
meltingrabbit Jan 16, 2022
a4eacc4
fix docs small
meltingrabbit Jan 16, 2022
025e083
Merge pull request #185 from ut-issl/feature/fix_after_change_code_en…
meltingrabbit Jan 16, 2022
7ddd636
fix docs filename
meltingrabbit Jan 16, 2022
0643186
del files before filename change
meltingrabbit Jan 16, 2022
d5b63b0
Revert "Disable reviewdog clang-tidy (github-check)"
sksat Jan 16, 2022
c9ae1d4
Merge pull request #186 from ut-issl/feature/fix_docs_file_name
meltingrabbit Jan 16, 2022
7517363
Merge pull request #188 from ut-issl/revert-120-feature/fix_ci_review…
sksat Jan 16, 2022
4e25435
update AddSection.pl for utf-8
meltingrabbit Jan 16, 2022
b1fd828
use utf8
gpioblink Jan 16, 2022
8e7f878
add gs ccsds config init
yngyu Jan 14, 2022
7a5572e
Merge pull request #180 from ut-issl/feature/add_gs_ccsds_config_init
yngyu Jan 16, 2022
331cb85
Merge pull request #189 from ut-issl/feature/fix_add_section_script_f…
meltingrabbit Jan 16, 2022
9712579
add version define
meltingrabbit Jan 16, 2022
0f67b0d
add release docs
meltingrabbit Jan 16, 2022
fccf117
Update README.md
meltingrabbit Jan 16, 2022
150179b
fix expression
gpioblink Jan 16, 2022
4647e5c
fix comment
meltingrabbit Jan 17, 2022
04fb7a6
Merge pull request #187 from ut-issl/feature/uart-config-for-device-file
gpioblink Jan 17, 2022
be7e2d9
add link to semver
meltingrabbit Jan 17, 2022
00f9139
fix define
meltingrabbit Jan 17, 2022
2ed28b3
Merge pull request #190 from ut-issl/feature/versioning_and_release
meltingrabbit Jan 17, 2022
96569f3
pre release and update release docs
meltingrabbit Jan 17, 2022
32e5562
Merge pull request #191 from ut-issl/feature/pre_release
meltingrabbit Jan 17, 2022
060fddc
add check of utl_cmd to test_tmgr_set_unixtime
chutaro Jan 13, 2022
8c2b159
add check of utl_cmd to test_utl_unixtime_epoch
chutaro Jan 13, 2022
ff3afe7
seperate test_tmgr_utl_cmd
chutaro Jan 17, 2022
06c9de3
use unixtime instead of ti
chutaro Jan 17, 2022
be6913c
fix bug on time manager
chutaro Jan 17, 2022
874eb20
reflect reviews
chutaro Jan 18, 2022
69b2654
add exception handling
chutaro Jan 18, 2022
770a63d
update C2A_CORE_VER_PRE
meltingrabbit Jan 19, 2022
18be6ed
Merge pull request #182 from ut-issl/feature/add_utl_cmd_tests
chutaro Jan 19, 2022
74b9a2f
add python format check and lint workflow
meltingrabbit Jan 17, 2022
4e7498c
Update python_check_format.yml
meltingrabbit Jan 17, 2022
1069e46
fix reviewdog settings
meltingrabbit Jan 17, 2022
ce41b4f
Create pyproject.toml
meltingrabbit Jan 17, 2022
a5fc1bb
add .flake8
meltingrabbit Jan 17, 2022
f1b7e74
fix line-length
meltingrabbit Jan 17, 2022
392e6ce
apply black
meltingrabbit Jan 17, 2022
b10b1a3
fix for flake8
meltingrabbit Jan 17, 2022
1407964
add ignore of flake8
meltingrabbit Jan 17, 2022
ee19b27
fix .flake8 ignore
meltingrabbit Jan 17, 2022
124f29e
fix for flake8
meltingrabbit Jan 17, 2022
1c189f1
apply black
meltingrabbit Jan 17, 2022
29fa258
fix for flake8
meltingrabbit Jan 17, 2022
636dd8e
fix
meltingrabbit Jan 17, 2022
eb9fa52
fix .flake8 ignore
meltingrabbit Jan 18, 2022
596a5cf
fix readme of test
meltingrabbit Jan 18, 2022
8763ba4
fix flake8 E501
meltingrabbit Jan 18, 2022
fd1c11e
fix flake8 E714
meltingrabbit Jan 18, 2022
90ac5c0
apply black
meltingrabbit Jan 19, 2022
932a67e
add comment in .flake8
meltingrabbit Jan 19, 2022
7eaa41a
Merge pull request #192 from ut-issl/feature/add_python_formatter_linter
meltingrabbit Jan 19, 2022
2e66f5d
fix build ci trigger
meltingrabbit Jan 18, 2022
e1e69f5
Merge pull request #194 from ut-issl/feature/fix_ci_trigger
meltingrabbit Jan 19, 2022
f4e023d
fix CCP_EXEC_STS to unsigned
meltingrabbit Jan 19, 2022
4c3dc39
fix el note
meltingrabbit Jan 19, 2022
fe96296
fix CCP_EXEC_STS conv in tlm db
meltingrabbit Jan 19, 2022
6d8a4d7
fix doxygen comment
meltingrabbit Jan 19, 2022
45a77fa
Merge pull request #196 from ut-issl/feature/fix_ccp_exec_sts
meltingrabbit Jan 19, 2022
c60b715
fix location of add_subdirectory
gpioblink Jan 17, 2022
ae105ab
Merge pull request #193 from ut-issl/feature/use-subdirectory-on-needs
gpioblink Jan 20, 2022
1319b8a
add E501 to ignore for flake8
meltingrabbit Jan 21, 2022
9868f04
move tcp to core
meltingrabbit Jan 21, 2022
c0d9a59
fix include path
meltingrabbit Jan 21, 2022
a400f87
Merge pull request #207 from ut-issl/feature/move_tcp_to_core
meltingrabbit Jan 22, 2022
dad014f
Merge pull request #203 from ut-issl/feature/fix_flake8
meltingrabbit Jan 24, 2022
247a7c6
add communication docs
meltingrabbit Jan 24, 2022
4e351d4
divide ctcp to ctp and ccp
meltingrabbit Jan 24, 2022
6b3a089
add temporary CTCP def
meltingrabbit Jan 24, 2022
6824bf4
fix TCP_APID to APID
meltingrabbit Jan 24, 2022
a160e68
fix to be able to build
meltingrabbit Jan 24, 2022
a3d9927
fix ci script
meltingrabbit Jan 24, 2022
162f425
fix bug
meltingrabbit Jan 24, 2022
ba2323b
add ctcp conv funciton
meltingrabbit Jan 24, 2022
13e5038
add some func to ctcp, ctp, cpp
meltingrabbit Jan 25, 2022
2ad39d5
functionize err output
meltingrabbit Jan 25, 2022
0244a6e
apply black
meltingrabbit Jan 25, 2022
0d086d9
Merge pull request #215 from ut-issl/feature/functionize_error_output…
meltingrabbit Jan 25, 2022
5da66e8
Merge pull request #209 from ut-issl/feature/divide_ctcp_to_ccp_and_ctp
meltingrabbit Jan 25, 2022
cae2a62
delete ctcp typedef
meltingrabbit Jan 24, 2022
ae64006
fix cmd param type
meltingrabbit Jan 24, 2022
cf0f7a3
fix PH
meltingrabbit Jan 24, 2022
9bed651
fix ctcp
meltingrabbit Jan 24, 2022
9c951c4
fix ctcp
meltingrabbit Jan 24, 2022
f792a4f
fix packet list temporary
meltingrabbit Jan 24, 2022
5708de9
fix ctcp
meltingrabbit Jan 24, 2022
d06c4d2
add assertion
meltingrabbit Jan 24, 2022
1de39cb
Merge pull request #210 from ut-issl/feature/delete_ctcp_typedef
meltingrabbit Jan 25, 2022
cd3ce7c
refactor packet list to compatible with any packet
meltingrabbit Jan 24, 2022
86c19dc
add type info for PL
meltingrabbit Jan 25, 2022
3406e74
add packet list util
meltingrabbit Jan 25, 2022
d9b3aae
fix PL_initialize
meltingrabbit Jan 25, 2022
c2d26a1
fix cast
meltingrabbit Jan 25, 2022
46bb230
fix bug
meltingrabbit Jan 25, 2022
90cc1af
add reviewdog check_coding_rule error
sksat Jan 25, 2022
a8c082f
fix check_coding_rule error log path
sksat Jan 25, 2022
2355b3d
fix reviewdog option for check_coding_rule
sksat Jan 25, 2022
04c18a7
Merge pull request #216 from ut-issl/feature/reviewdog-coding-rule
sksat Jan 25, 2022
82e8889
rename analyze packet func name
meltingrabbit Jan 26, 2022
ddc81fc
fix comment
meltingrabbit Jan 26, 2022
d95cd1d
Merge pull request #212 from ut-issl/feature/update_pl_to_compatible_…
meltingrabbit Jan 26, 2022
ce99fb4
remove duplicate error on reviewdog
sksat Jan 27, 2022
9af7341
calm down flake8
sksat Jan 27, 2022
64ef87b
remove pass
sksat Jan 27, 2022
765172c
Merge pull request #224 from ut-issl/feature/skip-same-error
sksat Jan 27, 2022
85f6ca7
fix bce command prefix
yngyu Jan 26, 2022
2d65289
fix cmd order
yngyu Jan 27, 2022
dbf0f69
ドキュメントを修正
yngyu Jan 27, 2022
2f496db
Bytesを削除
yngyu Jan 28, 2022
6b3026d
fix small
meltingrabbit Jan 28, 2022
3e77633
Merge pull request #221 from ut-issl/feature/fix_bce_command_prefix
yngyu Jan 28, 2022
af9e66b
move unixtime_info to TMGR
chutaro Jan 26, 2022
13ee871
did rebase
chutaro Jan 28, 2022
a7d9b28
did rebase 2
chutaro Jan 28, 2022
ac9bc4c
reflect reviews
chutaro Jan 28, 2022
1f5a53c
delete blank lines
chutaro Jan 28, 2022
6e70396
Merge pull request #208 from ut-issl/feature/ti_unixtime_conversion_a…
chutaro Jan 28, 2022
b545355
add space_packet file
meltingrabbit Jan 25, 2022
e8b7d5d
Update check_coding_rule.json
meltingrabbit Jan 27, 2022
76d880f
add CmdSpacePacket
meltingrabbit Jan 27, 2022
1dc7f69
add CCP_MAX_LEN
meltingrabbit Jan 27, 2022
be76618
add SpacePacket
meltingrabbit Jan 27, 2022
9e0590e
add TlmSpacePacket
meltingrabbit Jan 27, 2022
82df129
fix space packet small
meltingrabbit Jan 27, 2022
c315698
delete tcp
meltingrabbit Jan 27, 2022
66b023a
Update CMakeLists.txt
meltingrabbit Jan 27, 2022
e1d83d6
resolve cross-ref
meltingrabbit Jan 27, 2022
5d5f8d0
fix ret err
meltingrabbit Jan 27, 2022
10f255d
resolve incomplete type
meltingrabbit Jan 27, 2022
2c5e66c
fix to be build
meltingrabbit Jan 28, 2022
0c7b0e4
change tlm id pos in tlm space packet header
meltingrabbit Jan 28, 2022
274a24d
update cmd db
meltingrabbit Jan 28, 2022
e74bf3d
update tlm db
meltingrabbit Jan 28, 2022
82e7bfe
update tlm for new packet header
meltingrabbit Jan 28, 2022
092fb39
fix function name
meltingrabbit Jan 28, 2022
5f5a11c
add fixme
meltingrabbit Jan 28, 2022
338a316
Merge pull request #217 from ut-issl/feature/space_packet
meltingrabbit Jan 31, 2022
e65bf44
add 2nd obc code as AOBC
meltingrabbit Jan 31, 2022
74b32fa
update DS
meltingrabbit Jan 31, 2022
c5bc37d
add function to CTP
meltingrabbit Jan 31, 2022
8832cd6
update comm bw c2a ant TF
meltingrabbit Jan 31, 2022
e4e8755
fix small
meltingrabbit Jan 31, 2022
7c4ccb7
change to include packet header in tlm generator
meltingrabbit Jan 31, 2022
dc2ac4a
fix var name
meltingrabbit Feb 1, 2022
4dd416b
fix comment
meltingrabbit Feb 1, 2022
c147a94
add apid getter/setter for CTP
meltingrabbit Feb 1, 2022
4cea54f
add validation in rec c2a packet
meltingrabbit Feb 1, 2022
659568d
fix define name
meltingrabbit Feb 1, 2022
94a65d1
update version
meltingrabbit Feb 2, 2022
f3197d5
Merge pull request #226 from ut-issl/feature/comm_bw_c2a
meltingrabbit Feb 2, 2022
7df9396
Update release.md
meltingrabbit Feb 2, 2022
217c315
Merge pull request #228 from ut-issl/feature/update_release_docs
meltingrabbit Feb 2, 2022
d3f4cf0
fix indent
meltingrabbit Feb 2, 2022
b84c3d0
Merge pull request #230 from ut-issl/feature/fix_docs_indent
meltingrabbit Feb 2, 2022
98a879d
add about common packet
meltingrabbit Feb 2, 2022
8cc2342
add primary header
meltingrabbit Feb 2, 2022
61b47f4
add secondary header
meltingrabbit Feb 2, 2022
e3b9426
fix small
meltingrabbit Feb 2, 2022
2010346
fix title
meltingrabbit Feb 2, 2022
0b749e1
fix comment of PL
meltingrabbit Feb 2, 2022
b562f80
fix PH small
meltingrabbit Feb 2, 2022
7629b5c
fix BCT and BCE small
meltingrabbit Feb 2, 2022
4bbae23
fix check step exit code
sksat Feb 2, 2022
db7cc59
show error log after sed
sksat Feb 2, 2022
0ba9c37
reviewdog with nofilter for check_coding_rule
sksat Feb 2, 2022
1a02762
Merge pull request #229 from ut-issl/feature/update_comm_docs
meltingrabbit Feb 3, 2022
98ca71f
Merge pull request #233 from ut-issl/feature/fix_bct_bce_small
meltingrabbit Feb 3, 2022
1187365
Merge pull request #232 from ut-issl/feature/fix_ph
meltingrabbit Feb 3, 2022
6fd62d2
change git hooks script directory
meltingrabbit Feb 3, 2022
ea11783
add correct exit step
sksat Feb 4, 2022
32b1f1f
omit pipefail
sksat Feb 4, 2022
0b85c90
fix git hooks script file mode
sksat Feb 4, 2022
b3848ca
Merge pull request #236 from ut-issl/feature/change_git_hook_path
meltingrabbit Feb 4, 2022
0648033
Update check_coding_rule.json
meltingrabbit Feb 4, 2022
891c29b
revert filter mode
meltingrabbit Feb 4, 2022
857a35d
Merge pull request #235 from ut-issl/feature/fix-check-coding-rule
sksat Feb 4, 2022
c02bec5
fix ctcp ctp ccp include
meltingrabbit Feb 3, 2022
a446a96
enable to check include guard
meltingrabbit Feb 2, 2022
e97d695
del unnecessary print
meltingrabbit Feb 3, 2022
3489735
fix small
meltingrabbit Feb 3, 2022
53cb8c2
Merge pull request #238 from ut-issl/feature/fix_ctcp_include_path
meltingrabbit Feb 4, 2022
ea8425d
Update check_coding_rule.py
meltingrabbit Feb 4, 2022
5079d3b
fix include guard
meltingrabbit Feb 4, 2022
739b917
fix ds comment
meltingrabbit Feb 4, 2022
9dd7b46
Merge pull request #234 from ut-issl/feature/enable_to_check_include_…
meltingrabbit Feb 4, 2022
ad29a5d
Merge pull request #240 from ut-issl/feature/ds_comment
meltingrabbit Feb 4, 2022
0a7a64c
add EH comment
meltingrabbit Feb 3, 2022
065872d
add validation for multi-level EH
meltingrabbit Feb 3, 2022
79f2aa6
update eh test
meltingrabbit Feb 3, 2022
1e1bd3d
add max_multi_level_num
meltingrabbit Feb 3, 2022
3323a9f
add validation for multi-level EH registration
meltingrabbit Feb 3, 2022
27358ce
update tlm cmd
meltingrabbit Feb 4, 2022
3dbb0f5
add best practice note of EH
meltingrabbit Feb 4, 2022
319a50a
add eh best practice
meltingrabbit Feb 4, 2022
e6ad579
add test of eh max multi level num
meltingrabbit Feb 4, 2022
17a52ea
apply black
meltingrabbit Feb 4, 2022
9ae7d08
fix test
meltingrabbit Feb 4, 2022
2805c93
apply black
meltingrabbit Feb 4, 2022
6272c2d
Merge pull request #239 from ut-issl/feature/prevent_infinite_recursi…
meltingrabbit Feb 4, 2022
283ce2e
update version to v3.5.0
meltingrabbit Feb 4, 2022
80c8d3a
Merge pull request #241 from ut-issl/feature/update_version_3-5-0
meltingrabbit Feb 7, 2022
6dc9883
Revert "update version to v3.5.0"
meltingrabbit Feb 7, 2022
9d4717b
Merge pull request #244 from ut-issl/feature/revert_update_version_3-5-0
meltingrabbit Feb 8, 2022
785bcce
fix build CI exit value
sksat Feb 7, 2022
4718517
fix to pass CI
meltingrabbit Feb 8, 2022
bfced57
Merge pull request #245 from ut-issl/hotfix/build-ci-exit
sksat Feb 8, 2022
a258d84
Revert "Revert "update version to v3.5.0""
meltingrabbit Feb 8, 2022
c3f1729
Merge pull request #246 from ut-issl/feature/update_version_3-5-0_again
meltingrabbit Feb 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 10 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[flake8]
max-line-length = 100
ignore =
# black と競合するので
E203,
E501,
W503,
W504,
# https://github.com/ut-issl/c2a-core/issues/195
E402
69 changes: 31 additions & 38 deletions .github/workflows/build_as_c89.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ on:
- main
- develop
pull_request:
paths:
- '.github/workflows/build_as_c89.yml'
- 'c2a_core_main.c'
- 'c2a_core_main.h'
- 'common.cmake'
- 'Applications/**'
- 'CmdTlm/**'
- 'Drivers/**'
- 'IfWrapper/**'
- 'Library/**'
- 'System/**'
- 'Examples/minimum_user_for_s2e/CMakeLists.txt'
- 'Examples/minimum_user_for_s2e/src/**'
- 'setup.bat'
- 'setup.sh'

jobs:
gen_build_matrix:
Expand Down Expand Up @@ -70,9 +55,9 @@ jobs:
run: |
sudo apt-get install -y libc6-dev-i386 nkf

- name: convert Shift-JIS to UTF-8
if: matrix.compiler == 'clang'
run: find -- . -type f \( -name '*.h' -or -name '*.c' \) -exec nkf --overwrite -S -w80 "{}" \;
# - name: convert Shift-JIS to UTF-8
# if: matrix.compiler == 'clang'
# run: find -- . -type f \( -name '*.h' -or -name '*.c' \) -exec nkf --overwrite -S -w80 "{}" \;

- name: setup
shell: bash
Expand Down Expand Up @@ -137,12 +122,16 @@ jobs:
working-directory: ./Examples/minimum_user_for_s2e/build
run: cat clang_tidy.log

- name: remove duplicate error
if: matrix.compiler == 'clang'
run: |
python Script/CI/remove_duplicate_error.py ./Examples/minimum_user_for_s2e/build/clang_tidy.log "clang-tidy" | tee clang_tidy.log

- name: reviewdog clang-tidy (github-pr-review)
if: matrix.compiler == 'clang' && matrix.warning == 'Werror'
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cp ./Examples/minimum_user_for_s2e/build/clang_tidy.log .
reviewdog \
-name 'clang-tidy(Werror)' \
-level warning \
Expand All @@ -157,22 +146,26 @@ jobs:
-efm="%C%m" \
< clang_tidy.log

# - name: reviewdog clang-tidy (github-check)
# if: matrix.compiler == 'clang' && matrix.warning == 'Wextra'
# env:
# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# cp ./Examples/minimum_user_for_s2e/build/clang_tidy.log .
# reviewdog \
# -name 'clang-tidy(Wextra)' \
# -level warning \
# -fail-on-error=true \
# -filter-mode=nofilter \
# -diff="git diff FETCH_HEAD" \
# -reporter=github-check \
# -efm="%-Gclang-tidy%s" \
# -efm="%-GError while processing%s" \
# -efm="%W%f:%l:%c: warning: %m" \
# -efm="%E%f:%l:%c: error: %m" \
# -efm="%C%m" \
# < clang_tidy.log
- name: reviewdog clang-tidy (github-check)
if: matrix.compiler == 'clang' && matrix.warning == 'Wextra'
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
reviewdog \
-name 'clang-tidy(Wextra)' \
-level warning \
-fail-on-error=true \
-filter-mode=nofilter \
-diff="git diff FETCH_HEAD" \
-reporter=github-check \
-efm="%-Gclang-tidy%s" \
-efm="%-GError while processing%s" \
-efm="%W%f:%l:%c: warning: %m" \
-efm="%E%f:%l:%c: error: %m" \
-efm="%C%m" \
< clang_tidy.log

- name: build failed
if: steps.build.outcome == 'failure'
shell: bash
run: exit 1
15 changes: 0 additions & 15 deletions .github/workflows/build_as_cxx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ on:
- main
- develop
pull_request:
paths:
- '.github/workflows/build_as_cxx.yml'
- 'c2a_core_main.c'
- 'c2a_core_main.h'
- 'common.cmake'
- 'Applications/**'
- 'CmdTlm/**'
- 'Drivers/**'
- 'IfWrapper/**'
- 'Library/**'
- 'System/**'
- 'Examples/minimum_user_for_s2e/CMakeLists.txt'
- 'Examples/minimum_user_for_s2e/src/**'
- 'setup.bat'
- 'setup.sh'

jobs:
build_minimum_user_as_cxx:
Expand Down
43 changes: 41 additions & 2 deletions .github/workflows/check_coding_rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,45 @@ jobs:
- name: setup
shell: bash
run: ./setup.sh
- name: check_coding_rule
run: python ./src_core/Script/CI/check_coding_rule.py ./src_core/Script/CI/check_coding_rule.json
- name: check coding rule
id: check
shell: bash -e {0}
continue-on-error: true
working-directory: ./Examples/minimum_user_for_s2e/src
run: |
python ./src_core/Script/CI/check_coding_rule.py ./src_core/Script/CI/check_coding_rule.json | tee /tmp/coding-rule.log
status="${PIPESTATUS[0]}"
echo "status: ${status}"
echo "::set-output name=status::${status}"
exit "${status}"

- name: install reviewdog
uses: reviewdog/[email protected]

- name: fix error log source file path
run: |
sed 's/.\/src_core\///g' < /tmp/coding-rule.log \
| > ./coding-rule.log \
sed 's/.\/src_user/Examples\/minimum_user_for_s2e\/src\/src_user/g'
cat ./coding-rule.log

- name: reviewdog(github-pr-review)
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
reviewdog \
-name 'check_coding_rule' \
-level error \
-fail-on-error=true \
-filter-mode=added \
-diff="git diff FETCH_HEAD" \
-reporter=github-pr-review \
-efm="%-GThe above files are invalid coding rule." \
-efm="%E%f: %l: %m" \
-efm="%Z%s" \
< coding-rule.log

- name: exit
shell: bash
run: |
exit $(( "${{ steps.check.outputs.status }}" ))
2 changes: 1 addition & 1 deletion .github/workflows/check_encoding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
architecture: 'x64'
- run: pip install chardet
- name: check_encoding
run: python check_encoding.py
run: python ./check_encoding.py ./check_encoding.json
working-directory: ./Script/CI
26 changes: 26 additions & 0 deletions .github/workflows/python_check_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: reviewdog / python format check

on:
push:
branches:
- main
- develop
pull_request:

jobs:
black_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# - name: check python format with black
# uses: psf/black@stable

- uses: reviewdog/action-black@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# reporter: github-pr-review # TODO: いい感じになったら直す
reporter: github-pr-check
filter_mode: nofilter
fail_on_error: true
level: warning
28 changes: 28 additions & 0 deletions .github/workflows/python_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: reviewdog / lint python

on:
push:
branches:
- main
- develop
pull_request:

jobs:
flake8_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up python environment
uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: flake8 Lint
uses: reviewdog/action-flake8@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
filter_mode: nofilter
fail_on_error: true
level: warning
Loading