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

dist/tools/insufficient_memory: always update Makefile.ci #20130

Conversation

maribu
Copy link
Member

@maribu maribu commented Dec 1, 2023

Contribution description

Previously the add_insufficient_memory_board.sh script would only add the tested board to Makefile.ci when resource requirements grew, but never remove it when resource requirements got lower.

This updates the script to also remove boards from Makefile.ci if it is no longer needed. It is also rename (add --> update) to match the change in behavior.

Testing procedure

Mess up some Makefile.ci files by randomly adding and remove board $BOARD. Run ./dist/tools/insufficient_memory/add_insufficient_memory_board.sh $BOARD. The Makefile.cis should be fixed by adding $BOARD where needed, and dropping it where it wasn't needed.

Issues/PRs references

None

@maribu maribu added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: tools Area: Supplementary tools CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs labels Dec 1, 2023
@maribu maribu requested a review from benpicco December 1, 2023 09:35
@riot-ci
Copy link

riot-ci commented Dec 1, 2023

Murdock results

✔️ PASSED

922d8c8 dist/tools/insufficient_memory: always update Makefile.ci

Success Failures Total Runtime
1 0 1 54s

Artifacts

@maribu maribu added the State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet label Dec 1, 2023
Previously the `add_insufficient_memory_board.sh` script would only
add the tested board to `Makefile.ci` when resource requirements grew,
but never remove it when resource requirements got lower.

This updates the script to also remove boards from `Makefile.ci` if
it is no longer needed. It is also rename (`add` --> `update`) to
match the change in behavior.
@maribu maribu force-pushed the dist/tools/insufficient_memory/update_insufficient_memory_board.sh branch from 8ebbcc8 to 922d8c8 Compare December 1, 2023 15:11
@maribu maribu removed the State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet label Dec 1, 2023
@maribu
Copy link
Member Author

maribu commented Dec 1, 2023

I used this in #19784 for each and every AVR8 boards. If that PR now flies smoothly, it should now work.

@benpicco benpicco added this pull request to the merge queue Jan 4, 2024
Merged via the queue into RIOT-OS:master with commit 5dae1eb Jan 4, 2024
27 checks passed
@maribu maribu deleted the dist/tools/insufficient_memory/update_insufficient_memory_board.sh branch January 4, 2024 23:07
@maribu
Copy link
Member Author

maribu commented Jan 4, 2024

Thx :-)

@MrKevinWeiss MrKevinWeiss added this to the Release 2024.01 milestone Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants