Skip to content

fix: add matrix into acceptance tests#1062

Open
ferhatelmas wants to merge 1 commit intomasterfrom
ferhat/acceptance-2
Open

fix: add matrix into acceptance tests#1062
ferhatelmas wants to merge 1 commit intomasterfrom
ferhat/acceptance-2

Conversation

@ferhatelmas
Copy link
Copy Markdown
Member

@ferhatelmas ferhatelmas commented Apr 27, 2026

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.

Copilot AI review requested due to automatic review settings April 27, 2026 19:48
@ferhatelmas ferhatelmas requested a review from a team as a code owner April 27, 2026 19:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 forwardedHost to acceptance config and automatically apply x-forwarded-host to 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.

Comment thread acceptance/support/s3.ts
Comment thread acceptance/scripts/run-managed-local.ts Outdated
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 27, 2026

Coverage Report for CI Build 25016901858

Coverage increased (+0.04%) to 71.647%

Details

  • Coverage increased (+0.04%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 9776
Covered Lines: 7405
Line Coverage: 75.75%
Relevant Branches: 5471
Covered Branches: 3519
Branch Coverage: 64.32%
Branches in Coverage %: Yes
Coverage Strength: 384.18 hits per line

💛 - Coveralls

@blacksmith-sh

This comment has been minimized.

@ferhatelmas ferhatelmas force-pushed the ferhat/acceptance-2 branch from e7049e8 to f6e587f Compare April 27, 2026 20:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread acceptance/scripts/run-managed-local.ts
Comment thread acceptance/support/http.ts Outdated
Comment thread acceptance/support/s3.ts Outdated
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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.

3 participants