Skip to content

build: install Node.js and pnpm in the dev container - #983

Merged
polewskm merged 9 commits into
mainfrom
worktree-issue-979
Nov 30, 2026
Merged

polewskm merged 9 commits into
mainfrom
worktree-issue-979

Conversation

@polewskm

@polewskm polewskm commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

The dev container installs the frontend's toolchain when it is created: the Node.js major frontend/.node-version pins, the pnpm version frontend/package.json pins and the frontend packages, so ./build/dod.ps1's brand kit stage and the frontend gate run in a Codespace with no manual step.

  • build/Initialize-DevContainerFrontend.ps1 installs the newest release of the pinned Node.js major from nodejs.org with bounded, retried requests, checks its SHA-256 against SHASUMS256.txt, extracts it to ~/.node/<version> and then runs build/frontend-install.ps1 for pnpm and the frozen-lockfile install.
  • build/tests/Initialize-DevContainerFrontend.tests.ps1 runs the script against a fixture distribution that a local listener serves, and build/dod.ps1 runs it in the dev container frontend stage.
  • .devcontainer/devcontainer.json runs the script after .template/Initialize-DevContainer.ps1 and puts ~/.node/current/bin first on PATH.
  • README.md, CONTRIBUTING.md and the changelog entry describe the container as it is.

Protected paths changed:
build/Initialize-DevContainerFrontend.ps1
build/dod.ps1
build/tests/Initialize-DevContainerFrontend.tests.ps1

Closes #979

@polewskm
polewskm deployed to code-review November 30, 2026 22:44 — with GitHub Actions Active
@polewskm polewskm self-assigned this Nov 30, 2026

@ncode-review ncode-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🤖 NCode Review at cc8f6fc: 7 new findings on the changed lines.

Comment thread .devcontainer/devcontainer.json Resolved
@ncode-review

ncode-review Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Superseded by the review at c777a5c.

@polewskm
polewskm marked this pull request as ready for review November 30, 2026 22:52
@polewskm
polewskm deployed to code-review November 30, 2026 22:52 — with GitHub Actions Active
@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #983   +/-   ##
=======================================
  Coverage   96.20%   96.20%           
=======================================
  Files        2437     2437           
  Lines      114032   114032           
  Branches      196      196           
=======================================
  Hits       109709   109709           
  Misses       4323     4323           
Flag Coverage Δ
dotnet 96.06% <ø> (ø)

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

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@polewskm

Copy link
Copy Markdown
Contributor Author

/review

@ncode-review-approver ncode-review-approver Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved at c777a5c: no blocker or should-fix finding remains.

@ncode-review

ncode-review Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

🤖 Review complete

Verdict: ✅ Approve — Re-review of what changed since the last review at cc8f6fc: 4 hunks in 3 files and changes taken back in 1 file, by correctness only. Earlier findings: F7 fixed. No further findings above nits.

Approval: Approved — no blocker or should-fix finding remains.

1 reviewer run — 0 findings (run details)

Reviewer Model Findings Top
correctness sonnet-5-5 0 🟢

Trial: findings are posted as review threads and in the check run. $0.09 on Amazon Bedrock, 20s, at c777a5c. (how to interact)

📋 Outcomes

Merged at 6fae87e: 7 fixed, 0 dismissed, 0 acknowledged, 0 ignored.

Finding Reviewer Severity Outcome
F1 tests, conventions, rule-check 🟠 Should fix ✅ fixed
F2 correctness, rule-check 🟡 Nit ✅ fixed
F3 hygiene, architecture 🟡 Nit ✅ fixed
F4 hygiene, correctness 🟡 Nit ✅ fixed
F5 rule-check 🟡 Nit ✅ fixed
F6 rule-check 🟡 Nit ✅ fixed
F7 hygiene 🟡 Nit ✅ fixed

@polewskm
polewskm enabled auto-merge November 30, 2026 23:07
@polewskm

Copy link
Copy Markdown
Contributor Author

Autopilot: this pull request is ready to merge as far as this run can tell.

  • One round of review feedback: NCode Review's seven findings on cc8f6fc (F1 to F7) were each judged against the code, held and fixed, in c67f22b (F2 to F7), fcafdb4 (F1, with a fixture test that also found a strict-mode failure in Get-ExpectedHash) and c777a5c (a request with no HTTP response is retried). NCode Review re-reviewed c777a5c, approved it and has no further findings.
  • Left as follow-ups or for the maintainer: none.
  • Unresolved threads: none.
  • Protected paths changed, which the request authorized by naming the issue:
    • build/Initialize-DevContainerFrontend.ps1
    • build/dod.ps1
    • build/tests/Initialize-DevContainerFrontend.tests.ps1
  • The Actions runs on c777a5c were still in progress when this was posted: Definition of Done, End-to-end and Analyze (csharp). The default branch's newest commit has no failed run.
  • The Linux branch of the new fixture test and the connection-failure retry were run in a Linux PowerShell container, not on a Windows machine; a Codespace creation from this branch is the one check no gate runs.

After you merge, run /finish-plan issue-979.

@polewskm
polewskm added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit e37ca2c Nov 30, 2026
25 of 37 checks passed
@polewskm
polewskm deleted the worktree-issue-979 branch November 30, 2026 23:47
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.

Install Node.js and pnpm in the dev container

1 participant