Skip to content

[NO-CDX] Fix breaking React compatibility tests - #56

Closed
Mudaafi wants to merge 2 commits into
mainfrom
fix-failing-react-compat-tests
Closed

[NO-CDX] Fix breaking React compatibility tests#56
Mudaafi wants to merge 2 commits into
mainfrom
fix-failing-react-compat-tests

Conversation

@Mudaafi

@Mudaafi Mudaafi commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Mudaafi
Mudaafi requested a review from a team August 27, 2026 16:45
@Mudaafi
Mudaafi requested a review from a team as a code owner August 27, 2026 16:45
Copilot AI lite review requested due to automatic review settings August 27, 2026 16:45
constructor-claude-bedrock[bot]

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the React compatibility GitHub Actions workflow to adjust how dependencies are installed during the matrix run.

Changes:

  • Switched the library dependency install step in the React compat workflow from npm ci to npm i.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/react-compat.yml Outdated
node-version: "22.18.0"
- name: Install library deps
run: npm ci
run: npm i

@constructor-claude-bedrock constructor-claude-bedrock 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.

Code Review

This PR fixes the React compat CI workflow by replacing npm ci with npm i --no-audit --no-fund --package-lock=false to resolve installation failures, but the change trades reproducibility for flexibility in a way that may mask the root problem.

Inline comments: 1 discussion added

Overall Assessment: ⚠️ Needs Work

node-version: "22.18.0"
- name: Install library deps
run: npm ci
run: npm i --no-audit --no-fund --package-lock=false

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Important Issue: Replacing npm ci with npm i --package-lock=false undermines CI reproducibility. npm ci exists precisely to enforce a clean, deterministic install from the lockfile — which is what CI should be doing. Using npm i --package-lock=false instead means dependencies can silently resolve to different (potentially breaking or vulnerable) versions on each run.

The root cause here is that npm ci was failing, likely because the package-lock.json is out of sync with package.json, or the lockfile does not exist. The correct fix is to identify and resolve that mismatch rather than bypassing the lockfile altogether.

If the intent is to allow installing the latest compatible versions of deps for testing against different React versions, a more explicit and intentional approach would be to document this decision and use a separate package.json install step that updates only the peer dependency (React) before running npm ci on the rest — or to rely on the already-present npm ci --no-audit --no-fund in the fixture install step (line 39) which already correctly uses npm ci.

Suggested fix: Investigate why npm ci was failing (likely a stale or missing package-lock.json) and fix the lockfile rather than bypassing it. If dynamic resolution is truly required for this step, add a comment explaining the rationale.

@Mudaafi Mudaafi closed this Aug 27, 2026
@Mudaafi
Mudaafi deleted the fix-failing-react-compat-tests branch August 27, 2026 17:22
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