Skip to content

test: fix stray uuid.v4() reference in extensions-spec - #53359

Merged
MarshallOfSound merged 1 commit into
mainfrom
fix/extensions-spec-uuid
Sep 1, 2026
Merged

MarshallOfSound merged 1 commit into
mainfrom
fix/extensions-spec-uuid

Conversation

@claude

@claude claude Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Requested by David Sanders · Slack thread

Description of Change

Before: every test shard on main fails while compiling the spec runner with TS2304: Cannot find name 'uuid' at spec/extensions-spec.ts:1336, so no tests can run (first red run: https://github.com/electron/electron/actions/runs/33461707628).

After: the spec runner compiles cleanly (tsc -p tsconfig.spec.json --noEmit passes) and CI can run again.

This was a merge race: #52744 removed the uuid dev-dependency from spec/package.json and converted all specs to randomUUID() from node:crypto, but #52597 — merged 73 minutes earlier — added a tabs.query test calling uuid.v4(), which #52744's branch never saw.

Fix: swap the stray uuid.v4() call for randomUUID() (already imported from node:crypto in this file), matching #52744's conversion. A grep confirms no other references to the uuid package remain in spec/.

Checklist

  • I have filled out the PR description
  • I have reviewed and verified the changes
  • tsc -p tsconfig.spec.json --noEmit passes (was failing before this change)

Release Notes

Notes: no-notes


Generated by Claude Code

A merge race between #52744, which removed the uuid dev-dependency
and converted specs to randomUUID() from node:crypto, and #52597,
which added a tabs.query test using uuid.v4(), left one stray uuid
reference that breaks spec runner compilation (TS2304) on every
test shard. Swap it for randomUUID(), matching #52744's conversion.
@dsanders11 dsanders11 added no-backport fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases labels Sep 1, 2026
@MarshallOfSound
MarshallOfSound merged commit 13ffb5f into main Sep 1, 2026
51 checks passed
@release-clerk

release-clerk Bot commented Sep 1, 2026

Copy link
Copy Markdown

No Release Notes

@MarshallOfSound
MarshallOfSound deleted the fix/extensions-spec-uuid branch September 1, 2026 05:57
@github-actions github-actions Bot added the 46-x-y label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

46-x-y fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases no-backport semver/none

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants