Repository navigation
Count worker return codes in autest-parallel - #7
Merged
Merged
Conversation
The repository has no workflow that builds Traffic Server or runs its tests, so changes get no automated verification on GitHub. Add one covering the license audit, formatting, the build with its unit tests, the end to end AuTests sharded four ways, and the documentation build. Several choices are not obvious and are commented in the file. AuTests run on the bare runner rather than in a container, because every MakeATSProcess binds an IPv6 port and the Actions Docker bridge has IPv6 disabled; a preflight fails fast with a clear message otherwise. The build is installed before ctest, because the plugin verification tests exec traffic_server, which chdirs to the install prefix. nc comes from nmap ncat, matching the Fedora images upstream uses, because accept_timeout needs its -c to behave the way ncat's does. Cripts is enabled, because the connection_exempt_list plugin is written in Cripts and tests that load it fail at start up without it. A failing test is retried once on its own before the shard fails, and both the retry and the eventual pass are reported as warnings, so a genuinely flaky test stays visible rather than being absorbed silently. The http2 test is fixed here rather than separately, because without it this workflow cannot be green on the platform it runs on. It built its curl command with the bash only |& operator, and AuTest runs commands through /bin/sh, which is bash on the Fedora images upstream uses but dash on Ubuntu, where it fails to parse and curl never runs. The POSIX 2>&1 | merges the streams the same way on both, and this was the only use of |& in the test suite. Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01Xp4ZMfVaT5EzvZsyMTx2y5
The exit status came from the failure counts parsed out of each worker's output, and ignored the workers' own return codes. A worker that ran forty tests and then died contributes no failures of its own, so the shard was reported green having silently skipped whatever it had left to run. The only existing backstop fires when a worker ran nothing at all. Count the return codes too, and name the workers that exited non zero. This matters most exactly when something has already gone wrong. Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01Xp4ZMfVaT5EzvZsyMTx2y5
JakeChampion
force-pushed
the
claude/ci-workflow
branch
from
August 22, 2026 09:29
4458a75 to
a57ba63
Compare
JakeChampion
force-pushed
the
claude/autest-portability
branch
from
August 22, 2026 09:29
1cc0813 to
b3ae2ff
Compare
JakeChampion
marked this pull request as ready for review
August 22, 2026 10:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft. PR 2 of 4 — sits on #6.
autest-paralleldecides its exit status from the failure counts it parses out of each worker's output, ignoring the workers' own return codes:A worker that runs forty tests and then dies contributes
failed = 0, so the shard reports green having silently skipped whatever it had left to run. The only existing backstop fires when a worker ran nothing at all (passed + failed + skipped == 0), which does not cover a mid-run death.This counts the return codes too, and names the workers that exited non-zero.
It matters most exactly when something has already gone wrong, which is the worst time for a test runner to under-report. During the work further up this stack it fired correctly and caught a worker exiting
rc=10that would otherwise have been invisible.