Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
CI: DB tests job survives a slow apt mirror and the gate names a timeout (#10369)
Adam Eivy8b6576382bdd
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 7305a07ac1..83e917fab5 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -649,7 +649,17 @@ jobs:# Backup restore coverage takes a real pg_dump. The runner's default# PostgreSQL 16 client cannot dump the PostgreSQL 17 service above.+ #+ # The pull is ~95 ffmpeg dependency packages from the runner's mirror, and+ # a slow mirror once ate this job's whole 20-minute budget before any test+ # ran (issue #10369): single `Get:` lines stalled for 2-4 minutes. Two+ # guards, so a bad mirror costs minutes and names itself:+ # - apt's own timeout + retries drop a stalled connection and ask again,+ # which recovers the common case (one slow package) without a rerun;+ # - the step's own `timeout-minutes` fails a genuinely dead mirror here,+ # under this step's name, instead of cancelling the whole job later.- name: Install PostgreSQL client and audio verification tools+ timeout-minutes: 8run: |# Ubuntu's default repository only supplies its bundled major.# Use PostgreSQL's signed repository for the service's major.@@ -657,8 +667,9 @@ jobs:sudo curl --fail --silent --show-error -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc. /etc/os-releaseecho "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt ${VERSION_CODENAME}-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list- sudo apt-get update- sudo apt-get install -y postgresql-client-17 ffmpeg+ APT_RESILIENCE=(-o Acquire::Retries=3 -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30)+ sudo apt-get "${APT_RESILIENCE[@]}" update+ sudo apt-get "${APT_RESILIENCE[@]}" install -y postgresql-client-17 ffmpegecho "/usr/lib/postgresql/17/bin" >> "$GITHUB_PATH"- name: Run DB-backed tests (portos_test)diff --git a/scripts/ci-gate-report.js b/scripts/ci-gate-report.jsindex 0446bd20dd..d5db6382b5 100644--- a/scripts/ci-gate-report.js+++ b/scripts/ci-gate-report.js@@ -181,8 +181,15 @@ export function summarizeGateResults(+ ' `🛑 Requested cancellation` (written only when a job really'+ ' failed), `FAIL `, or `AssertionError`; the culprit is usually the'+ ' job that completed EARLIEST.']),- 'Otherwise: a job that hits the 6-hour limit is'- + ' recorded as `cancelled` rather than `timed_out` (check for a hang),'+ // Every ci.yml job sets its own `timeout-minutes`, so the limit that+ // usually bites is the job's (20 minutes for DB tests), not GitHub's+ // 6-hour default. GitHub records either as `cancelled`, so a slow apt+ // mirror or a hung test reads like a superseded push (#10369).+ 'Otherwise: a job that ran past its `timeout-minutes` (or the 6-hour'+ + ' default) is recorded as `cancelled` rather than `timed_out` — open'+ + ' the cancelled job and look for an annotation reading "exceeded the'+ + ' maximum execution time"; the step that was running when it hit the'+ + ' limit is the slow one (a stalled package download, a hang),'+ ' a newer push superseded this run (cancel-in-progress leaves a NEWER'+ ' run for the branch), or GitHub cancelled it externally — the Actions'+ ' spending limit, which is the LAST hypothesis, not the first.',diff --git a/scripts/ci-gate-report.test.js b/scripts/ci-gate-report.test.jsindex 3a2b92862e..7a5fd90043 100644--- a/scripts/ci-gate-report.test.js+++ b/scripts/ci-gate-report.test.js@@ -72,6 +72,13 @@ describe('summarizeGateResults', () => {expect(text).toContain('docs/TROUBLESHOOTING.md');});+ it('points a cancelled run at the per-job time limit, not only the 6-hour default (#10369)', () => {+ const text = summarizeGateResults(results({ database: 'cancelled' })).lines.join('\n');++ expect(text).toContain('`timeout-minutes`');+ expect(text).toContain('exceeded the maximum execution time');+ });+it('reports a real failure as a failure even when cancelled siblings outnumber it', () => {// The repo cancels its own siblings from a failing job, so this shape is// the NORMAL red run — calling it "cancelled" would be the worse mistake.