Skip to content

fix(release): stop release e2e flaking on the GitHub username lookup - #37544

Merged
FrozenPandaz merged 2 commits into
masterfrom
fix/release-e2e-author-lookup-flake
Oct 21, 2026
Merged

FrozenPandaz merged 2 commits into
masterfrom
fix/release-e2e-author-lookup-flake

Conversation

@FrozenPandaz

@FrozenPandaz FrozenPandaz commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Current Behavior

e2e/release/src/release.test.ts › "should version and publish multiple related npm packages with zero config" flakes often. Two inline snapshots fail because the changelog's Thank You line is - Test instead of - Test @{COMMIT_AUTHOR}.

CI commits as test@test.com. Because the test adds a github.com remote, nx release changelog maps authors to GitHub usernames, which for that email means a live https://ungh.cc/users/find/test@test.com lookup. ungh sits in front of GitHub's rate-limited user search. When it fails, the gh CLI fallback is not authenticated on agents either, so the username is dropped. The other release e2e tests with a GitHub remote make the same network call; they just don't snapshot the result.

Expected Behavior

e2e commits use test@users.noreply.github.com, set in the Nx Agents env (.nx/workflows/agents.yaml), the e2e matrix global git config, and each e2e git config user.email line. applyUsernameToAuthors parses noreply emails locally before any network call, so the username resolves offline on every run. The snapshots are unchanged (Test @test is still normalized to Test @{COMMIT_AUTHOR}).

The first commit fixed only release.test.ts with a per-commit --author; the second commit replaces that with the shared setup change.

Related Issue(s)

N/A


View Polygraph session ↗

The zero-config test committed as test@test.com, so its changelog snapshot needed a live ungh.cc lookup. ungh fronts GitHub's rate-limited user search; when it failed the Thank You line lost its @username. Commit with a noreply author so the username resolves offline.
@netlify

netlify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit b0ed578
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6ad91a8f47927501052ee15d
😎 Deploy Preview https://deploy-preview-37544--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit b0ed578
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/6ad91a8fab618dac32a4fa70
😎 Deploy Preview https://deploy-preview-37544--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud

nx-cloud Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit b0ed578

Command Status Duration Result
nx affected --targets=lint,oxlint,test,build,e2... ✅ Succeeded 51m 37s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 43s View ↗
nx build workspace-plugin ✅ Succeeded 17s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 30s View ↗
nx-cloud record -- nx format:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-10-21 21:05:12 UTC

Swap test@test.com for test@users.noreply.github.com in the agent env, the e2e matrix global config and the e2e git config lines. nx release now resolves the author's GitHub username locally in every release e2e with a GitHub remote, so no test depends on ungh.cc. This makes the --author override from the previous commit redundant, so it is removed.
@FrozenPandaz
FrozenPandaz marked this pull request as ready for review October 21, 2026 20:06
@FrozenPandaz
FrozenPandaz requested a review from a team as a code owner October 21, 2026 20:06
@FrozenPandaz
FrozenPandaz enabled auto-merge (squash) October 21, 2026 20:08
@FrozenPandaz
FrozenPandaz merged commit c29ab6c into master Oct 21, 2026
26 checks passed
@FrozenPandaz
FrozenPandaz deleted the fix/release-e2e-author-lookup-flake branch October 21, 2026 21:06
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants