fix(ci): generate self-signed certificate for E2E tests#48
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
localho.st.crt/localho.st.keybut never generated themopensslstep to create a self-signed wildcard cert for*.localho.stTest plan