Repository navigation
Conversation
|
There was a problem hiding this comment.
🟡 Changes recommended
The deadline checker undercounts sequential setup and command invocations, while unbounded bootstrap and package setup can still exhaust the job timeout.
4 open issues
What changed in this PR
Updates wolfSSL’s CI time budgeting to reduce job cancellations and allow test failures to report their logs.
Changes:
- Raises job timeouts and adjusts apt setup budgets based on measured runtimes.
- Adds whole-run deadlines alongside per-configuration timeouts for parallel checks.
- Extends workflow and dependency linting, adds CI-script tests, and pins Falcon backend runners to Ubuntu 24.04.
| File | Description |
|---|---|
.github/workflows/wolfsm.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/wolfCrypt-Wconversion.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/trackmemory.yml |
Adds a whole-run deadline. |
.github/workflows/tinytls13.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/stunnel.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/sssd.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/socat.yml |
Raises job limits and bounds runner and shard tests. |
.github/workflows/smoke-test.yml |
Adds per-config timeout and whole-run deadline. |
.github/workflows/smallStackSize.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/silabs-cryptocb.yml |
Raises job timeout and bounds parallel builds. |
.github/workflows/rtl8735b.yml |
Raises job timeout and bounds parallel builds. |
.github/workflows/rng-tools.yml |
Raises build and integration-test timeouts. |
.github/workflows/psk.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/pq-all.yml |
Raises job timeout, bounds checks, and updates budget commentary. |
.github/workflows/pam-ipmi.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/os-check.yml |
Raises Linux/macOS limits and bounds test runs. |
.github/workflows/openvpn.yml |
Raises build and integration-test timeouts. |
.github/workflows/opensslcoexist.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/openssl-ech.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/openssh.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/openresty.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/openldap.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/ntp.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/no-malloc.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/nginx.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/net-snmp.yml |
Raises build and integration-test timeouts. |
.github/workflows/multi-compiler.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/multi-arch.yml |
Raises job timeout and bounds parallel runs. |
.github/workflows/msmtp.yml |
Raises build and integration-test timeouts. |
.github/workflows/mosquitto.yml |
Raises build and integration-test timeouts. |
.github/workflows/mono.yml |
Raises C# wrapper build timeout to 15 minutes. |
.github/workflows/memcached.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/linuxkm.yml |
Raises kernel-module build timeout to 7 minutes. |
.github/workflows/libvncserver.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/libssh2.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/krb5.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/jwt-cpp.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/ipmitool.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/intelasm-c-fallback.yml |
Raises test timeout to 9 minutes. |
.github/workflows/hitch.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/haproxy.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/fips-dev-no-post.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/falcon-interop.yml |
Pins amd64 backend runners to Ubuntu 24.04. |
.github/workflows/enterprise.yml |
Raises parallel and CMake job limits; bounds parallel checks. |
.github/workflows/docker-OpenWrt.yml |
Raises build timeout to 8 minutes. |
.github/workflows/disable-pk-algs.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/cyrus-sasl.yml |
Raises build and integration-test timeouts. |
.github/workflows/curl.yml |
Raises wolfSSL build timeout to 8 minutes. |
.github/workflows/cryptocb-only.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/check-source-text.yml |
Runs CI-script unit tests and increases job timeout. |
.github/workflows/bind.yml |
Raises build and integration-test timeouts. |
.github/workflows/async.yml |
Raises job timeout and bounds parallel checks. |
.github/workflows/afalg.yml |
Budgets direct apt retries and bounds parallel checks. |
.github/workflows/aesgcm-siv.yml |
Raises cross-architecture timeout and bounds parallel checks. |
.github/scripts/test_ci_scripts.py |
Adds apt-budget, timeout-lint, and deadline tests. |
.github/scripts/parallel-make-check.py |
Adds run-deadline handling and deadline-specific failure reporting. |
.github/scripts/check-workflows.py |
Adds apt-budget and parallel-run timeout validation. |
.github/scripts/check-ci-deps.py |
Checks matrix runner/tag compatibility and rejects floating Ubuntu labels with versioned bundles. |
.github/actions/install-apt-deps/action.yml |
Lowers default pull timeout to 120 seconds and updates budget documentation. |
Review effort: Balanced
863c569 to
af3fd1a
Compare
|
@claude review |
There was a problem hiding this comment.
🟡 Changes recommended
The CI checks incorrectly cross-pair runners and bundles, rejecting valid matrix entries, and omit direct apt-install calls from setup budgets, allowing insufficient job timeouts to pass.
2 open issues
4 resolved since last review
Review effort: Balanced
af3fd1a to
2e5143b
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #12264
Scan targets checked: wolfssl-pr-general
Review type: general (no scan target covers the changed files)
Coverage: 44 of 59 in-scope changed file(s) opened by the reviewer; not opened: .github/scripts/test_ci_scripts.py, .github/workflows/haproxy.yml, .github/workflows/hitch.yml, .github/workflows/ipmitool.yml, .github/workflows/nginx.yml, .github/workflows/ntp.yml, .github/workflows/openldap.yml, .github/workflows/openresty.yml, .github/workflows/openssh.yml, .github/workflows/openssl-ech.yml and 5 more
Fenrir result: Approved ✅
No new issues found in the changed files.
Advisory only — this automated result does not count as a GitHub approval.
Review tier: Max
|
Jenkins retest this please |
945ad7a to
5f7b62b
Compare
Compared 40 successful runs per workflow from the last three weeks with each job's timeout-minutes. Several jobs finish at 90-100% of their limit even when they pass, so an ordinary slow runner turns them into a cancelled job with no result: os-check make_check_linux max 60.0 of 60 -> 90 pq-all make_check max 45.0 of 45 -> 70 (shard 1 median 43.6) multi-arch max 34.2 of 35 -> 55 cryptocb-only make_check max 39.3 of 40 -> 60 enterprise cmake max 29.8 of 30 -> 45 disable-pk-algs make_check max 12.8 of 15 -> 20 multi-compiler max 12.2 of 15 -> 20 intelasm-c-fallback max 4.5 of 6 -> 9 docker-OpenWrt build max 4.0 of 4 -> 8 mosquitto, net-snmp check max 3.5 of 4 -> 7 The new values are 1.5x the slowest successful run, rounded up to 5 minutes (2x below 8 minutes). Every OSP "Build wolfSSL" job goes from 4 (5 for krb5 and openresty) to 8 minutes: they run the same build and peak at 3-4 minutes. A higher limit only costs runner time when a job actually hangs. The pq-all budget-seconds comment justified 1200 against the old 45-minute job; it now only says why the job needs more than the default.
install-apt-deps budgets its retries so a dead apt mirror is reported as an apt error, but only if the whole setup fits in the caller's timeout-minutes. With the old defaults a job with install-apt-deps and ccache-setup needed ~21 minutes, and 27 jobs did not have that much room, so a slow or dead mirror cancelled them instead. - Lower the default pull-timeout from 300 to 120 seconds. Across 206 bundle pulls in recent logs the slowest took 31 seconds (-cross 9). budget-seconds stays at 600 since the heavy package sets (multi-compiler, zephyr, python, cross toolchains) need it on the mirror path. - Give afalg's direct apt-install.sh call for linux-modules-extra a 600 second budget, which keeps about three minutes per install attempt. Without one it ran on the fixed 90s/300s limits, up to ~14 minutes. The path is rare (all modules loaded directly in 6 of 6 sampled runs) but the AF_ALG probe fails without the package. - Raise timeout-minutes on the 22 jobs whose worst case still does not fit with 2 minutes to spare. ccache-setup counts in full: when the bundle pull fails, install-apt-deps succeeds slowly on the mirror and ccache-setup then goes to the mirror too. - Pin the falcon-interop backend matrix to ubuntu-24.04. ubuntu-latest is now 26.04, so its ubuntu-24.04-minimal bundle never matched and all 28 legs installed from the mirror on every run. - check-ci-deps.py now rejects ubuntu-latest paired with a versioned bundle tag, and checks every runner of a matrix rather than only the first, which is how falcon-interop got past it.
5f7b62b to
ff1b29c
Compare
Only trackmemory.yml passed --timeout. Everywhere else a wedged config runs until the job's timeout-minutes, which cancels the job and drops every config's result and log, and skips the upload-on-failure steps. --timeout alone cannot prevent that: its clock starts per config, so a config that starts late can still hang past the job limit. Add a --deadline to parallel-make-check.py that bounds the whole run, counted from the script's start (before autogen.sh). When it passes, configs still running are killed and reported as "run deadline in <step>", pending ones as "run deadline before ...", and the summary and logs come out as usual. Each config decides up front which limit binds it, and deadline kills are labelled outside the fail-fast relabelling, so under fail-fast every config cut off keeps its own label and log rather than one of them winning a race and the rest showing as aborted. A config counts as cut off only when its own wait expired or the deadline sweep signalled its running process, so a step that failed just before the deadline keeps its own label even when the runner sees the exit late. A run that fail-fast already stopped for a real failure keeps reporting the others as aborted, even when they die after the deadline, while a config that fails on its own after the deadline stopped the run keeps its own label, and a deadline label still dumps config.log or test-suite.log for its step. autogen.sh, which runs before any config when configure is missing, gets its own process group bounded by the deadline too, and an interrupted runner takes it down with SIGTERM, since its own session keeps it out of the terminal's Ctrl-C. Every call now passes both: - --timeout: 1.5x the slowest config time measured in that call's summary tables over 6-8 recent successful runs, at least 10 minutes. The declared "minutes" values are not used since several are far off (enterprise configs declare 1.0 and take 14-18 minutes). - --deadline: 1.5x the slowest whole-run time over 6-24 recent successful runs, at least 10 minutes and at least --timeout. Each job's timeout-minutes then leaves room for the worst-case apt setup plus the deadline plus 5 minutes, which covers the steps around the run (setup-python, brew on macOS, log upload, cache save), so the deadline fires and its logs get out before the job is cancelled. That raises 22 limits, the largest being pq-all 70 -> 100 (28 minutes of worst-case setup with its 1200 second apt budget, 66 minute deadline), os-check linux 90 -> 105 and cryptocb-only 60 -> 80. As before, a higher limit only costs runner time when something is already wrong. socat's inner `timeout -k 10 600` around each shard's test.sh goes to 540 seconds so it still fires before the 10 minute --timeout and names the stuck test in the shard output.
Add two checks to the workflow lint that runs on every PR, so the limits set in the previous commits do not quietly regress: - A job's worst-case apt time must leave 2 minutes of timeout-minutes. install-apt-deps is modelled as pull-timeout plus apt-install.sh replaying its own budget split (per-command floors, 10s kill grace, doubling retry delays), with the input defaults read from the action; ccache-setup adds its mirror fallback, and a run: step that calls apt-install.sh directly adds that call with its own options. install-apt-deps steps behind different if: texts count as alternatives, and steps behind the same one add up. - Every parallel-make-check.py invocation needs --timeout and --deadline above 0 with --timeout no larger, and worst-case setup plus the job's deadlines, summed over every invocation, plus 5 minutes within timeout-minutes. The 5 minutes cover the steps around the run (setup-python, brew, log upload, cache save). A value that is a GitHub expression draws a warning instead. test_ci_scripts.py checks the model's numbers against apt-install.sh and ccache-setup themselves, so a change there fails the tests instead of silently weakening the lint, and covers the --deadline labels, an interrupted autogen.sh and check-ci-deps.py's runner/tag check. It runs in check-source-text.yml.
ff1b29c to
610c668
Compare


Description
Several CI jobs finish at 90-100% of their timeout-minutes even when they pass, and some can't fit their own apt retry budget, so a slow runner or a dead mirror cancels them with no result. This sizes the limits from three weeks of measured runtimes and adds a lint so they stay consistent.
Testing