Skip to content

feat(nest): ensure dependencies are added to project's package.json #32548#32986

Merged
Coly010 merged 1 commit intomasterfrom
nest/ensure-deps-generated
Oct 8, 2025
Merged

feat(nest): ensure dependencies are added to project's package.json #32548#32986
Coly010 merged 1 commit intomasterfrom
nest/ensure-deps-generated

Conversation

@Coly010
Copy link
Copy Markdown
Contributor

@Coly010 Coly010 commented Oct 7, 2025

Current Behavior

NestJS dependencies are not added to the project's package.json leading to issues when pruning lockfile for dockerfiles.

Expected Behavior

Ensure NestJS dependencies are added to the project's package.json.

Related Issue(s)

Fixes #32548

@Coly010 Coly010 requested a review from a team as a code owner October 7, 2025 10:54
@Coly010 Coly010 requested a review from FrozenPandaz October 7, 2025 10:54
@Coly010 Coly010 self-assigned this Oct 7, 2025
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 7, 2025

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

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Oct 8, 2025 8:48am

@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 7, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit c099d4c
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/68e621ba1fc8a00008a7c057
😎 Deploy Preview https://deploy-preview-32986--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.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Oct 7, 2025

View your CI Pipeline Execution ↗ for commit c099d4c

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 20m 35s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 11s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 5s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 5s View ↗
nx documentation ✅ Succeeded 2m 7s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-08 09:01:15 UTC

nx-cloud[bot]

This comment was marked as outdated.

Copy link
Copy Markdown
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.

Nx Cloud has identified a possible root cause for your failed CI:

The failure is classified as 'environment_state' rather than 'code_change' for the following reasons:

  1. No Direct Correlation with PR Changes: The PR's intent is to "ensure NestJS dependencies are added to project's package.json" (issue #32548). However, the failing test is for Angular Module Federation with federated libraries, which has no logical connection to NestJS dependency management.

  2. Unrelated Test Domain: The test failure occurs in module-federation-lib.test.ts testing Angular Module Federation functionality, while the PR changes specifically target NestJS project generation to ensure dependencies are properly added to package.json files for Docker lockfile pruning scenarios.

  3. Environmental Indicators Present: The error includes multiple instances of Corepack warnings about missing 'packageManager' fields being auto-added:

    • "The local project doesn't define a 'packageManager' field. Corepack will now add one referencing pnpm@9.15.9..."
    • This suggests the test environment has Corepack behavior that is interfering with test execution
  4. Test Infrastructure Issue: The failure is in test setup/execution (runCLI in command-utils.ts:399:26) rather than in actual application code, suggesting an environmental or test infrastructure problem.

  5. No Code Changes in Failing Test Area: The PR diff would show changes to NestJS generators, not Angular Module Federation test code. The failure point is unrelated to any code that would be modified by ensuring NestJS dependencies are in package.json.

  6. Timing Inconsistency: One test in the suite passed (taking 207 seconds) while another failed (taking 11 seconds), which suggests environmental instability rather than a systematic code issue introduced by the changes.

The failure appears to be caused by environmental state issues related to package manager detection and Corepack configuration in the test environment, not by the PR's changes to NestJS dependency management.

A code change would likely not resolve this issue, so no action was taken.

Nx CloudView in Nx Cloud ↗


⚙️ An Nx Cloud workspace admin can disable these reviews in workspace settings.

@Coly010 Coly010 force-pushed the nest/ensure-deps-generated branch from 6598d43 to c099d4c Compare October 8, 2025 08:32
@Coly010 Coly010 merged commit 90f9085 into master Oct 8, 2025
19 checks passed
@Coly010 Coly010 deleted the nest/ensure-deps-generated branch October 8, 2025 09:30
FrozenPandaz pushed a commit that referenced this pull request Oct 8, 2025
…32548 (#32986)

## Current Behavior
NestJS dependencies are not added to the project's package.json leading
to issues when pruning lockfile for dockerfiles.

## Expected Behavior
Ensure NestJS dependencies are added to the project's package.json.

## Related Issue(s)

Fixes #32548

(cherry picked from commit 90f9085)
@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 Oct 14, 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.

nestjs Dockerfile failed using clean create-nx-workspace@latest

2 participants