Skip to content

fix(core): preserve nxCloud=skip in non-interactive CNW mode#34616

Merged
jaysoo merged 1 commit intomasterfrom
fix/cnw-skip-cloud-remapping
Feb 26, 2026
Merged

fix(core): preserve nxCloud=skip in non-interactive CNW mode#34616
jaysoo merged 1 commit intomasterfrom
fix/cnw-skip-cloud-remapping

Conversation

@FrozenPandaz
Copy link
Collaborator

Current Behavior

After #34580, determineNxCloudV2() returns 'skip' in non-interactive mode, but the caller remaps it to nxCloud = 'yes' with skipCloudConnect = true. This causes setupCI() to run and generate .github/workflows/ci.yml in new workspaces — which didn't happen before.

This breaks the extras.test.ts e2e snapshot test because .github/workflows/ci.yml now appears in the expanded default task inputs.

Expected Behavior

Keep nxCloud = 'skip' when the cloud choice is 'skip', which prevents CI file generation in non-interactive mode. This restores the behavior prior to #34580.

Related Issue(s)

Fixes the extras.test.ts e2e snapshot failure introduced by #34580.

The recent change in feat(core): add explicit cloud opt-out to CNW
remapped the 'skip' cloud choice to nxCloud='yes' with
skipCloudConnect=true. This caused setupCI() to run in non-interactive
mode, generating .github/workflows/ci.yml in new workspaces where it
previously did not. This broke the extras e2e snapshot test.

Restore the original behavior by keeping nxCloud='skip' when the cloud
choice is 'skip', which prevents CI file generation.
@netlify
Copy link

netlify bot commented Feb 26, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 11ae924
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/699fa1eae25a9b000772c030
😎 Deploy Preview https://deploy-preview-34616--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
Copy link

netlify bot commented Feb 26, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 11ae924
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/699fa1ea0c81600008de6cad
😎 Deploy Preview https://deploy-preview-34616--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
Copy link
Contributor

nx-cloud bot commented Feb 26, 2026

View your CI Pipeline Execution ↗ for commit 11ae924

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 13m 30s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 19s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 8s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-26 01:46:36 UTC

@jaysoo jaysoo merged commit fcf4660 into master Feb 26, 2026
24 checks passed
@jaysoo jaysoo deleted the fix/cnw-skip-cloud-remapping branch February 26, 2026 04:03
FrozenPandaz added a commit that referenced this pull request Feb 26, 2026
## Current Behavior

After #34580, `determineNxCloudV2()` returns `'skip'` in non-interactive
mode, but the caller remaps it to `nxCloud = 'yes'` with
`skipCloudConnect = true`. This causes `setupCI()` to run and generate
`.github/workflows/ci.yml` in new workspaces — which didn't happen
before.

This breaks the `extras.test.ts` e2e snapshot test because
`.github/workflows/ci.yml` now appears in the expanded default task
inputs.

## Expected Behavior

Keep `nxCloud = 'skip'` when the cloud choice is `'skip'`, which
prevents CI file generation in non-interactive mode. This restores the
behavior prior to #34580.

## Related Issue(s)

Fixes the `extras.test.ts` e2e snapshot failure introduced by #34580.

(cherry picked from commit fcf4660)
FrozenPandaz added a commit that referenced this pull request Feb 26, 2026
## Current Behavior

After #34580, `determineNxCloudV2()` returns `'skip'` in non-interactive
mode, but the caller remaps it to `nxCloud = 'yes'` with
`skipCloudConnect = true`. This causes `setupCI()` to run and generate
`.github/workflows/ci.yml` in new workspaces — which didn't happen
before.

This breaks the `extras.test.ts` e2e snapshot test because
`.github/workflows/ci.yml` now appears in the expanded default task
inputs.

## Expected Behavior

Keep `nxCloud = 'skip'` when the cloud choice is `'skip'`, which
prevents CI file generation in non-interactive mode. This restores the
behavior prior to #34580.

## Related Issue(s)

Fixes the `extras.test.ts` e2e snapshot failure introduced by #34580.

(cherry picked from commit fcf4660)
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

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 Mar 4, 2026
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