another fix: push checkout/installation into if block and add vault setup for custom E2E reporter#3341
Conversation
James Robinson (jlrobins)
left a comment
There was a problem hiding this comment.
yeah, don't do half work unless going to also do the other half, eh?
There was a problem hiding this comment.
Pull request overview
Adjusts the Semaphore Playwright E2E pipeline’s after_pipeline reporting job so it only performs repository checkout / dependency installation / Vault setup when the workflow is schedule-triggered, enabling the custom Playwright reporter to be available and authenticated.
Changes:
- Wrap
checkout, cache restore,npm ci, and Vault setup inside the scheduled-runifblock inafter_pipeline. - Add Vault setup before running the custom Kafka Playwright results reporter during scheduled runs.
- Minor YAML formatting change to the blob-report artifact push command.
Comments suppressed due to low confidence (1)
.semaphore/playwright-e2e.yml:69
blob-report/*.zipcan expand to multiple files, but$(basename blob-report/*.zip)andartifact push ... --destination ...expect a single destination path. This will fail or upload to an unintended destination when multiple blob report zips exist (the make target docs indicate multiple zips are expected). Consider looping over each zip (computing basename per file) or using an artifact destination directory that preserves filenames.
- artifact push workflow blob-report/*.zip --destination blob-report/$(basename blob-report/*.zip)
- make remove-test-env
| checkout | ||
| make ci-bin-sem-cache-restore | ||
| npm ci --prefer-offline --include=dev | ||
| . vault-setup |
There was a problem hiding this comment.
vault-setup is sourced unconditionally inside the scheduled-run block. Earlier in this pipeline the Vault setup is guarded by checking SEMAPHORE_ORGANIZATION_URL to skip Vault on Semaphore CI; without the same guard here, scheduled runs on hosted Semaphore could fail during after_pipeline. Consider reusing the same conditional skip logic before sourcing vault-setup.
| . vault-setup | |
| if [[ -z "${SEMAPHORE_ORGANIZATION_URL:-}" ]]; then | |
| . vault-setup | |
| fi |
There was a problem hiding this comment.
No need for this since scheduled runs aren't set up for the public Semaphore instance
Good catch by Copilot #3340 (review)