Skip to content

tests: give cripts ATS startup a longer readiness window#13304

Open
moonchen wants to merge 1 commit into
apache:masterfrom
moonchen:bump-cripts-ats-startup-timeout
Open

tests: give cripts ATS startup a longer readiness window#13304
moonchen wants to merge 1 commit into
apache:masterfrom
moonchen:bump-cripts-ats-startup-timeout

Conversation

@moonchen

Copy link
Copy Markdown
Contributor

Problem

The cripts autest (tests/gold_tests/cripts/cripts.test.py) intermittently fails in CI with:

Run: Exercise traffic through cripts.: Failed
  Checking that Process is ready within 10.0 seconds so we can start process: Default - Failed
  Reason: Process failed to become ready in time: 10.0 seconds.

ATS never opens its port in time, so the subsequent runs cascade to connection-refused (curl: (7)). It's not deterministic — the same commit passes on a faster worker — which makes it a flaky-CI nuisance unrelated to whatever PR happens to run it.

Cause

Cripts plugins are compiled at ATS startup (via proxy.config.plugin.compiler_path). Under CI load that compile can take longer than autest's default 10s process-readiness window (the wait for NOTE: Traffic Server is fully initialized), so the readiness check times out before ATS finishes coming up.

Fix

Bump StartupTimeout to 60s for cripts-enabled ATS processes in MakeATSProcess, so the compile-at-startup step has headroom. This is scoped to the enable_cripts branch, so only cripts tests are affected, and it follows the existing precedent of slow-startup tests setting ts.StartupTimeout (e.g. jsonrpc/config_reload_* use 30).

Cripts are compiled at ATS startup, which under CI load can exceed the
default 10s process-readiness timeout. Cripts gold tests then flake with
"Process failed to become ready in time" before any request runs. Bump
StartupTimeout to 60s for cripts-enabled ATS processes so the compile
step has headroom.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 19, 2026 22:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts AuTest’s ATS process startup readiness window for Cripts-enabled gold tests to reduce intermittent CI failures caused by Cripts’ compile-at-startup overhead.

Changes:

  • Increase MakeATSProcess() startup timeout to 60 seconds when enable_cripts=True.
  • Add an inline comment explaining why Cripts needs a longer readiness window.

@moonchen moonchen self-assigned this Jun 19, 2026
@moonchen moonchen added this to the 11.0.0 milestone Jun 19, 2026

@JosiahWI JosiahWI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#13286 failed the flaky test one too many times for @moonchen. Single line change with good justification (Cripts compilation requires longer startup).

@JosiahWI

Copy link
Copy Markdown
Contributor

[approve ci autest 2]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants