Skip to content

Skip rate_limit AuTests when plugin not built - #13589

Merged
JosiahWI merged 1 commit into
apache:masterfrom
JosiahWI:fix/rate-limit-skip
Aug 26, 2026
Merged

Skip rate_limit AuTests when plugin not built#13589
JosiahWI merged 1 commit into
apache:masterfrom
JosiahWI:fix/rate-limit-skip

Conversation

@JosiahWI

Copy link
Copy Markdown
Contributor

The rate_limit plugin is experimental at this time and not guaranteed to be in the build. Most of the rate_limit AuTests already handle this appropriately, but a few were missing the SkipUnless directive.

The rate_limit plugin is experimental at this time and not guaranteed to
be in the build. Most of the rate_limit AuTests already handle this
appropriately, but a few were missing the `SkipUnless` directive.
@JosiahWI JosiahWI added this to the 11.0.0 milestone Aug 26, 2026
@JosiahWI JosiahWI self-assigned this Aug 26, 2026
Copilot AI lite review requested due to automatic review settings August 26, 2026 12:09

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

This PR ensures the experimental rate_limit plugin AuTests are skipped when the plugin binary isn’t present in the build, avoiding spurious CI failures when experimental plugins are not compiled/installed.

Changes:

  • Added Test.SkipUnless(Condition.PluginExists('rate_limit.so')) guards to rate_limit AuTests that previously assumed the plugin was built.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/gold_tests/pluginTest/rate_limit/rate_limit.test.py Skip the test unless rate_limit.so exists.
tests/gold_tests/pluginTest/rate_limit/rate_limit_sni.test.py Skip the test unless rate_limit.so exists.
tests/gold_tests/pluginTest/rate_limit/rate_limit_iprep.test.py Skip the test unless rate_limit.so exists.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@JosiahWI
JosiahWI merged commit e23cede into apache:master Aug 26, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this to For v10.2.1 in ATS v10.2.x Aug 26, 2026
@JosiahWI
JosiahWI deleted the fix/rate-limit-skip branch August 26, 2026 14:48
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Sep 9, 2026
The rate_limit plugin is experimental at this time and not guaranteed to
be in the build. Most of the rate_limit AuTests already handle this
appropriately, but a few were missing the `SkipUnless` directive.

(cherry picked from commit e23cede)
@cmcfarlen cmcfarlen moved this from For v10.2.1 to Picked v10.2.1 in ATS v10.2.x Sep 9, 2026
@cmcfarlen cmcfarlen modified the milestones: 11.0.0, 10.2.1 Sep 9, 2026
@cmcfarlen

Copy link
Copy Markdown
Contributor

Cherry-picked to the 10.2.x branch as d2a2162 for the 10.2.1 release.

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

Labels

Projects

Status: Picked v10.2.1

Development

Successfully merging this pull request may close these issues.

4 participants