Skip to content

Remove unused testdiff replacement helpers - #6643

Open
denik wants to merge 1 commit into
mainfrom
denik/rm-testdiff-helpers
Open

Remove unused testdiff replacement helpers#6643
denik wants to merge 1 commit into
mainfrom
denik/rm-testdiff-helpers

Conversation

@denik

@denik denik commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

WithReplacementsMap / GetReplacementsMap (the context.Context carrier for a ReplacementsContext) and the PrepareReplacementsNumber / PrepareReplacementsTemporaryDirectory helpers were added in #2151 (Jan 2025) but are exercised only by testdiff's own tests — no other package uses them. Their numIdRegex / privatePathRegex become orphaned and are removed too.

The live siblings (PrepareReplacementsUUID, PrepareReplacementSdkVersion, used by the acceptance harness) are kept. deadcode -test ./... doesn't flag any of this because testdiff's own tests keep it reachable.

This pull request and its description were written by Isaac.

WithReplacementsMap/GetReplacementsMap (the context carrier for a
ReplacementsContext) and the PrepareReplacementsNumber/
PrepareReplacementsTemporaryDirectory helpers were added in #2151 (Jan 2025)
but are exercised only by testdiff's own tests; no other package uses them.
Removes the now-orphaned numIdRegex/privatePathRegex with them. Keeps the
live siblings (PrepareReplacementsUUID, PrepareReplacementSdkVersion).

Co-authored-by: Isaac <no-reply@databricks.com>
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 6eb4a44

Run: 34609579722

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux 1 275 15 8:28
💚​ aws windows 1 277 13 4:58
💚​ azure linux 1 274 15 11:21
💚​ azure windows 1 276 13 4:23
💚​ gcp linux 1 275 15 8:56
💚​ gcp windows 1 277 13 5:36
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 4 slowest tests (at least 2 minutes):
duration env testname
3:48 azure windows TestAccept
3:25 gcp windows TestAccept
3:22 aws windows TestAccept
2:51 azure linux TestFilerWorkspaceFilesExtensionsReadDir

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.

3 participants