Skip to content

fix(core): only register forced shutdown when tui is enabled#30735

Merged
FrozenPandaz merged 1 commit intomasterfrom
fix-shutdown
Apr 15, 2025
Merged

fix(core): only register forced shutdown when tui is enabled#30735
FrozenPandaz merged 1 commit intomasterfrom
fix-shutdown

Conversation

@FrozenPandaz
Copy link
Copy Markdown
Contributor

@FrozenPandaz FrozenPandaz commented Apr 15, 2025

Current Behavior

The registerForcedShutdownCallback lifecycle hook does not exist if the TUI is not enabled as it is not on CI. But Nx tries to invoke it anyways so it causes an error in CI: https://github.com/nrwl/nx/actions/runs/14471341199/job/40585817051?pr=30710#step:11:31

Expected Behavior

The registerForcedShutdownCallback is only utilized when the TUI is enabled so it will not be invoked on CI where it does not exist.

Related Issue(s)

Fixes #

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Apr 15, 2025 3:10pm

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Apr 15, 2025

View your CI Pipeline Execution ↗ for commit 3a192a4.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-ci ✅ Succeeded 54m 26s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 17s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded 2m 3s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-15 16:11:28 UTC

@FrozenPandaz FrozenPandaz marked this pull request as ready for review April 15, 2025 15:25
@FrozenPandaz FrozenPandaz requested a review from a team as a code owner April 15, 2025 15:25
@FrozenPandaz FrozenPandaz requested a review from xiongemi April 15, 2025 15:25
@FrozenPandaz FrozenPandaz enabled auto-merge (rebase) April 15, 2025 15:46
@FrozenPandaz FrozenPandaz disabled auto-merge April 15, 2025 15:46
@FrozenPandaz FrozenPandaz enabled auto-merge (squash) April 15, 2025 15:46
@FrozenPandaz FrozenPandaz merged commit 31548a1 into master Apr 15, 2025
12 checks passed
@FrozenPandaz FrozenPandaz deleted the fix-shutdown branch April 15, 2025 16:13
@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 Apr 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants