Skip to content

ci: Fix Node script hang. Add timeouts to docker build, lint, and setup-node install steps - #22533

Closed
GirlBossRush wants to merge 3 commits into
mainfrom
ci/timeout-stuck-builds
Closed

ci: Fix Node script hang. Add timeouts to docker build, lint, and setup-node install steps#22533
GirlBossRush wants to merge 3 commits into
mainfrom
ci/timeout-stuck-builds

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented May 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add explicit process.exit(0) calls to scripts to drain logger.
  • Add timeout-minutes: 30 to _reusable-docker-build-single.yml (build job) and the lint matrix in ci-main.yml — both were relying on GitHub's 6-hour default.
  • Add timeout-minutes: 5 to the two corepack npm ci steps in .github/actions/setup-node so a hung npm install surfaces as a real failure.

@GirlBossRush
GirlBossRush requested a review from a team as a code owner May 21, 2026 12:34
@netlify

netlify Bot commented May 21, 2026

Copy link
Copy Markdown

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit bd4b415
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a0fad6e05e8ee0008401c7d
😎 Deploy Preview https://deploy-preview-22533--authentik-integrations.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.

@codecov

codecov Bot commented May 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.24%. Comparing base (d9bd596) to head (91b07ef).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22533      +/-   ##
==========================================
+ Coverage   93.21%   93.24%   +0.02%     
==========================================
  Files        1033     1033              
  Lines       60075    60075              
  Branches      400      400              
==========================================
+ Hits        56001    56019      +18     
+ Misses       4074     4056      -18     
Flag Coverage Δ
conformance 36.60% <ø> (+<0.01%) ⬆️
e2e 41.85% <ø> (+0.40%) ⬆️
integration 32.55% <ø> (-0.50%) ⬇️
rust 0.00% <ø> (ø)
unit 92.22% <ø> (+<0.01%) ⬆️
unit-migrate 92.26% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@netlify

netlify Bot commented May 21, 2026

Copy link
Copy Markdown

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit bd4b415
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a0fad6efe20fa000842f22b
😎 Deploy Preview https://deploy-preview-22533--authentik-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.

@rissson

rissson commented May 21, 2026

Copy link
Copy Markdown
Member

if we're doing this, let's add timeouts to everything

@GirlBossRush
GirlBossRush force-pushed the ci/timeout-stuck-builds branch from de0f98d to 24666e0 Compare May 21, 2026 15:27
@GirlBossRush
GirlBossRush requested a review from a team as a code owner May 21, 2026 15:27
@GirlBossRush GirlBossRush changed the title ci: add timeouts to docker build, lint, and setup-node install steps ci: Fix Node script hang. Add timeouts to docker build, lint, and setup-node install steps May 21, 2026
@GirlBossRush GirlBossRush self-assigned this May 21, 2026
@GirlBossRush GirlBossRush added area:frontend Features or issues related to the browser, TypeScript, Node.js, etc area:infrastructure labels May 21, 2026
GirlBossRush and others added 2 commits May 22, 2026 03:12
Surfaces hosted-runner/network hangs as prompt failures instead of
letting jobs sit for GitHub's 6-hour default.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@GirlBossRush
GirlBossRush force-pushed the ci/timeout-stuck-builds branch from 24666e0 to bd4b415 Compare May 22, 2026 01:12
@GirlBossRush
GirlBossRush requested review from BeryJu and rissson May 22, 2026 01:46
@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-91b07ef583d9e1ea70c93e8c4b6258b63f1b5374
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-91b07ef583d9e1ea70c93e8c4b6258b63f1b5374

Afterwards, run the upgrade commands from the latest release notes.

run: | #shell
node ./scripts/node/lint-lockfile.mjs
corepack npm ci
timeout 5m corepack npm ci

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a timeout on that step instead? If that's supported, I'm not 100% on that

build:
name: Build ${{ inputs.image_arch }}
runs-on: ${{ inputs.runs-on }}
timeout-minutes: 30

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather have one PR that fixes the hang, and then another big one that adds timeouts to everything

@GirlBossRush

Copy link
Copy Markdown
Contributor Author

Splitting this into two focused PRs per @rissson's review:

Closing in favor of those two. Thanks @rissson!

@github-project-automation github-project-automation Bot moved this from Todo to Done in authentik Core Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc area:infrastructure

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants