Skip to content

Backport ATSReplayTest support to 10.1.x#13148

Closed
bneradt wants to merge 3 commits into
apache:10.1.xfrom
bneradt:backport/10.1-ats-replay-test
Closed

Backport ATSReplayTest support to 10.1.x#13148
bneradt wants to merge 3 commits into
apache:10.1.xfrom
bneradt:backport/10.1-ats-replay-test

Conversation

@bneradt
Copy link
Copy Markdown
Contributor

@bneradt bneradt commented May 8, 2026

Backports the ATSReplayTest infrastructure and initial replay-based test conversions to 10.1.x.

Cherry-picked/backported commits:

Backport notes:

  • Resolved 10.1.x header_rewrite gold-file rename conflicts by keeping the replay-bundle conversion.
  • Kept 10.1.x-specific cache/proxy-protocol test context while moving the converted tests to ATSReplayTest.

Verification:

  • Exported patch stack applied cleanly to a fresh detached upstream/10.1.x worktree.
  • git diff --check passed for this PR range.
  • python3 -m py_compile passed for the touched AuTest helper files.
  • Full ATS build/AuTests were not run locally because this checkout is on macOS; the combined test branch was prepared for container validation.

bneradt added 3 commits May 8, 2026 22:28
For context, this continues the work started in apache#12371. The goal is to
take full advantage of the autest extension capabilities to make writing
ATS autests easier.

This adds the Test.ATSReplayTest autest extensions so that tests can be
written through a replay.yaml file that specifies both the configuration
of the test processes as well as the HTTP Proxy Verifier traffic for the
test.

This patch updates the header_rewrite_bundle to use this new framework.

(cherry picked from commit 4b3354f)
This commit adds a new documentation page (autests.en.rst) that provides
guidance for writing end-to-end tests using the AuTest framework, with a
focus on the new ATSReplayTest approach that uses YAML-based replay
files for traffic specification and verification. This, hopefully living
document, will be helpful for devs and AI tools that could use guidance
on how to write autests.

(cherry picked from commit 32d37f2)
Convert various cache-*.test.py tests to use the new ATSReplayTest
extension. These were generally pretty easy to convert because many
of them were Proxy Verifier replay file based tests already anyway.

To support this, this also adds diags.log and traffic.out log
verification support to ATSReplayTest.

(cherry picked from commit d74c795)
@bneradt bneradt force-pushed the backport/10.1-ats-replay-test branch from d4e73dd to a3310ef Compare May 9, 2026 03:29
@bneradt bneradt closed this May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AuTest Backport Marked for backport for an LTS patch release Tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant