Skip to content

Add strategies_yaml to ATSReplayTest - #13848

Open
masaori335 wants to merge 1 commit into
apache:masterfrom
masaori335:asf-master-autest-strategies
Open

masaori335 wants to merge 1 commit into
apache:masterfrom
masaori335:asf-master-autest-strategies

Conversation

@masaori335

Copy link
Copy Markdown
Contributor

ATSReplayTest could only point a strategy at a static file, so a replay could not make the Proxy Verifier server a next hop. With strategies.yaml replacing parent.config, the parent retry tests need a strategies counterpart that exercises the NextHop markdown path. Basically, this is strategies.yaml version of this AuTest, parent_retry_failure_stays_down.replay.yaml

ATSReplayTest could only point a strategy at a static file, so a
replay could not make the Proxy Verifier server a next hop. With
strategies.yaml replacing parent.config, the parent retry tests need a
strategies counterpart that exercises the NextHop markdown path.
@masaori335 masaori335 added this to the 11.0.0 milestone Oct 16, 2026
@masaori335 masaori335 self-assigned this Oct 16, 2026
Copilot AI balanced review requested due to automatic review settings October 16, 2026 06:27

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@brbzull0
brbzull0 requested a balanced review from Copilot October 16, 2026 09:23

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.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

2 open findings

🧠 Review effort: Lite

Comment on lines +154 to +160
strategies_yaml = ats_config.get('strategies_yaml')
if strategies_yaml is not None:
strategies_text = yaml.dump(strategies_yaml)
strategies_text = strategies_text.replace('{SERVER_HTTP_PORT}', str(server.Variables.http_port))
strategies_text = strategies_text.replace('{SERVER_HTTPS_PORT}', str(server.Variables.https_port))
ts.Disk.File(ts.Variables.CONFIGDIR + "/strategies.yaml", id="strategies_yaml", typename="ats:config")
ts.Disk.strategies_yaml.AddLines(strategies_text.split('\n'))
strategies_text = yaml.dump(strategies_yaml)
strategies_text = strategies_text.replace('{SERVER_HTTP_PORT}', str(server.Variables.http_port))
strategies_text = strategies_text.replace('{SERVER_HTTPS_PORT}', str(server.Variables.https_port))
ts.Disk.File(ts.Variables.CONFIGDIR + "/strategies.yaml", id="strategies_yaml", typename="ats:config")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants