Skip to content

[test] update test recorder to ignore "Cache-Control" and "Pragma" headers#38570

Open
jeremymeng wants to merge 4 commits into
Azure:mainfrom
jeremymeng:test/update-template-dpg-recorder
Open

[test] update test recorder to ignore "Cache-Control" and "Pragma" headers#38570
jeremymeng wants to merge 4 commits into
Azure:mainfrom
jeremymeng:test/update-template-dpg-recorder

Conversation

@jeremymeng
Copy link
Copy Markdown
Member

@jeremymeng jeremymeng commented May 18, 2026

After upgrading playwright to 1.60.0, browser tests start failing with the following error:

[vitest] FAIL chromium dist-test/browser/test/public/widgetService.spec.js > WidgetServiceClient > Widgets CRUD > should delete a widget
[vitest] RecorderError: Unable to find a record for the request POST https://Sanitized.azconfig.io/widgets?api-version=1.0.0 [vitest] Header differences:
[vitest] <Cache-Control> is absent in record, value <no-cache>
[vitest] <Pragma> is absent in record, value <no-cache>
[vitest] Body differences:

These new headers don't matter to our tests. This PR ignores them for playback testing.

…nd "Pragma" headers

After upgrading playwright to 1.60.0, the template-dpg browser tests start failing with the following error:

>[vitest]  FAIL   chromium  dist-test/browser/test/public/widgetService.spec.js > WidgetServiceClient > Widgets CRUD > should delete a widget
[vitest] RecorderError: Unable to find a record for the request POST https://Sanitized.azconfig.io/widgets?api-version=1.0.0
[vitest] Header differences:
[vitest]     <Cache-Control> is absent in record, value <no-cache>
[vitest]     <Pragma> is absent in record, value <no-cache>
[vitest] Body differences:

These new headers don't matter to our tests. This PR ignores them for playback testing.
Copilot AI review requested due to automatic review settings May 18, 2026 17:46
@jeremymeng jeremymeng requested review from a team, benbp, mikeharder and weshaggard as code owners May 18, 2026 17:46
@github-actions github-actions Bot added the EngSys This issue is impacting the engineering system. label May 18, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the template-dpg browser test recorder configuration to tolerate additional no-cache headers introduced by the Playwright upgrade, preventing playback mismatches and unblocking the weekly dependency update pipeline.

Changes:

  • Ignore Cache-Control and Pragma headers during test-proxy request matching in playback for template-dpg browser tests.
  • Bump the workspace playwright version in the testing catalog to ^1.60.0.

Reviewed changes

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

File Description
sdk/template/template-dpg/test/public/widgetService.spec.ts Configures the recorder matcher to exclude Cache-Control/Pragma so Playwright-added headers don’t break playback matching.
pnpm-workspace.yaml Updates the testing catalog to use Playwright ^1.60.0.

Comment thread sdk/template/template-dpg/test/public/widgetService.spec.ts Outdated
@maorleger
Copy link
Copy Markdown
Member

This only fixes template though doesn't it? What about all the other packages?

@jeremymeng
Copy link
Copy Markdown
Member Author

This only fixes template though doesn't it? What about all the other packages?

Good point! We probably will need a fix in recorder

@jeremymeng jeremymeng requested a review from timovv as a code owner May 18, 2026 19:24
@jeremymeng jeremymeng changed the title [test][template-dpg] update test recorder to ignore "Cache-Control" and "Pragma" headers [test] update test recorder to ignore "Cache-Control" and "Pragma" headers May 18, 2026
@jeremymeng
Copy link
Copy Markdown
Member Author

This only fixes template though doesn't it? What about all the other packages?

Updated test recorder to ignore them

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

Labels

EngSys This issue is impacting the engineering system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants