Skip to content

Add a GitHub Actions CI workflow - #6

Merged
JakeChampion merged 1 commit into
10.2.xfrom
claude/ci-workflow
Aug 22, 2026
Merged

JakeChampion merged 1 commit into
10.2.xfrom
claude/ci-workflow

Conversation

@JakeChampion

@JakeChampion JakeChampion commented Aug 22, 2026 •

Copy link
Copy Markdown
Owner

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:

Job Covers Cold
License audit (RAT) 4041 files, pristine checkout ~1 min
Format check clang-format, yapf, cmake-format, whitespace ~1 min
Build and unit test build + install + 172 ctest tests ~2 min
AuTest ×4 shards all 542 gold tests ~13–20 min each
Documentation Sphinx with -W ~2 min

Every non-obvious choice is commented in the file. The ones worth knowing about, each of which cost a red run to find:

  • AuTests run on the bare runner, not in a container:. Every MakeATSProcess binds 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.
  • The build is installed before ctest. The verify_remap_plugin / verify_global_plugin tests exec traffic_server, which chdirs to the install prefix; without an install, 77 of 172 tests fail with a misleading "unable to change to root directory".
  • nc is nmap's ncat. accept_timeout drives its client with nc -c and classifies the result by how long the client ran. Fedora's nc is ncat, which kills the exec'd child when the peer closes the socket. netcat-openbsd has no -c at all; netcat-traditional has it but waits for the child, so the timeout is misclassified.
  • Cripts is enabled. connection_exempt_list, which per_client_connection_max loads, is itself written in Cripts, so without ENABLE_CRIPTS the plugin is never built and traffic_server dies at startup with a fatal "cannot open shared object file". It also brings the cripts gold test into play.
  • Two workers per shard, not four. Each worker starts several real traffic_server instances; at -j4 on 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.py built 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_timeout and Cripts problems as real bugs.

The shard split is NR % 4 over 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 ci preset configure on Ubuntu, the shard arithmetic, and http2 failing before the fix and passing after on this dash-/bin/sh host.

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
JakeChampion marked this pull request as ready for review August 22, 2026 10:16
@JakeChampion
JakeChampion merged commit 0ceb907 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