Skip to content

Conversation

@geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Sep 16, 2025

Fix a minor issue with the test for rust/request-forgery. The models-as-data IDs were being output raw which tends to cause issues with the .expected results changing frequently.

@geoffw0 geoffw0 requested a review from a team as a code owner September 16, 2025 08:02
@geoffw0 geoffw0 requested review from Copilot and removed request for a team September 16, 2025 08:02
@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code labels Sep 16, 2025
Copy link
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

This PR fixes an issue with the test for rust/request-forgery by adding model preprocessing to ensure stable test output. The change prevents frequent changes to .expected results by preprocessing models-as-data IDs before testing.

  • Added a preprocessing step for models to convert raw IDs to stable format
  • Updated the test configuration to include pretty printing for models
  • Regenerated expected test results with stable model IDs

Reviewed Changes

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

File Description
RequestForgery.qlref Added PrettyPrintModels.ql preprocessing step to stabilize model IDs
RequestForgery.expected Updated test expectations with stable model IDs (MaD:1, MaD:2, MaD:3)

Copy link
Contributor

@igfoo igfoo left a comment

Choose a reason for hiding this comment

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

Looks plausible to me

@hvitved hvitved merged commit a2d8327 into github:main Sep 16, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants