-
Notifications
You must be signed in to change notification settings - Fork 190
sast-shell-check: set ShellCheck jobs based on cgroup v2 CPU limits #2506
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
Conversation
78d9ab7
to
7cb96fc
Compare
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.
Looks good. The updated csmock
packages are now in epel9-testing
: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-f4112db701
Waiting on update to konflux-test image: side note: it seems that in epel only the latest version of each package is kept, meaning older package versions are removed, which cause builds depending on older versions to fail (e.g. hermetic builds). Example: |
5136269
to
bb808a1
Compare
- PSSECAUT-1196 - set sast-shell-check default CPU limit to 8 - set SC_JOBS equal to CPU limit (rounded up) based on cgroups v2 max - fix issue with IFS=, affecting word splitting (which impacted `read -r quota period < /sys/fs/cgroup/cpu.max`)
This version includes an update to csmock-shellcheck-plugin-core that uses the existing value of SC_JOBS in run-shellcheck.sh
bb808a1
to
fb9c928
Compare
/retest |
2 similar comments
/retest |
/retest |
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.
LGTM
read -r quota period < /sys/fs/cgroup/cpu.max
)Marked as draft for now, as it requires an updated version of the quay.io/konflux-ci/konflux-test image with a new epel9 release of csmock-plugins-shellcheck-core with this change.EDIT: konflux-test image has been updated, ready for merge