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

ci_set_matrix: the boards set needs to be a copy #10041

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

jepler
Copy link

@jepler jepler commented Feb 7, 2025

Recently in #10026 this script was altered so that sometimes items are removed from boards. However, this could have side effects. For instance, when a file like shared/runtime/context_manager_helpers.c is modified, it doesn't match any per-port or per-board rule so we execute boards_to_build = all_board_ids. But if the object all_board_ids refers to has been modified by boards.remove(board) in an earlier iteration, then we don't end up really building all boards.

Noticed during development of #10040.

Recently in adafruit#10026 this script was altered so that sometimes
items are removed from `boards`. However, this could have side effects.
For instance, when a file like `shared/runtime/context_manager_helpers.c`
is modified, it doesn't match any per-port or per-board rule so
we execute `boards_to_build = all_board_ids`. But if the object
`all_board_ids` refers to has been modified by `boards.remove(board)`
in an earlier iteration, then we don't end up really building all boards.

Noticed during development of adafruit#10040.
@jepler jepler requested review from dhalbert and microdev1 February 7, 2025 18:10
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for figuring this out!

@dhalbert dhalbert merged commit 95179be into adafruit:main Feb 7, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants