Skip to content

Commit

Permalink
chore: zip e2e coverage report and upload it (#5540)
Browse files Browse the repository at this point in the history
* zip coverage and upload it

* generate report, don't just merge

* zip from the correct directory

* quiet

* tarball rather

* upload the correct file
  • Loading branch information
lerouxb committed Mar 5, 2024
1 parent 2a59e5c commit 2a270bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .evergreen/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,15 @@ post:
working_dir: src
shell: bash
script: |
tar czvf all-e2e-logs.tgz packages/compass-e2e-tests/.log
tar czf all-e2e-logs.tgz packages/compass-e2e-tests/.log
- command: s3.put
params:
<<: *save-artifact-params-private
local_files_include_filter:
- src/.deps/.npm/_logs/*.log
- src/packages/compass-e2e-tests/.log/**/*
- src/packages/compass-e2e-tests/.nyc_output/coverage.json
- src/coverage.tgz
- src/.testserver/logs/*
- src/.evergreen/logs/*
- src/all-e2e-logs.tgz
Expand Down Expand Up @@ -500,6 +501,8 @@ functions:
npm run --unsafe-perm --workspace compass-e2e-tests test-ci
tar czf coverage.tgz packages/compass-e2e-tests/coverage
test-packaged-app:
- command: shell.exec
# Fail the task if it's idle for 10 mins
Expand Down
2 changes: 1 addition & 1 deletion packages/compass-e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"pretest": "npm run unzip-fixtures",
"test": "xvfb-maybe --auto-servernum --server-args=\"-screen 0 1024x768x24\" -- ts-node index.ts",
"test-ci": "npm run test",
"posttest-ci": "npm run coverage-merge",
"posttest-ci": "npm run coverage-report",
"test-packaged": "npm run test -- -- --test-packaged-app",
"test-packaged-ci": "npm run test-ci -- -- --test-packaged-app",
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write .",
Expand Down

0 comments on commit 2a270bd

Please sign in to comment.