Skip to content

fix(ci): skip Playwright report publish when S3 is unset - #11

Merged
drferdi merged 1 commit into
mainfrom
cursor/skip-optional-playwright-s3-6f22
Sep 4, 2026
Merged

fix(ci): skip Playwright report publish when S3 is unset#11
drferdi merged 1 commit into
mainfrom
cursor/skip-optional-playwright-s3-6f22

Conversation

@drferdi

@drferdi drferdi commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Problem

CI on main (8cb8099) is green for product jobs (ci, publish-server-image). The red check is publish from publish Playwright report.

That workflow uploads the Playwright screenshot gallery to S3. It currently fails hard when S3_ACCESS_KEY_ID / S3_SECRET_ACCESS_KEY are empty:

scripts/publish-playwright-report.sh: AWS_ACCESS_KEY_ID is required

This is optional ops infrastructure, not a product regression. Nightly publish_report: true would hit the same failure.

Change

  • Skip publish when S3 credentials are unset (job stays green).
  • Still fail when credentials exist but destination vars (S3_BUCKET, etc.) are incomplete.
  • Skip checkout/install/upload in the workflow_run job when credentials are missing.
  • Cover the skip and misconfiguration paths with a unit test.

Test

pnpm exec vitest run packages/testkit/src/publish-playwright-report.test.ts

2 passed.

After merge, the next ci completion on main will run this workflow from default-branch code and skip instead of failing. Historical status on 8cb8099 stays failed.

To actually publish galleries later, set S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, S3_BUCKET, S3_ENDPOINT, and PLAYWRIGHT_PUBLIC_BASE_URL.

Open in Web Open in Cursor 

The publish workflow was failing on main because S3 credentials are not
configured. Visual report upload is optional; skip it instead of failing
the commit status, and keep failing when credentials exist but the
destination variables are incomplete.

Co-authored-by: Gaffer <drferdiiskandar@sentrahai.com>
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentrabot-site Ready Ready Preview Sep 4, 2026 1:21am UTC

@drferdi
drferdi merged commit d961c43 into main Sep 4, 2026
14 checks passed
@drferdi
drferdi deleted the cursor/skip-optional-playwright-s3-6f22 branch September 4, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants