fix: add matrix into acceptance tests#1062
Conversation
There was a problem hiding this comment.
Pull request overview
Extends the acceptance test runner and CI workflow to run across a local setup matrix (storage backend, database flavor, and tenancy), including support for tenant routing via x-forwarded-host.
Changes:
- Add
forwardedHostto acceptance config and automatically applyx-forwarded-hostto acceptance HTTP/S3/SigV4 requests. - Enhance the managed local acceptance runner to support multitenant provisioning/cleanup and configurable infra restart script.
- Expand the GitHub Actions acceptance workflow into a 3‑axis matrix and upload per-matrix artifacts.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| acceptance/support/sigv4.ts | Adds optional x-forwarded-host to signed chunked S3 requests. |
| acceptance/support/s3.ts | Injects x-forwarded-host via S3 client middleware when configured. |
| acceptance/support/http.ts | Centralizes acceptance header creation and auto-adds x-forwarded-host. |
| acceptance/support/config.ts | Adds forwardedHost to acceptance config (CLI/env support). |
| acceptance/specs/tus.test.ts | Routes TUS fetch/tus-js-client calls through acceptance header helpers. |
| acceptance/specs/rest-object.test.ts | Ensures signed URL fetch includes acceptance headers. |
| acceptance/specs/rest-extended.test.ts | Adds acceptance headers to signed upload fetch requests. |
| acceptance/specs/cdn-render.test.ts | Applies acceptance header helper (optionally with auth token). |
| acceptance/scripts/run-managed-local.ts | Adds tenancy-aware provisioning/cleanup + infra restart script selection. |
| acceptance/README.md | Documents ACCEPTANCE_X_FORWARDED_HOST. |
| .github/workflows/acceptance.yml | Introduces local matrix (backend/db/tenancy) and per-matrix artifacts/env. |
| .env.acceptance.sample | Adds ACCEPTANCE_X_FORWARDED_HOST placeholder. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Coverage Report for CI Build 25016901858Coverage increased (+0.04%) to 71.647%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
71f232a to
e7049e8
Compare
This comment has been minimized.
This comment has been minimized.
e7049e8 to
f6e587f
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
f6e587f to
16070cf
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What kind of change does this PR introduce?
test feat
What is the current behavior?
Acceptance tests run a small smoke profile in a single setup.
What is the new behavior?
Add local setup matrix for backend, db and tenancy.
Additional context
Related to knex and builds on #1060.