Closed jdk-maxim closed 1 year ago
There have been some changes to the Build_Examples and BLE_Examples workflows recently which have caused those workflows to fail occasionally in the past few weeks. I believe the changes have been (mostly) finalized.
I've updated the linter's default branch to main instead of master.
Something in the Verify_Register_SVD's workspace is preventing git diff
from working. I'm taking a look at it now.
The Verify_Register_SVD workflow checkouts the msdk twice if the source branch of the PR is from a forked branch. This resulted in the git diff
returning nothing even if there are file changes. I updated the workflow to make sure it only checks out the branch once.
All the changes were merged with PR: #565.
Thanks @sihyung-maxim
In #545 I fixed some issues but didn't modify the bash script that checks for watch files that Jeremy pointed out above.
Keeping an eye on things... We may need to reopen this to reimplement the check if it continues to fail intermittently after your latest fixes
Register file changes in #534 did not trigger build_examples
Did some testing with the watch file test. Think it only checking the last file in the "$CHANGE_FILES" list instead of iterating though the entire list. This seems to work:
for watch_file in $WATCH_FILES; do
for change_file in $CHANGE_FILES; do
if [[ "${change_file,,}" == *"${watch_file,,}" ]]; then
echo "MATCH CI Iterate. Watch type: $watch_file, File: $change_file"
RUN_TEST=1
fi
done
done
Iterates through all strings in CHANGE_FILES and WATCH_FILES.
uses the ${$VAR,,} to force case to lower for comparison.
Whoops, did not know merging a PR with a linked issue would automatically close the issue. My bad @Jake
For recent pull requests, I found that several of the required Check Actions are being skipped incorrectly.
Build_Examples
This fails on recent pull request, but passed on virtually identical one from last week. I noticed that last weeks just skipped running this test completely.
Looking through list of recent PRs, several appear to skip the actual build run, after "Check watch files" stage, due to "$RUN_TEST" never being set. For example: dtm sweep with better plotting MAX32570 cameraif dma bit index updates, tested it works
Guessing this section might fail due to case sensitivity:
Lint Code Base
This passed but didn't actually test anything. Log shows:
But this did not get bubbled up to to the top for a Red Failing checking. Maybe this failed since we migrated from master->main?
Verify Register and SVD Files
This doesn't get run even though the PR contains changes to SVD and some "*_regs.h" files.