Update GitHub Actions to use deterministic npm installs and local-only npx execution#8522
Open
Copilot wants to merge 3 commits into
Open
Update GitHub Actions to use deterministic npm installs and local-only npx execution#8522Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/DevExpress/testcafe/sessions/81c2f208-939a-444e-b91e-95a200f8b94c Co-authored-by: aleks-pro <14822473+aleks-pro@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DevExpress/testcafe/sessions/81c2f208-939a-444e-b91e-95a200f8b94c Co-authored-by: aleks-pro <14822473+aleks-pro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix deterministic package installation command issues for DevExpress/testcafe
Update GitHub Actions to use deterministic npm installs and local-only npx execution
May 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates the workflows flagged in the deterministic-install audit to avoid non-reproducible package installation patterns and implicit
npxdownloads. The changes are limited to workflow command lines and keep the existing job flow intact.Deterministic dependency installation
npm i/npm installwithnpm ciLocal-only
npxexecutionnpx gulp ...invocations withnpx --no-install gulp ...Edge-case command handling
test-dependencies.yml: replaced lockfile mutation flow with direct lockfile audit vianpm audit --package-lock-only --productionlicense-check.yml: preserved the local packed-tarball install flow by generating a lockfile for the packed artifact first, then installing vianpm ciRepresentative command changes
This addresses the workflow command patterns called out for this repository in the deterministic package installation cleanup.
Original prompt
Fix the deterministic package installation command issues described in DevExpress/dxvcs#32108 for the repository DevExpress/testcafe.
Goal:
Required changes:
npm iandnpm installwithnpm ciwhere appropriate and safe.npx <cmd>withnpx --no-install <cmd>where appropriate.npm i --package-lock-onlynpm i <package> ../local-path --savenpm init -y && npm install ../*.tgznpm ciis not valid, adjust the workflow/command sequence appropriately.Flagged files from the issue for DevExpress/testcafe:
Acceptance criteria:
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Help fix the following issue: @DevExpress/dxvcs/issues/32108
Assistant: I can help, but I can’t directly “fix” this issue across repos unless you want me to create PRs, and PR creation requires an explicit target repository.
Issue
DevExpress/dxvcs#32108spans many repositories, including:DevExpress/testcafeDevExpress/testcafe-studioDevExpress/testcafe-hammerheadDevExpress/testcafe.ioDevExpress/generator-testcafe-reporterDevExpress/testcafe-examplesDevExpress/testcafe-browser-toolsDevExpress/angular-testcafeDevExpress/log-update-async-hookDevExpress/testcafe-selector-generatorDevExpress/testcafe-browser-provider-electronDevExpress/testcafe-legacy-apiDevExpress/testcafe-browser-provider-browserstackRecommended fixes from the issue are:
npm i/npm installwithnpm ciwhere appropriatenpx ...withnpx --no-install ...Important caveat:
npm i --package-lock-onlynpm i <package> ../local-path --savenpm init -y && npm install ../*.tgznpm ciIf you want, I can do one of these next:
DevExpress/testcafeIf you want a PR, send:
owner/repoformatExample:
DevExpress/testcafe”DevExpress/testcafe-hammerheadtargetingmaster”User: Create a PR for each of the following repositories: DevExpress/testcafe
DevExpress/testcafe-studio
DevExpress/testcafe-hammerhead
DevExpress/testcafe.io
DevExpress/generator-testcafe-reporter
DevExpress/testcafe-examples
DevExpress/testcafe-browser-tools
DevExpress/angular-testcafe
DevExpress/log-update-async-hook
DevExpress/testcafe-selector-generator
DevExpress/testcafe-browser-provider-electron
DevExpress/testcafe-legacy-api
DevExpress/testcafe-browser-provider-browserstack targeting master
Assistant: I’m waiting for your response to the approval prompt before I can continue creating the PRs for those repositories.
This pull request was created from Copilot chat.