Repository navigation
ci: explicitly exit Node lint scripts to fix CI hang - #22794
Merged
GirlBossRush merged 1 commit intoJun 2, 2026
Merged
Conversation
The three Node scripts that run under `setup-node` (lint-lockfile, lint-runtime, setup-corepack) finish their main work but the Node process does not exit — the event loop is kept alive by an outstanding handle from one of the upstream libraries. In CI this causes the step to hang indefinitely until the runner timeout fires. Add an explicit `process.exit(0)` after the success path in each script. setup-corepack is restructured so `main()` returns the `$`corepack …`` promise and the success log moves into `.then()` before the exit, keeping ordering deterministic. Co-Authored-By: Agent (authentik-m-split-pr-committed-every-mikado) <[email protected]>
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22794 +/- ##
==========================================
- Coverage 93.29% 93.25% -0.05%
==========================================
Files 1033 1033
Lines 60150 60150
Branches 400 400
==========================================
- Hits 56117 56091 -26
- Misses 4033 4059 +26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
BeryJu
approved these changes
Jun 2, 2026
Contributor
|
|
dominic-r
pushed a commit
that referenced
this pull request
Jun 4, 2026
The three Node scripts that run under `setup-node` (lint-lockfile, lint-runtime, setup-corepack) finish their main work but the Node process does not exit — the event loop is kept alive by an outstanding handle from one of the upstream libraries. In CI this causes the step to hang indefinitely until the runner timeout fires. Add an explicit `process.exit(0)` after the success path in each script. setup-corepack is restructured so `main()` returns the `$`corepack …`` promise and the success log moves into `.then()` before the exit, keeping ordering deterministic. Co-authored-by: Agent (authentik-m-split-pr-committed-every-mikado) <[email protected]>
kensternberg-authentik
added a commit
that referenced
this pull request
Jun 30, 2026
* main: (175 commits) web: fix British spellings flagged by cspell (#22820) web: Flesh out frontend, E2E, agent instructions. (#22388) root: update gen-changelog to filter unnecessary commits (#22550) root: gitignore release generation artifacts (#22549) sources/oauth: Fallback to `id` field when `sub` is missing in OIDC callback (#22672) translate: Updates for project authentik and language fr_FR (#22687) ci: replace deprecated app-id with client-id for actions/create-github-app-token (#22799) web: bump @playwright/test from 1.59.1 to 1.60.0 in /web (#22476) web: bump the storybook group across 1 directory with 5 updates (#22653) website/docs: add oidc issuer information (#22556) ci: bump snok/container-retention-policy from 3.0.1 to 3.1.0 (#22778) website: bump the build group across 1 directory with 9 updates (#22669) web: bump knip from 6.12.0 to 6.14.1 in /web (#22657) ci: update ubuntu version of ARM runners (#22798) core: bump openapitools/openapi-generator-cli from v7.20.0 to v7.22.0 in /packages/client-go (#22573) core: bump axllent/mailpit from v1.30.0 to v1.30.1 in /tests/e2e (#22747) core: bump goauthentik/fips-python from `33d1ed9` to `7a06339` in /lifecycle/container (#22676) ci: explicitly exit Node lint scripts to fix CI hang (#22794) core: bump openapitools/openapi-generator-cli from v7.21.0 to v7.22.0 in /packages/client-ts (#22575) core: bump django-stubs[compatible-mypy] from 6.0.4 to 6.0.5 (#22748) ...
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.
Summary
The three Node scripts wired into
.github/actions/setup-nodefinish their mainwork but the Node process does not exit on its own — something in the event
loop (logger transport / upstream child-process handle) keeps the process alive
until GitHub Actions' six-hour default timeout fires. The result is a CI step
that "succeeds" but never returns control to the runner.
The fix is a single explicit
process.exit(0)after the success path in eachscript:
scripts/node/lint-lockfile.mjs— exit0after the "lockfile is in sync"log.
scripts/node/lint-runtime.mjs— exit0after the "node/npm versions are insync" log.
scripts/node/setup-corepack.mjs—main()now returns thecorepackshellpromise; the "Corepack setup completed successfully" log moves into
.then()immediately before the exit so the message ordering stays deterministic.
This is the load-bearing fix for the CI hang. The timeout-additions discussed
on #22533 are split into a separate PR ("ci: add timeouts to docker build,
lint, and setup-node install steps") per @rissson's request — that PR is an
independent defense-in-depth measure and does not block this one.
Closes #22533 (in favor of this PR + the timeouts PR).
Test plan
node ./scripts/node/lint-runtime.mjs→ exit 0node ./scripts/node/lint-lockfile.mjs→ exit 0node ./scripts/node/setup-corepack.mjs→ exit 0.catch(reportAndExit)error path is unchanged in all three files.Disclosure
Triaged and authored end-to-end by an agent running in a sandbox against
goauthentik/authentik@main. Reviewed and shipped by @GirlBossRush.