ci: dump function-server log when an e2e suite fails - #690
Conversation
The portable-runtime e2e job timed out on four changeset-release/main CI runs (PR #687 and predecessors) with only 'Timeout after 60000ms waiting for test_seq to increment by 200'. The same suite passes locally on both the base commit and the exact release diff, so the runner-side evidence lives in the supabase functions serve log — which run-e2e.sh keeps in a mktemp file that GitHub Actions never prints. Print the server log to stderr from run_with_functions_server when the monitored command fails, so the next CI failure carries worker errors (isolate CPU-limit shutdowns, forced sql close) instead of a bare timeout. Successful suites stay silent to avoid megabytes of noise. Extend the functions-server self-test: failing suite dumps the log, passing suite produces no stderr, exit statuses unchanged.
|
|
View your CI Pipeline Execution ↗ for commit a5285db
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
🚀 Production Deployment: Website✅ Successfully deployed to production! 🔗 Production URL: https://pgflow.dev 📝 Details:
Deployed at: 2026-10-01T19:38:12+02:00 |
Why
The portable-runtime e2e job failed on four
changeset-release/mainCI runs (current PR #687 and its predecessors), always the same way:The other 13 tests pass, including the same 200-message workload under node and bun. The suite passes locally on both the base commit and the exact release diff of #687 (14/14, supabase variant in 3–4s), so the cause is runner-side.
run-e2e.shkeeps thesupabase functions serveoutput in amktempfile GitHub Actions never prints. That log is the only place worker errors appear (isolate CPU-limit shutdowns, forced sql close on deadline), so CI failures are undiagnosable today.What
run_with_functions_serverprints the server log to stderr when the monitored suite command fails; successful suites stay silent.Local evidence:
edge-worker:test:lifecyclepasses (functions-server self-test included), portable suite 14/14, standard e2e 13/13.