Skip to content

build: fix frontend lockfile and sync plugin dependencies - #7284

Open
Kakumanu-Harshitha wants to merge 1 commit into
kubernetes-sigs:mainfrom
Kakumanu-Harshitha:fix-issue-7283
Open

build: fix frontend lockfile and sync plugin dependencies#7284
Kakumanu-Harshitha wants to merge 1 commit into
kubernetes-sigs:mainfrom
Kakumanu-Harshitha:fix-issue-7283

Conversation

@Kakumanu-Harshitha

Copy link
Copy Markdown
Contributor

Summary

This PR fixes the npm ci lockfile parsing failures in the frontend CI workflows and subsequently fixes the test-plugin-examples CI job failure caused by the plugin dependencies falling out of sync.

Related Issue

Fixes #7283

Changes

  • Added @emnapi/core and @emnapi/runtime as direct dependencies in frontend/package.json to ensure they are tracked properly across environments with different npm versions.
  • Regenerated frontend/package-lock.json.
  • Synced the new frontend @emnapi dependencies into plugins/headlamp-plugin/package.json.
  • Regenerated plugins/headlamp-plugin/package-lock.json so the plugin tests pass cleanly during the dependencies-sync.js check.

Steps to Test

  1. Check out this branch locally: git checkout fix-issue-7283.
  2. Run npm ci in the frontend/ directory and ensure it installs without the "Missing @emnapi" error.
  3. Run npm run check-dependencies inside plugins/headlamp-plugin/ and ensure it exits with code 0 (no missing dependencies detected).
  4. Verify that the GitHub Actions test-plugin-examples and frontend-install-ci jobs pass on this PR.

Screenshots

N/A

Notes for the Reviewer

The original issue stemmed from transitive dependencies required by the frontend compiler changing between npm versions in CI vs local machines. By adding the @emnapi dependencies directly to the frontend, they get locked firmly in the lockfile for all environments. The plugin directory was then updated to mirror these changes and satisfy our dependency sync scripts.

@kubernetes-prow kubernetes-prow Bot added do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 16, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Kakumanu-Harshitha
Once this PR has been reviewed and has the lgtm label, please assign skoeva for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Add @emnapi/core and @emnapi/runtime as direct dependencies in frontend to ensure
they are correctly synced to the lockfile across different npm versions.
Sync the same dependencies to the headlamp-plugin to prevent CI failures.
@kubernetes-prow kubernetes-prow Bot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test-plugin-examples CI job fails due to out-of-sync plugin

1 participant