Repository navigation
Add a GitHub Actions CI workflow - #6
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
JakeChampion
force-pushed
the
claude/ci-workflow
branch
from
August 22, 2026 09:29
4458a75 to
a57ba63
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 1 of 4 — base of the stack (#7 → #8 → #5 sit on top).
The repository has no workflow that builds Traffic Server or runs its tests, so changes get no automated verification on GitHub. This adds one:
-WEvery non-obvious choice is commented in the file. The ones worth knowing about, each of which cost a red run to find:
container:. EveryMakeATSProcessbinds an IPv6 port unconditionally, and the Actions Docker bridge has IPv6 disabled by default. A preflight step fails fast with a clear message rather than letting 500 tests die on a confusing bind error.ctest. Theverify_remap_plugin/verify_global_plugintests exectraffic_server, which chdirs to the install prefix; without an install, 77 of 172 tests fail with a misleading "unable to change to root directory".ncis nmap's ncat.accept_timeoutdrives its client withnc -cand classifies the result by how long the client ran. Fedora'sncis ncat, which kills the exec'd child when the peer closes the socket.netcat-openbsdhas no-cat all;netcat-traditionalhas it but waits for the child, so the timeout is misclassified.connection_exempt_list, whichper_client_connection_maxloads, is itself written in Cripts, so withoutENABLE_CRIPTSthe plugin is never built andtraffic_serverdies at startup with a fatal "cannot open shared object file". It also brings thecriptsgold test into play.traffic_serverinstances; at-j4on a 4-core runner some lose the race to bind their ports. The four shards still run concurrently, so wall clock is barely affected.The one test change in here
tests/gold_tests/h2/http2.test.pybuilt its curl command with the bash-only|&operator. AuTest runs commands through/bin/sh— bash on the Fedora images upstream CI uses, dash on Ubuntu, where it fails to parse, curl never runs, and the test compares empty output against the gold file. Deterministic, not flaky, which is why the retry below did not paper over it.This one-line fix (
2>&1 |, the POSIX equivalent, and the only use of|&in the suite) lives here rather than in a follow-up because without it this workflow cannot be green on the platform it runs on, and a CI PR that leaves its own gate red is not worth merging.On the retry
A failing test is retried once, on its own, before the shard fails. Both the retry and the eventual pass are reported as warnings, so a genuinely flaky test stays visible rather than being absorbed silently. This is deliberately not a quarantine: nothing is skipped or disabled, and a test that fails twice fails the job. It has earned its place by forcing investigation rather than hiding it — it retried, failed again, and surfaced the
http2,accept_timeoutand Cripts problems as real bugs.The shard split is
NR % 4over the sorted test-name list: exact partition, no overlap or loss.Verified locally end to end: the RAT gate (both a clean tree and a seeded failure), the format gate, the
cipreset configure on Ubuntu, the shard arithmetic, andhttp2failing before the fix and passing after on this dash-/bin/shhost.