Skip to content

fix(ci): generate self-signed certificate for E2E tests#48

Merged
dviejokfs merged 9 commits intomainfrom
fix/e2e-workflow-cert
Mar 29, 2026
Merged

fix(ci): generate self-signed certificate for E2E tests#48
dviejokfs merged 9 commits intomainfrom
fix/e2e-workflow-cert

Conversation

@dviejokfs
Copy link
Copy Markdown
Contributor

Summary

  • E2E workflow referenced localho.st.crt/localho.st.key but never generated them
  • Added openssl step to create a self-signed wildcard cert for *.localho.st

Test plan

  • E2E Tests workflow should pass the certificate step and proceed to setup

The workflow referenced localho.st.crt/key but never created them,
causing the "Install certificate" step to fail immediately.
- Redirect temps serve stdout/stderr to /tmp/temps.log for debugging
- Copy encryption_key and symlink GeoLite2 to working directory
- Detect immediate crash and show logs before health check timeout
- Show actual temps logs in failure collection step
- Add --console-address 0.0.0.0:8081 to temps serve
- Change API_BASE to http://localhost:8081/api (console serves API)
- Health check now polls the console port instead of proxy port
- Fixes jq parse error caused by proxy returning HTML instead of JSON
GET /projects/{id} does not embed environments. Use the dedicated
/projects/{id}/environments endpoint instead.
Skip `cargo install wasm-pack` (~2 min) when the binary is already
cached. Applies to all 5 jobs in rust-tests.yml that install it.
Session cookie auth was returning HTML instead of JSON for the
api-keys endpoint. Use `temps api-key` CLI command directly which
accesses the database and avoids HTTP auth complexity.
API_BASE must include /api since plugin routes are nested under /api
by build_application(). Without it, requests hit the SPA fallback
(200 HTML) and jq fails parsing. Also added error handling to all jq
calls in the deploy step to surface response bodies on failure.
The clone directory used only a unix timestamp (second granularity),
so concurrent deployments starting in the same second would collide
on the same path. Include the deployment ID to guarantee uniqueness.
Verifies that concurrent deployments with different IDs produce
distinct clone directory paths, preventing the directory collision
bug from recurring.
@dviejokfs dviejokfs merged commit 7a11254 into main Mar 29, 2026
9 of 10 checks passed
@dviejokfs dviejokfs deleted the fix/e2e-workflow-cert branch March 29, 2026 15:22
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.

1 participant