Repository navigation
acceptance: add UniqueUUID test.toml knob for distinct UUID numbering - #7020
Draft
janniklasrose wants to merge 1 commit into
Draft
janniklasrose wants to merge 1 commit into
janniklasrose wants to merge 1 commit into
Conversation
denik
reviewed
Oct 12, 2026
| // UUID collapses to [UUID]. Enable it for tests that need to tell distinct UUIDs | ||
| // apart; leave it off when they appear in a non-deterministic order (the index | ||
| // assignment would be unstable). | ||
| UniqueUUID *bool |
Contributor
There was a problem hiding this comment.
Why do we need the option to switch it off? Why not always have uniqueness?
Member
Author
There was a problem hiding this comment.
Collaborator
✅ Integration test reportCommit: fc3f149
Top 3 slowest tests (at least 2 minutes):
|
janniklasrose
force-pushed
the
janniklasrose/acc/uuid-unique-knob
branch
from
November 9, 2026 22:54
26ab8ff to
fc3f149
Compare
janniklasrose
changed the base branch from
main
to
janniklasrose/acc/distinct-single-value
November 9, 2026 22:55
Contributor
|
Commit: Regression test reportSelected 20 changed tests (limit=20, 6 not selected) 35 tests: regression=0 unreleased=0 coverage=35 failing=0
|
The built-in [UUID] replacement collapses every UUID to one token, so a golden cannot tell two distinct UUIDs apart (raised in review of #6995). Add a UniqueUUID test.toml knob (default false) that, when set, makes the built-in UUID replacement honor the existing Distinct numbering: distinct UUIDs in an output become [UUID][0], [UUID][1], ... in order of first appearance. Existing tests are unaffected (default off); a test opts in with UniqueUUID = true. Co-authored-by: Isaac <no-reply@databricks.com>
janniklasrose
force-pushed
the
janniklasrose/acc/uuid-unique-knob
branch
from
November 9, 2026 23:30
fc3f149 to
5c0a683
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Add opt-in UUID numbering through
UniqueUUID, defaulting tofalse, with unit tests and acceptance selftests. Existing goldens stay unchanged.Why
Keep the UUID replacement implementation separate from the golden updates. This is layer 2 after #7420: #7423 prepares affected tests, then #7021 removes the temporary option and enables numbering unconditionally.
Tests
go test ./libs/testdiff ./acceptance/internaland both UUID acceptance selftests passed on this layer.This PR was written by Isaac and revised with Codex.