Repository navigation
23.8 Snapshot runners and scheduled runs - #506
Conversation
|
This is an automated comment for commit 6006b47 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
| # Rebuild all images on push or release | ||
| if pr_info.number == 0: | ||
| # Rebuild all images on push, release, or scheduled run | ||
| if pr_info.number in [0,1]: |
There was a problem hiding this comment.
This requires a comment about those special values. Why 0 and why 1? The best would be to move those values out as a named constants, like (somewhere in pr_info.py maybe?):
# Since we do both release and scheduled runs on the branch (there is no PR),
# and PR number is an essential part of the CI/CD scripts,
# for simplicity and consistency throughout the codebase,
# we hardcore those runs corresponding pseudo PR numbers:
RELEASE_RUN_PR_ID=0
SCHEDULED_RUN_PR_ID=1| - name: Setup zram | ||
| shell: bash | ||
| run: | | ||
| sudo modprobe zram |
There was a problem hiding this comment.
Please add a comment explaining the intention of this code block, something like:
to make sure some of the tests with heavy RAM usage actually pass, we allocate 2% of RAM as SWAP on a ZRAM.
There was a problem hiding this comment.
LGTM, please fix mentioned issue in the next PRs. This one is Ok to merge
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):