fix(ci OPS50): push workflow (ci.yml) ganha o mesmo fix do PR workflow — .env.test.local com a URL do serviço (vitest/playwright recarregam .env.test por cima) e VITEST_MAX_WORKERS=4 no int
Some checks failed
Agent PR Ready + auto-merge / ready-automerge (pull_request) Has been skipped
CI (PR) / docs-guards (pull_request) Successful in 6s
CI (PR) / plans-only-closes (pull_request) Successful in 6s
CI (PR) / scope (pull_request) Successful in 42s
CI (PR) / typecheck (pull_request) Has been skipped
CI (PR) / knip (pull_request) Has been skipped
CI (PR) / cycles (pull_request) Has been skipped
CI (PR) / unit (pull_request) Has been skipped
CI (PR) / lint (pull_request) Successful in 50s
CI (PR) / format (pull_request) Successful in 57s
CI (PR) / int (pull_request) Has been skipped
CI (PR) / build (pull_request) Has been skipped
CI (PR) / e2e (1) (pull_request) Has been skipped
CI (PR) / e2e (2) (pull_request) Has been skipped
CI (PR) / checks (pull_request) Successful in 1s
Promote plan-issue Related on main merge / plan-issue-ready (pull_request) Has been skipped
Main merge flips claimed issues to done + in-prod / issue-done (pull_request) Successful in 24s
Agent pool supervisor / tick (pull_request) Failing after 36s
CI / static (push) Successful in 1m54s
CI / int (push) Successful in 1m59s
CI / build (push) Successful in 2m45s
CI / e2e (1) (push) Successful in 5m4s
CI / e2e (2) (push) Successful in 4m9s
CI / checks (push) Successful in 1s
CI / deploy (push) Failing after 26s
CI / requeue (push) Successful in 6s
Some checks failed
Agent PR Ready + auto-merge / ready-automerge (pull_request) Has been skipped
CI (PR) / docs-guards (pull_request) Successful in 6s
CI (PR) / plans-only-closes (pull_request) Successful in 6s
CI (PR) / scope (pull_request) Successful in 42s
CI (PR) / typecheck (pull_request) Has been skipped
CI (PR) / knip (pull_request) Has been skipped
CI (PR) / cycles (pull_request) Has been skipped
CI (PR) / unit (pull_request) Has been skipped
CI (PR) / lint (pull_request) Successful in 50s
CI (PR) / format (pull_request) Successful in 57s
CI (PR) / int (pull_request) Has been skipped
CI (PR) / build (pull_request) Has been skipped
CI (PR) / e2e (1) (pull_request) Has been skipped
CI (PR) / e2e (2) (pull_request) Has been skipped
CI (PR) / checks (pull_request) Successful in 1s
Promote plan-issue Related on main merge / plan-issue-ready (pull_request) Has been skipped
Main merge flips claimed issues to done + in-prod / issue-done (pull_request) Successful in 24s
Agent pool supervisor / tick (pull_request) Failing after 36s
CI / static (push) Successful in 1m54s
CI / int (push) Successful in 1m59s
CI / build (push) Successful in 2m45s
CI / e2e (1) (push) Successful in 5m4s
CI / e2e (2) (push) Successful in 4m9s
CI / checks (push) Successful in 1s
CI / deploy (push) Failing after 26s
CI / requeue (push) Successful in 6s
This commit is contained in:
parent
ac664093d2
commit
09db71f95e
1 changed files with 14 additions and 0 deletions
|
|
@ -46,6 +46,12 @@ jobs:
|
|||
int:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
env:
|
||||
# Self-hosted runner has 8 CPUs; vitest forks ≈ CPUs and each fork holds
|
||||
# a Payload pool (max 10) → overflows the service Postgres' 100 clients
|
||||
# ("too many clients already"). 4 forks stay well under. GitHub's 2–4
|
||||
# vCPU runners keep the CPU-relative default (no env).
|
||||
VITEST_MAX_WORKERS: 4
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
|
|
@ -73,6 +79,10 @@ jobs:
|
|||
set -euo pipefail
|
||||
DB_HOST=$(awk '$2 == "00000000" {a=$3; print strtonum("0x" substr(a,7,2)) "." strtonum("0x" substr(a,5,2)) "." strtonum("0x" substr(a,3,2)) "." strtonum("0x" substr(a,1,2)); exit}' /proc/net/route)
|
||||
echo "DATABASE_URL=postgresql://teqo:teqo@${DB_HOST}:5433/teqo_test" >> "$GITHUB_ENV"
|
||||
# vitest re-loads .env.test over the process env, so the service URL
|
||||
# must win through the .env.test.local layer (same mechanism
|
||||
# `pnpm worktree next` uses). OPS50.
|
||||
echo "DATABASE_URL=postgresql://teqo:teqo@${DB_HOST}:5433/teqo_test" > .env.test.local
|
||||
- run: pnpm migrate
|
||||
- run: pnpm db:seed:minimal
|
||||
- run: pnpm test:int
|
||||
|
|
@ -163,6 +173,10 @@ jobs:
|
|||
DB_HOST=$(awk '$2 == "00000000" {a=$3; print strtonum("0x" substr(a,7,2)) "." strtonum("0x" substr(a,5,2)) "." strtonum("0x" substr(a,3,2)) "." strtonum("0x" substr(a,1,2)); exit}' /proc/net/route)
|
||||
DB_PORT=${{ matrix.shard == 1 && '5435' || '5436' }}
|
||||
echo "DATABASE_URL=postgresql://teqo:teqo@${DB_HOST}:${DB_PORT}/teqo_test" >> "$GITHUB_ENV"
|
||||
# playwright re-loads .env.test over the process env, so the service
|
||||
# URL must win through the .env.test.local layer (same mechanism
|
||||
# `pnpm worktree next` uses). OPS50.
|
||||
echo "DATABASE_URL=postgresql://teqo:teqo@${DB_HOST}:${DB_PORT}/teqo_test" > .env.test.local
|
||||
- run: pnpm migrate
|
||||
- run: pnpm db:seed:minimal
|
||||
- name: Build for e2e
|
||||
|
|
|
|||
Loading…
Reference in a new issue