Skip to content

feat(ci): add check for fingerprint stability#186

Draft
dmcilvaney wants to merge 2 commits into
microsoft:mainfrom
dmcilvaney:damcilva/fuzz_driven_fingerprint_check
Draft

feat(ci): add check for fingerprint stability#186
dmcilvaney wants to merge 2 commits into
microsoft:mainfrom
dmcilvaney:damcilva/fuzz_driven_fingerprint_check

Conversation

@dmcilvaney
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 13, 2026 01:27
@dmcilvaney dmcilvaney marked this pull request as draft May 13, 2026 01:27
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

This PR adds an automated regression guard to detect unintended changes in component fingerprint computation, helping keep fingerprint.ComputeIdentity stable across config/schema evolution.

Changes:

  • Adds a per-field snapshot table test that enumerates all fingerprinted leaf fields in projectconfig.ComponentConfig and records each field’s isolated fingerprint.
  • Adds a fuzz test that exhaustively populates fingerprinted fields and checks determinism and sensitivity across seeds.
  • Checks in the initial go-snaps snapshot for the per-field table.

Reviewed changes

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

File Description
internal/fingerprint/exhaustive_test.go New exhaustive snapshot + fuzz tests to guard fingerprint stability and determinism.
internal/fingerprint/snapshots/exhaustive_test.snap Snapshot baseline for the per-field fingerprint table.

Comment thread internal/fingerprint/exhaustive_test.go
Comment thread internal/fingerprint/exhaustive_test.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants