Skip to content

slice_prefetch.test.py: address cache.log flakiness - #13322

Merged
bneradt merged 1 commit into
apache:masterfrom
bneradt:fix-slice-prefetch-log-order
Jun 25, 2026
Merged

bneradt merged 1 commit into
apache:masterfrom
bneradt:fix-slice-prefetch-log-order

Conversation

@bneradt

@bneradt bneradt commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Background slice prefetch requests can log around the client
transactions. A run can therefore contain the expected cache records
while still failing an ordered cache.log gold comparison.

This replaces the full-file gold comparison with per-entry log
assertions that verify the expected cache and prefetch records
independently of ordering, then removes the unused gold file.

Fixes: #13311

Copilot AI review requested due to automatic review settings June 24, 2026 20:43
@bneradt bneradt added this to the 11.0.0 milestone Jun 24, 2026
@bneradt bneradt self-assigned this Jun 24, 2026

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.

@bneradt
bneradt force-pushed the fix-slice-prefetch-log-order branch from 45f6471 to ec8c25e Compare June 24, 2026 20:52
@maskit
maskit requested a review from Copilot June 24, 2026 21:24

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread tests/gold_tests/pluginTest/slice/slice_prefetch.test.py Outdated
Background slice prefetch requests can log around the client
transactions. A run can therefore contain the expected cache records
while still failing an ordered cache.log gold comparison.

This replaces the full-file gold comparison with per-entry log
assertions that verify the expected cache and prefetch records
independently of ordering, then removes the unused gold file.

Fixes: apache#13311
@bneradt
bneradt force-pushed the fix-slice-prefetch-log-order branch from ec8c25e to 19e311e Compare June 24, 2026 21:39
@bneradt

bneradt commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

[approve ci ubuntu autest 1]

@moonchen moonchen 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.

Nice!

@bneradt
bneradt merged commit c179b6b into apache:master Jun 25, 2026
15 checks passed
@bneradt
bneradt deleted the fix-slice-prefetch-log-order branch June 25, 2026 14:44
@github-project-automation github-project-automation Bot moved this to For v10.1.1 in ATS v10.1.x Jun 25, 2026
@github-project-automation github-project-automation Bot moved this to For v10.2.0 in ATS v10.2.x Jun 25, 2026
@cmcfarlen cmcfarlen moved this from For v10.2.0 to Picked v10.2.0 in ATS v10.2.x Jun 26, 2026
@cmcfarlen cmcfarlen modified the milestones: 11.0.0, 10.2.0 Jun 26, 2026
@cmcfarlen

Copy link
Copy Markdown
Contributor

Cherry-picked to 10.2.x

cmcfarlen pushed a commit that referenced this pull request Jun 26, 2026
Background slice prefetch requests can log around the client
transactions. A run can therefore contain the expected cache records
while still failing an ordered cache.log gold comparison.

This replaces the full-file gold comparison with per-entry log
assertions that verify the expected cache and prefetch records
independently of ordering, then removes the unused gold file.

Fixes: #13311
(cherry picked from commit c179b6b)
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jul 29, 2026
Background slice prefetch requests can log around the client
transactions. A run can therefore contain the expected cache records
while still failing an ordered cache.log gold comparison.

This replaces the full-file gold comparison with per-entry log
assertions that verify the expected cache and prefetch records
independently of ordering, then removes the unused gold file.

Fixes: apache#13311
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: For v10.1.1
Status: Picked v10.2.0

Development

Successfully merging this pull request may close these issues.

Intermittent AuTest failure: slice_prefetch (cache.log does not match gold)

5 participants