Skip to content

Conversation

@jaysoo
Copy link
Member

@jaysoo jaysoo commented Nov 13, 2025

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@netlify
Copy link

netlify bot commented Nov 13, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit f947d21
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6929ffcf8e66170008d97f89
😎 Deploy Preview https://deploy-preview-33468--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.

@vercel
Copy link

vercel bot commented Nov 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Nov 28, 2025 8:06pm

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Nov 13, 2025

View your CI Pipeline Execution ↗ for commit f947d21

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 12m 48s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 42s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-28 20:19:39 UTC

@github-actions
Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx [email protected] my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-33468-86c294c
Release details 📑
Published version 0.0.0-pr-33468-86c294c
Triggered by @jaysoo
Branch NXC-3464
Commit 86c294c
Workflow run 19337349373

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@github-actions
Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx [email protected] my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-33468-6e447bb
Release details 📑
Published version 0.0.0-pr-33468-6e447bb
Triggered by @jaysoo
Branch NXC-3464
Commit 6e447bb
Workflow run 19347098594

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@github-actions
Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx [email protected] my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-33468-7ba12c8
Release details 📑
Published version 0.0.0-pr-33468-7ba12c8
Triggered by @jaysoo
Branch NXC-3464
Commit 7ba12c8
Workflow run 19438705872

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@github-actions
Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx [email protected] my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-33468-10b2f55
Release details 📑
Published version 0.0.0-pr-33468-10b2f55
Triggered by @jaysoo
Branch NXC-3464
Commit 10b2f55
Workflow run 19475300511

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@github-actions
Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx [email protected] my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-33468-1bdc579
Release details 📑
Published version 0.0.0-pr-33468-1bdc579
Triggered by @jaysoo
Branch NXC-3464
Commit 1bdc579
Workflow run 19542895521

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@jaysoo jaysoo marked this pull request as ready for review November 20, 2025 22:15
Add template support to create-nx-workspace so we can generate full examples quicker.

Key features:
- Template prompt: Interactive selection of Empty/TypeScript/React/Angular templates
- Simplified Cloud prompt: Yes/no choice instead of CI provider selection
- A/B testing: Three message variants for Cloud prompt optimization
jaysoo and others added 11 commits November 27, 2025 15:14
Add A/B testing tracking for simplified Cloud prompt variants used in
template flow. This allows us to measure which prompt wording is most
effective at getting users to connect to Nx Cloud.

## Changes

- Add metaCode field to setupNxCloudSimple variants (green-prs, remote-cache, fast-ci)
- Capture prompt variant code after user selection
- Pass prompt code through function chain to URL generation
- Combine prompt code with success message code in meta parameter
- Track prompt variant in recordStat telemetry

## URL Meta Format

The meta parameter now tracks both A/B tests in format:
"prompt-code:success-code"

Examples:
- green-prs:template-cloud-connect-v1
- remote-cache:template-cloud-connect-v2
- fast-ci:template-cloud-connect-v3

This creates a 3×3 matrix allowing us to track which prompt wording
AND success message wording performed best.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Rename function to match the updated message key naming convention
(setupNxCloudV2). This makes the codebase more consistent.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Previously, the template flow was not calling connectToNxCloud generator,
which meant no Cloud workspace was created and nxCloudId remained undefined.
This caused readNxCloudToken to return undefined.

Now the template flow calls connectToNxCloud after installing dependencies,
which creates the Cloud workspace and writes nxCloudId to nx.json.

The preset flow is unchanged and continues to call connectToNxCloud through
the workspace generator as before.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Adds a 'Custom' option to the starter selection that redirects to the original
preset-based flow, giving users access to more configuration options including:
- Framework selection
- Test runner choices
- Bundler options
- And other preset-specific configurations

When 'Custom' is selected, the flow returns 'skip' which triggers the preset
flow instead of the template flow.
Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

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

Important

A new CI pipeline execution was requested that may update the conclusion below...

Nx Cloud is proposing a fix for your failed CI:

These changes fix the TypeScript compilation error by updating the test file to use the new getCompletionMessage function instead of the removed getMessageFactory. The PR refactored the message system from a factory pattern to a simpler direct function call, and these test updates ensure the test suite correctly validates the new API while maintaining all original test scenarios and expectations.

We verified this fix by re-running create-nx-workspace:test.

Warning

The suggested diff is too large to display here, but you can view it on Nx Cloud ↗


Apply fix via Nx Cloud  Reject fix via Nx Cloud


Or Apply changes locally with:

npx nx-cloud apply-locally Nnvu-1DrW

Apply fix locally with your editor ↗   View interactive diff ↗


🎓 Learn more about Self-Healing CI on nx.dev

@github-actions
Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx [email protected] my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-33468-9553ce4
Release details 📑
Published version 0.0.0-pr-33468-9553ce4
Triggered by @jaysoo
Branch NXC-3464
Commit 9553ce4
Workflow run 19766460805

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

Comment on lines +110 to +113
require('fs').appendFileSync(
'/tmp/nx-cloud-onboarding-url.txt',
`${x} - ${meta}\n`
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Debug code left in production. This writes onboarding URL data to /tmp/nx-cloud-onboarding-url.txt on every workspace creation, which will fail on Windows systems (no /tmp directory) and cause permission issues in restricted environments.

// Remove these lines:
require('fs').appendFileSync(
  '/tmp/nx-cloud-onboarding-url.txt',
  `${x} - ${meta}\n`
);

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Comment on lines +248 to 249
process.exit(1);
throw error;
Copy link
Contributor

Choose a reason for hiding this comment

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

Unreachable code. The throw error; statement on line 249 will never execute because process.exit(1) on line 248 terminates the process immediately. Remove the throw statement or restructure the error handling.

// Either remove the throw:
process.exit(1);

// Or remove process.exit and let the throw propagate:
throw error;
Suggested change
process.exit(1);
throw error;
process.exit(1);

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@github-actions
Copy link
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx [email protected] my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-33468-f947d21
Release details 📑
Published version 0.0.0-pr-33468-f947d21
Triggered by @jaysoo
Branch NXC-3464
Commit f947d21
Workflow run 19772879925

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants