-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
ci: remove clang workflow, use main twister workflow to build using llvm #82354
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,10 +46,11 @@ jobs: | |
BSIM_COMPONENTS_PATH: /opt/bsim/components | ||
TWISTER_COMMON: '--no-detailed-test-id --force-color --inline-logs -v -N -M --retry-failed 3 --timeout-multiplier 2 ' | ||
WEEKLY_OPTIONS: ' -M --build-only --all --show-footprint --report-filtered' | ||
PR_OPTIONS: ' --clobber-output --integration' | ||
PR_OPTIONS: ' --clobber-output --integration --force-platform-toolchain native_sim/native:llvm ' | ||
PUSH_OPTIONS: ' --clobber-output -M --show-footprint --report-filtered' | ||
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} | ||
BASE_REF: ${{ github.base_ref }} | ||
LLVM_TOOLCHAIN_PATH: /usr/lib/llvm-16 | ||
steps: | ||
- name: Print cloud service information | ||
run: | | ||
|
@@ -149,11 +150,19 @@ jobs: | |
export ZEPHYR_BASE=${PWD} | ||
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr | ||
python3 ./scripts/ci/test_plan.py -c origin/${BASE_REF}.. --pull-request --no-detailed-test-id | ||
./scripts/twister --subset ${{matrix.subset}}/${{ strategy.job-total }} --load-tests testplan.json ${TWISTER_COMMON} ${PR_OPTIONS} | ||
./scripts/twister \ | ||
--subset ${{matrix.subset}}/${{ strategy.job-total }} \ | ||
--load-tests testplan.json \ | ||
${TWISTER_COMMON} \ | ||
${PR_OPTIONS} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. twister logs (printouts) do not tell which toolchain was used. I expect users will be confused if an error occurs in only clang or only gcc and we do not tell them neither that it was built with that compiler, nor that they need to set that option to repro the issue Note the testplan.json and reports "testsuites" do not indicate the toolchain either (it is in the "environment" though) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
well, right now it says toolchain is zephyr, althoguh for native_sim it is using the host toolchain and not using the zephyr sdk at all. |
||
if [ "${{matrix.subset}}" = "1" -a ${{needs.twister-build-prep.outputs.fullrun}} = 'True' ]; then | ||
./scripts/zephyr_module.py --twister-out module_tests.args | ||
if [ -s module_tests.args ]; then | ||
./scripts/twister +module_tests.args --outdir module_tests ${TWISTER_COMMON} ${PR_OPTIONS} | ||
./scripts/twister \ | ||
+module_tests.args \ | ||
--outdir module_tests \ | ||
${TWISTER_COMMON} \ | ||
${PR_OPTIONS} | ||
fi | ||
fi | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So do I understand correctly that:
If so, some thoughts, and my main concerns with this approach:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In PRs, you get the gcc coverage through different variants, i.e 64 bit and nrf_bsim. Does it really matter what toolchain you built with, the goal it to build the simulator and run tests using it, it is never about the simulator itself.
You still get gcc coverage through main branch and other workflows deploying native_sim for testing, i.e. bluetooth.