Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.
Rust ai-nativedescription-logicsformal-verificationinfrastructure-as-codeisabelle-languageknowledge-graphleanlean4mcpmcp-serverontologyowlowl2reasoningrustshaclsparqltheorem-proving
fix(ci): stop an unbounded apt-get from hanging CI to the 6 hour ceiling (#102)
Fabio Rovaicde252210833
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 5d774cd5..8bef8107 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -5,8 +5,16 @@ on:pull_request:branches: [main]+# Superseded branch runs are cancelled; main runs are kept so every commit+# keeps its own status. Three pushes to main landed inside 33 minutes on+# 2026-08-18 and each one started a fresh 6 hour hang.+concurrency:+ group: ci-${{ github.ref }}+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}+jobs:build:+ timeout-minutes: 30runs-on: ${{ matrix.os }}strategy:matrix:@@ -46,6 +54,7 @@ jobs:# stayed clean and the failure surfaced as an unexplained build break. This# job names the offending paths in seconds.paths:+ timeout-minutes: 10name: paths / windows-saferuns-on: ubuntu-lateststeps:@@ -75,6 +84,7 @@ jobs:# Ubuntu only. The bundled duckdb build dominates wall time and Windows would# double it for no signal the Linux leg does not already give.features:+ timeout-minutes: 45name: features / ${{ matrix.name }}runs-on: ubuntu-lateststrategy:@@ -106,7 +116,32 @@ jobs:sudo apt-get cleandf -h- name: Install build deps (OpenSSL/libpq)- run: sudo apt-get update && sudo apt-get install -y pkg-config libssl-dev libpq-dev+ # The runner image already ships all three of these, so the common case+ # is a no-op: the step logged "0 upgraded, 0 newly installed" every time+ # it succeeded. Its only real effect was an unconditional network call.+ # On 2026-08-18 the Azure apt mirror went dark, apt fell back to+ # archive.ubuntu.com, stalled mid-transfer, and sat there with no+ # timeout until GitHub killed the job at the 6 hour ceiling (runs+ # 32156117278 and 32157458411, 5h58m of silence after the last Get:).+ # So: touch the network only when something is genuinely missing, and+ # bound apt when it is.+ timeout-minutes: 5+ run: |+ set -euo pipefail+ missing=()+ for p in pkg-config libssl-dev libpq-dev; do+ dpkg -s "$p" >/dev/null 2>&1 || missing+=("$p")+ done+ if [ ${#missing[@]} -eq 0 ]; then+ echo "Build deps already present on the image; skipping apt."+ exit 0+ fi+ echo "Missing build deps: ${missing[*]}"+ sudo apt-get -o Acquire::Retries=3 \+ -o Acquire::http::Timeout=30 \+ -o Acquire::https::Timeout=30 update+ sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y \+ --no-install-recommends "${missing[@]}"- uses: dtolnay/rust-toolchain@stablewith:components: clippy@@ -146,6 +181,7 @@ jobs:# runs at publish time tells you about the defect after the artefact is# public.python:+ timeout-minutes: 15name: python (open-ontologies-lite)runs-on: ubuntu-lateststeps:@@ -171,6 +207,7 @@ jobs:# crate. Type-checking is the part that catches the errors a reviewer cannot# see by reading a diff.studio:+ timeout-minutes: 15name: studio (typecheck)runs-on: ubuntu-lateststeps:diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex a7154e96..09db53c0 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -5,6 +5,7 @@ on:jobs:build:+ timeout-minutes: 60strategy:fail-fast: falsematrix:@@ -29,7 +30,26 @@ jobs:targets: ${{ matrix.target }}- name: Install Linux build deps (OpenSSL/libpq)if: runner.os == 'Linux'- run: sudo apt-get update && sudo apt-get install -y pkg-config libssl-dev libpq-dev+ # Same guard as ci.yml. An unbounded `apt-get update` hung CI for the+ # full 6 hour job ceiling when the Azure mirror went dark; on the+ # release path that would stall a tagged build just as silently.+ timeout-minutes: 5+ run: |+ set -euo pipefail+ missing=()+ for p in pkg-config libssl-dev libpq-dev; do+ dpkg -s "$p" >/dev/null 2>&1 || missing+=("$p")+ done+ if [ ${#missing[@]} -eq 0 ]; then+ echo "Build deps already present on the image; skipping apt."+ exit 0+ fi+ echo "Missing build deps: ${missing[*]}"+ sudo apt-get -o Acquire::Retries=3 \+ -o Acquire::http::Timeout=30 \+ -o Acquire::https::Timeout=30 update+ sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y \+ --no-install-recommends "${missing[@]}"- name: Buildrun: cargo build --release --target ${{ matrix.target }}- name: Upload binary@@ -39,6 +59,7 @@ jobs:path: target/${{ matrix.target }}/release/${{ matrix.artifact_name }}release:+ timeout-minutes: 20needs: buildruns-on: ubuntu-latestpermissions: