veza/tests/e2e
senke 3f326e8266
Some checks failed
Veza CI / Rust (Stream Server) (push) Successful in 4m22s
Security Scan / Secret Scanning (gitleaks) (push) Successful in 1m5s
Veza CI / Frontend (Web) (push) Failing after 17m19s
E2E Playwright / e2e (full) (push) Failing after 20m28s
Veza CI / Backend (Go) (push) Successful in 21m31s
Veza CI / Notify on failure (push) Successful in 4s
fix(ci): unblock CI red — gofmt + e2e webserver reuse + orders.hyperswitch_payment_id (Day 4)
Three pre-existing infra issues surfaced by the Day 1→Day 3 push wave.
Each is independent — bundled here because the goal is "ci.yml + e2e.yml
green" before the v1.0.9 tag, and they're all small.

(1) gofmt — ci.yml golangci-lint v2 step

  Five files were unformatted on main. Pre-existing (untouched by my
  Item G work, but the formatter caught them now):
    - internal/api/router.go
    - internal/core/marketplace/reconcile_hyperswitch_test.go
    - internal/models/user.go
    - internal/monitoring/ledger_metrics.go
    - internal/monitoring/ledger_metrics_test.go
  Pure whitespace via `gofmt -w` — no behavior change.

(2) e2e silent-fail — playwright webServer port collision

  The e2e workflow pre-starts the backend in step 9 ("Build + start
  backend API") so it can fail-fast on a non-ok health check. But
  playwright.config.ts had `reuseExistingServer: !process.env.CI` on
  the backend webServer entry — meaning in CI Playwright tried to
  spawn a SECOND backend on port 18080. The spawn collided with
  EADDRINUSE and Playwright silently exited before printing any test
  output. The artifact upload then warned "No files were found"
  because tests/e2e/playwright-report/ never got written, and the job
  ended in `Failure` for an unrelated reason (the artifact upload
  step's GHESNotSupportedError).

  Fix: backend `reuseExistingServer: true` always — workflow + dev
  both pre-start backend on 18080. Vite stays `!CI` because the
  workflow doesn't pre-start it. Comment in playwright.config.ts
  documents the symptom so the next person debugging gets the
  pointer immediately.

(3) orders.hyperswitch_payment_id missing in fresh DBs — migration 080
    skip-branch + 099 ordering drift

  Migration 080 (`add_payment_fields`) wraps its ALTERs in
  "skip if orders doesn't exist". At authoring time orders existed
  earlier in the migration sequence; that ordering has since shifted
  (orders is now created at 099_z_create_orders.sql, AFTER 080).
  Result: in any freshly-migrated DB (CI, fresh dev, future restore
  drills) migration 080 takes the skip branch and the columns are
  never added — even though the Order model and the marketplace code
  rely on them.

  Symptom: every CI run logs
    pq: column "hyperswitch_payment_id" does not exist
  from the periodic ledger_metrics worker. Order checkout would also
  fail to persist payment_id at write time, breaking reconciliation.

  Fix: append-only migration 987 with idempotent
  `ADD COLUMN IF NOT EXISTS` + a partial index on the reconciliation
  hot path. Production envs that did pick up 080 in the original
  order are no-ops; fresh envs converge to the same end state.
  Rollback in migrations/rollback/.

Verified locally:
  $ cd veza-backend-api && go build ./... && VEZA_SKIP_INTEGRATION=1 \
      go test -short -count=1 ./internal/...
  (all green)

SKIP_TESTS=1: backend-only Go + Playwright config + SQL. Frontend
unit tests irrelevant to this commit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 12:03:55 +02:00
..
23-visual-regression.spec.ts-snapshots test: update e2e test suite and add audit tests 2026-03-23 16:06:26 +01:00
audit chore(cleanup): remove orphan code + archive disabled workflows + .playwright-mcp 2026-04-20 20:33:40 +02:00
fixtures chore(cleanup): remove orphan code + archive disabled workflows + .playwright-mcp 2026-04-20 20:33:40 +02:00
helpers chore(cleanup): remove orphan code + archive disabled workflows + .playwright-mcp 2026-04-20 20:33:40 +02:00
scripts test: add comprehensive e2e test suite (34 spec files) 2026-03-18 11:36:22 +01:00
tests/e2e/audit/results/screenshots fix(e2e): address remaining real bugs + known UX gaps 2026-04-05 16:24:11 +02:00
01-auth.spec.ts fix: sync E2E tests with seed data + i18n fix 2026-04-02 19:42:03 +02:00
02-navigation.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
03-player.spec.ts test(e2e): skip 4 pre-existing @critical flakes with root cause + tickets — task #36 2026-04-18 03:25:11 +02:00
04-tracks.spec.ts fix(e2e): stable upload-trigger testid, unskip v107-e2e-04 — rc1-day2 root cause #2 2026-04-18 16:38:28 +02:00
05-playlists.spec.ts fix(e2e): verify playlist create via API + fix toast/dialog selectors 2026-04-05 17:52:18 +02:00
06-search-discover.spec.ts fix(e2e): address remaining real bugs + known UX gaps 2026-04-05 16:24:11 +02:00
07-social.spec.ts fix(e2e): address remaining real bugs + known UX gaps 2026-04-05 16:24:11 +02:00
08-marketplace.spec.ts fix(e2e): scope toast selector to avoid strict mode violation 2026-04-05 18:01:06 +02:00
09-chat-notifications-settings.spec.ts fix(e2e): increase expect timeout to 10s + fix selector mismatches 2026-04-04 20:26:52 +02:00
10-features.spec.ts fix(e2e): address remaining real bugs + known UX gaps 2026-04-05 16:24:11 +02:00
11-accessibility-ethics.spec.ts test(e2e): skip 14 remaining @critical baseline failures, document per root-cause — rc1-day2 finish 2026-04-18 20:05:31 +02:00
12-api.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
13-workflows.spec.ts test(e2e): skip 14 remaining @critical baseline failures, document per root-cause — rc1-day2 finish 2026-04-18 20:05:31 +02:00
14-edge-cases.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
15-routes-coverage.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
16-forms-validation.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
17-modals-dialogs.spec.ts fix(e2e): verify playlist create via API + fix toast/dialog selectors 2026-04-05 17:52:18 +02:00
18-empty-states.spec.ts fix(e2e): verify playlist create via API + fix toast/dialog selectors 2026-04-05 17:52:18 +02:00
19-responsive.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
20-network-errors.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
21-error-boundary.spec.ts fix: stabilize frontend — 98 TS errors to 0, align API endpoints, optimize bundle 2026-03-24 21:18:49 +01:00
22-performance.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
23-visual-regression.spec.ts fix: stabilize frontend — 98 TS errors to 0, align API endpoints, optimize bundle 2026-03-24 21:18:49 +01:00
24-cross-browser.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
25-profile.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
25-register-defer-jwt.spec.ts feat(auth): defer JWT to post-verify + verify-email header (v1.0.9 items 1.3+1.4) 2026-04-26 22:56:31 +02:00
26-smoke.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
26-verify-email-header.spec.ts feat(auth): defer JWT to post-verify + verify-email header (v1.0.9 items 1.3+1.4) 2026-04-26 22:56:31 +02:00
27-chunked-upload-s3.spec.ts feat(track): native S3 multipart for chunked uploads (v1.0.9 item 1.5) 2026-04-26 23:12:56 +02:00
27-upload.spec.ts test(e2e): skip 14 remaining @critical baseline failures, document per root-cause — rc1-day2 finish 2026-04-18 20:05:31 +02:00
28-storybook.spec.ts fix: stabilize frontend — 98 TS errors to 0, align API endpoints, optimize bundle 2026-03-24 21:18:49 +01:00
29-chat-functional.spec.ts test(e2e): skip 14 remaining @critical baseline failures, document per root-cause — rc1-day2 finish 2026-04-18 20:05:31 +02:00
30-marketplace-checkout.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
31-auth-sessions.spec.ts test(e2e): skip 2 more baseline flakies + pre-commit Option D escalation rule 2026-04-18 20:26:30 +02:00
32-deep-pages.spec.ts fix(e2e, ui): root causes #3 #4 #5 #6 — rc1-day2 misc baseline fixes 2026-04-18 17:22:00 +02:00
33-visual-bugs.spec.ts test(e2e): convert all remaining 298 console.log to real expect() 2026-04-08 15:50:17 +02:00
34-workflows-empty.spec.ts fix(e2e, ui): root causes #3 #4 #5 #6 — rc1-day2 misc baseline fixes 2026-04-18 17:22:00 +02:00
35-register.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
36-forgot-password.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
37-reset-password.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
38-user-profile.spec.ts fix: sync E2E tests with seed data + i18n fix 2026-04-02 19:42:03 +02:00
39-feed.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
40-library.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
41-chat-deep.spec.ts test(e2e): skip 14 remaining @critical baseline failures, document per root-cause — rc1-day2 finish 2026-04-18 20:05:31 +02:00
42-player-deep.spec.ts feat(e2e): add 303 deep behavioral tests + fix WebSocket + lint-staged 2026-04-06 13:35:26 +02:00
43-upload-deep.spec.ts test(e2e): skip 2 more baseline flakies + pre-commit Option D escalation rule 2026-04-18 20:26:30 +02:00
44-auth-deep.spec.ts feat(e2e): add 303 deep behavioral tests + fix WebSocket + lint-staged 2026-04-06 13:35:26 +02:00
45-playlists-deep.spec.ts test(e2e): skip 3 more @critical failures surfaced by full-suite pre-push 2026-04-18 20:12:51 +02:00
46-search-discover-deep.spec.ts feat(e2e): add 303 deep behavioral tests + fix WebSocket + lint-staged 2026-04-06 13:35:26 +02:00
47-social-deep.spec.ts feat(e2e): add 303 deep behavioral tests + fix WebSocket + lint-staged 2026-04-06 13:35:26 +02:00
48-marketplace-deep.spec.ts test(e2e): skip 3 more @critical failures surfaced by full-suite pre-push 2026-04-18 20:12:51 +02:00
49-notifications-settings-deep.spec.ts feat(e2e): add 303 deep behavioral tests + fix WebSocket + lint-staged 2026-04-06 13:35:26 +02:00
COVERAGE_MAP.md test: add comprehensive e2e test suite (34 spec files) 2026-03-18 11:36:22 +01:00
dashboard-audit.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
design-system.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
discover.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
global-setup.ts fix(e2e): hard-fail global-setup when rate limiting detected 2026-04-23 19:15:39 +02:00
global-teardown.ts test: add comprehensive e2e test suite (34 spec files) 2026-03-18 11:36:22 +01:00
helpers.ts fix(e2e): accept login-form as page readiness marker 2026-04-18 20:19:33 +02:00
launch-audit.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
login-audit.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
playlists-audit.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
playlists-detail-audit.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
playlists-edit-audit.spec.ts docs(e2e): flag test-env-assumed skips for staging verification 2026-04-19 00:37:11 +02:00
playlists-favoris-audit.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
playlists-shared-token.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
playwright.config.ts fix(ci): unblock CI red — gofmt + e2e webserver reuse + orders.hyperswitch_payment_id (Day 4) 2026-04-27 12:03:55 +02:00
queue-audit.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
search-audit.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
SKIPPED_TESTS.md docs(e2e): flag test-env-assumed skips for staging verification 2026-04-19 00:37:11 +02:00
tracks-detail-audit.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
verify-email-audit.spec.ts feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
VEZA_AUDIT_REPORT.md test: add comprehensive e2e test suite (34 spec files) 2026-03-18 11:36:22 +01:00