Fix test workflow artifact handoff and pin artifact actions to patched versions#230
Open
Copilot wants to merge 3 commits into
Open
Fix test workflow artifact handoff and pin artifact actions to patched versions#230Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/DevExpress/testcafe-browser-provider-browserstack/sessions/412572b9-fd6f-45a5-9044-ed205d6fd518 Co-authored-by: aleks-pro <14822473+aleks-pro@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DevExpress/testcafe-browser-provider-browserstack/sessions/412572b9-fd6f-45a5-9044-ed205d6fd518 Co-authored-by: aleks-pro <14822473+aleks-pro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions workflow
Fix test workflow artifact handoff and pin artifact actions to patched versions
May 12, 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.
The
testjob expected.builds/testcafe-browser-provider-browserstack-1.15.2.tgz, but the tarball is produced in a separatebuildjob and was not transferred across job boundaries. This PR adds explicit artifact handoff and pins artifact actions to patched versions.Workflow artifact handoff between jobs
.builds/*.tgzinbuild.buildsintestbeforetest-npmAction version pinning for security
actions/download-artifacttov4.1.3(patched for the arbitrary file write advisory)actions/upload-artifacttov4.6.2for explicit, stable action resolutionResulting workflow behavior
testnow receives the tarball at the expected path frombuildinstead of assuming a shared filesystemOriginal prompt
Fix the failing GitHub Actions workflow in repository
DevExpress/testcafe-browser-provider-browserstack.Context:
.github/workflows/test.ymlhttps://github.com/DevExpress/testcafe-browser-provider-browserstack/actions/runs/25741951689/job/75594666910testjob fails because it tries to access.builds/testcafe-browser-provider-browserstack-1.15.2.tgz, but that file does not exist in thetestjob workspace.buildare not automatically available intest.testcafe-browser-provider-browserstack-1.15.2.tgzis created successfully before a later unrelatednpm error No workspaces found!message.Requested fix:
buildjob is persisted and made available to thetestjob..builds/*.tgzas an artifact in thebuildjob and download it into.buildsin thetestjob beforeDevExpress/testcafe-build-system/actions/test-npm@mainruns.Acceptance criteria:
testjob can access the expected tarball path.builds/testcafe-browser-provider-browserstack-1.15.2.tgz.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The failure is caused by the test job trying to unpack a package tarball that was never made available in that job:
.builds/testcafe-browser-provider-browserstack-1.15.2.tgz: Cannot open: No such file or directorypackage.jsonversion1.15.2inpackage.json.buildandtestinto different jobs in.github/workflows/test.yml, but thetestjob only runsprepareandtest-npm; it does not receive the.buildsoutput frombuild.Solution: make the package artifact available to the
testjob, or build it again there.Recommended fix: upload
.buildsinbuild, then download it intest.Alternative fix: if
test-npmonly needs the tarball and not a separately produced artifact, rebuild in thetestjob before running tests:The artifact approach is better because it preserves the exact package built in the
buildjob and avoids duplicating work.User: trace logs of the build job
Assistant: I can trace it, but I need the build job ID first. The log tool only returned the failing
testjob when queried by run.From the workflow, the build job is the separate
buildjob in: