Hi community,
Reaching to you as i run out of ideas.
I am currently running tests in parallel with circleCI (I have 4 parallel runs).
Each run generate an artifact which I persist to the same workspace (Then i use this workspace to merge all the report of the 4 run into 1 for review).
Everything was working fine until 1 week ago i would say.
Now out of the 4 runs, one can’t upload the artifact anymore (it can be the first run or the last run, it’s random and sometimes i got lucky all of them work).
Needless to say it’s very annoying for a testing perspective.
To my knowledge nothing has changed on our side.
Here the error i got:
“Uploading /root/project/all-blob-reports to all-blob-reports
No artifact files found at /root/project/all-blob-reports
Total size uploaded: 0 B”
And then the yml file details (can’t upload as attachment):
version: 2.1
parameters:
staging:
type: integer
default: 0jobs:
run-test:
parameters:
staging:
type: integer
default: 0
docker:
- image: can’t disclosed
steps:
- checkout
- run:
name: Create playwright report directory
command: mkdir -p all-blob-reports
- run: npm i -D @playwright/test
- run: npx playwright install
- run: npx playwright install chrome
- run: npx playwright install msedge
- run:
name: Run sharded tests
command: SHARD=“$((${CIRCLE_NODE_INDEX}+1))”; STAGING=<< parameters.staging >> npx playwright test circleci tests split --shard=${SHARD}/${CIRCLE_NODE_TOTAL} || cp blob-report/* all-blob-reports
- store_artifacts:
path: all-blob-reports
- persist_to_workspace:
root: .
paths:
- all-blob-reports
parallelism: 4
merge-reports:
docker:
- image: can’t disclosed
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Merge reports
command: npx playwright merge-reports --reporter html ./all-blob-reports
- store_artifacts:
path: ./playwright-reportworkflows:
run-test-workflow:
jobs:
- run-test:
staging: << pipeline.parameters.staging >>
- merge-reports:
requires:
- run-test
Any ideas?