Skip to content

Count worker return codes in autest-parallel - #7

Merged
JakeChampion merged 2 commits into
10.2.xfrom
claude/autest-portability
Aug 22, 2026
Merged

JakeChampion merged 2 commits into
10.2.xfrom
claude/autest-portability

Conversation

@JakeChampion

@JakeChampion JakeChampion commented Aug 22, 2026 •

Copy link
Copy Markdown
Owner

Draft. PR 2 of 4 — sits on #6.

autest-parallel decides its exit status from the failure counts it parses out of each worker's output, ignoring the workers' own return codes:

total_failed = sum(r.failed + r.exceptions for r in results)
sys.exit(1 if total_failed > 0 else 0)

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=10 that would otherwise have been invisible.

Previously this PR also carried the http2 dash/|& portability fix. That moved to #6, because without it the workflow introduced there cannot be green on the platform it runs on, and a CI PR that leaves its own gate red is not worth merging.

claude added 2 commits August 22, 2026 09:29
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
JakeChampion force-pushed the claude/autest-portability branch from 1cc0813 to b3ae2ff Compare August 22, 2026 09:29
@JakeChampion JakeChampion changed the title Make two AuTest behaviours portable off Fedora Count worker return codes in autest-parallel Aug 22, 2026
@JakeChampion
JakeChampion changed the base branch from claude/ci-workflow to 10.2.x August 22, 2026 10:16
@JakeChampion
JakeChampion marked this pull request as ready for review August 22, 2026 10:16
@JakeChampion
JakeChampion merged commit 449b26d into 10.2.x Aug 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants