In this section
- GridAtlas PR File Size Guard Workflow automation · gridatlas / .github/workflows/pr-file-size-guard.yml lines 1–700
GridAtlas PR File Size Guard Workflow
A GitHub Actions workflow. Runs on pull requests.
automationgridatlas / .github/workflows/pr-file-size-guard.yml · lines 1–700 of 1012 · Entry point
- What it does
- It runs substations. Side effects: reads or writes files; makes network requests; starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (repository name word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: substations.
- Inputs & outputs
- In: JSON file current.json; JSON file -composition.json; JSON file zip.json; JSON file parquet.json. Out: JSON file comparison.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “PR file size guard and cartridge gate”; runs SatNav G203 Verify Composition (`tools/satnav/g203-verify-composition.mjs`), G203 03 Gps Camera Test (`tests/g203-03-gps-camera.test.mjs`) and SatNav Serve (`tools/satnav/serve.mjs`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- gridatlas · .github/workflows · workflow
- Uses
- G203 Compact Dock (workflow run), G203 Vicinity Controls Rescue (workflow run), SatNav G203 Dock Browser (workflow run), SatNav G203 Swarm 03 Panel Continuity (workflow run), SatNav G203 Swarm 05 Offline Browser (workflow run), SatNav G203 Verify Composition (workflow run), G203 03 Gps Camera Test (workflow run), SatNav G203 04 Saved Plan Test (workflow run), and 61 more
- Used by
- none found
- Produces
- none declared
- Defines here
- PR file size guard and cartridge gate
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- gridatlas@98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5 .github/workflows/pr-file-size-guard.yml:1-700 · blob 4ee37340e96d82fe6aff649db0bfe313741812fb · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: filesystem, network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: PR file size guard and cartridge gate
# One workflow file, because the active-workflow budget in
# tools/scope/lib.mjs (ACTIVE_WORKFLOWS) is exact and every other entry on it is
# disabled in the repository settings, 202608312212-cartridge-proof.yml
# included. This is the one workflow that runs on every pull request, so the
# gate lives here rather than as a tenth file. See docs/CI.md.
#
# size-guard: fails a pull request that adds or grows a file beyond MAX_MB, unless the path
# is listed in .github/large-files-allowlist.txt (exact paths or shell globs,
# one per line, '#' comments). Runs on pull requests only: pushes to main are
# deliberately not checked so the existing bots that commit generated data to
# main keep working. Existing large files are allowlisted so current content
# does not break the check; the goal is to stop NEW bulk data arriving via PR.
on:
pull_request:
permissions:
contents: read
concurrency:
# G203 exact-SHA runs retain predecessor soak diagnostics; other PRs keep normal cancellation.
group: pr-file-size-guard-${{ github.event.pull_request.number }}${{ github.event.pull_request.head.ref == 'g203-01-compact-dock' && format('-{0}', github.event.pull_request.head.sha) || '' }}
cancel-in-progress: true
jobs:
g203-dock-browser:
if: github.event.pull_request.head.ref == 'g203-01-compact-dock' || startsWith(github.event.pull_request.head.ref, 'integration/g203-')
runs-on: ubuntu-24.04
timeout-minutes: 55
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- name: Check candidate syntax
run: |
node --check atlas/modules/g203-compact-dock.js
node --check atlas/modules/g203-vicinity-controls-rescue.js
python3 -m py_compile tools/satnav/g203-dock-browser.py tools/satnav/g203-swarm-03-panel-continuity.py tools/satnav/g203-swarm-05-offline-browser.py
- name: Install browser harness
run: |
python3 -m venv "$RUNNER_TEMP/g203"
"$RUNNER_TEMP/g203/bin/python" -m pip install --require-virtualenv playwright==1.63.0
"$RUNNER_TEMP/g203/bin/python" -m playwright install --with-deps ${{ matrix.browser }}
- name: Verify integrated candidate and agent regressions
run: |
node tools/satnav/g203-verify-composition.mjs
node tests/g203-03-gps-camera.test.mjs
node --test tools/satnav/g203-04-saved-plan.test.mjs tools/secondary/viewport-query.test.mjs tools/secondary/g203-swarm-06-viewport-lifecycle.test.mjs
- name: Compare V9.201 and V9.202 and exercise composed dock candidate
env:
G203_CANDIDATE_ROUTE: /atlas/v/202612020930/
UNIFIED_TEST_URL: http://127.0.0.1:8873/atlas/v/202612020930/
WALK_TEST_URL: http://127.0.0.1:8873/atlas/v/202612020930/
G203_TEST_URL: http://127.0.0.1:8873/atlas/v/202612020930/
LINE_TEST_BROWSERS: ${{ matrix.browser }}
run: |
node tools/satnav/serve.mjs 8873 > "$RUNNER_TEMP/g203-server.log" 2>&1 &
server_pid=$!
trap 'kill "$server_pid" 2>/dev/null || true' EXIT
curl --fail --silent --show-error --retry-connrefused --retry 8 --output /dev/null http://127.0.0.1:8873/atlas/v/202612020205/
# Preserve the failure status while collecting every independent acceptance result.
rc=0
for script in g203-dock-browser.py g203-viewport-browser.py unified-agent1-browser.py convergence-browser.py g203-swarm-03-panel-continuity.py g203-swarm-05-offline-browser.py; do
echo "::group::$script"
if "$RUNNER_TEMP/g203/bin/python" "tools/satnav/$script"; then
echo "PASS $script"
else
echo "::error::FAIL $script"
rc=1
fi
echo "::endgroup::"
done
exit "$rc"
g203-soak:
if: github.event.pull_request.head.ref == 'g203-01-compact-dock' || startsWith(github.event.pull_request.head.ref, 'integration/g203-')
runs-on: ubuntu-24.04
timeout-minutes: 55
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
ukpn: ['off', 'on']
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- name: Verify exact composition and historical protection
run: |
git diff --exit-code 10bda3b7916f3eb1a37219e8ac13b3b3631ae0af HEAD -- atlas/current.json STATE.md atlas/releases/ atlas/v/202612020056/ atlas/v/202612020205/ data/
# The native derivative retains historical whitespace byte-for-byte.
# Check the actual new/changed lines against the pinned predecessor,
# and retain the normal Git whitespace check for every other path.
git diff --check 10bda3b7916f3eb1a37219e8ac13b3b3631ae0af HEAD -- . ':!atlas/modules/g203-regional-native-viewport.js'
python3 - <<'PY'
from pathlib import Path
from difflib import SequenceMatcher
a=Path('atlas/modules/202612012117-regional-native.js').read_text().splitlines()
b=Path('atlas/modules/g203-regional-native-viewport.js').read_text().splitlines()
for tag,_,__,i,j in SequenceMatcher(None,a,b,autojunk=False).get_opcodes():
if tag in ('insert','replace'):
assert all(x==x.rstrip(' \t') for x in b[i:j]), (i,j)
PY
test "$(git ls-tree -r --name-only HEAD .github/workflows | grep -Ec '\.(yml|yaml)$')" = 9
node tools/satnav/g203-verify-composition.mjs
- name: Install browser harness
run: |
python3 -m venv "$RUNNER_TEMP/g203-soak"
"$RUNNER_TEMP/g203-soak/bin/python" -m pip install --require-virtualenv playwright==1.63.0
"$RUNNER_TEMP/g203-soak/bin/python" -m playwright install --with-deps ${{ matrix.browser }}
- name: Thirty-minute matched mixed-use soak
env:
G203_BROWSER: ${{ matrix.browser }}
G203_UKPN: ${{ matrix.ukpn }}
run: |
node tools/satnav/serve.mjs 8873 > "$RUNNER_TEMP/g203-soak.log" 2>&1 &
server_pid=$!
trap 'kill "$server_pid" 2>/dev/null || true' EXIT
curl --fail --silent --show-error --retry-connrefused --retry 8 --output /dev/null http://127.0.0.1:8873/atlas/v/202612020930/
"$RUNNER_TEMP/g203-soak/bin/python" tools/satnav/g203-soak.py
unified-shell-agent1:
if: startsWith(github.event.pull_request.head.ref, 'integration/unified-shell-')
runs-on: ubuntu-24.04
timeout-minutes: 35
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- name: Fetch and compare the authorised original Git revision
env:
ORIGINAL_BASE: a31234b180c991509e81621dc12d67c051ac6a59
EXPECTED_HEAD: ${{ github.event.pull_request.head.sha }}
run: |
set -euo pipefail
test "$(git rev-parse HEAD)" = "$EXPECTED_HEAD"
git fetch --no-tags --depth=1 origin "$ORIGINAL_BASE"
git diff --check "$ORIGINAL_BASE" HEAD
git diff --exit-code "$ORIGINAL_BASE" HEAD -- atlas/current.json
# New immutable release paths require separate change-register approval.
git diff --no-renames --diff-filter=DMRTUXB --exit-code "$ORIGINAL_BASE" HEAD -- atlas/releases/ atlas/v/ atlas/manifests/ atlas/cartridges/ data/
test "$(git ls-tree -r --name-only HEAD .github/workflows | grep -Ec '\.(yml|yaml)$')" = 9
git diff --name-status --no-renames "$ORIGINAL_BASE" HEAD
python3 tools/ci/unified-preservation-gate.py
- name: Validate unified cartridge syntax and compose immutable baseline
run: |
node --check atlas/modules/satnav-unified-waypoint-map-agent1.js
node --test tools/proofs/unified-layer-catalogue.test.mjs
node --test tools/proofs/unified-destination-contract.test.mjs
node --test tools/proofs/unified-catalogue-independent.test.mjs
node --test tools/secondary/regional-interface.test.mjs tools/satnav/guidance/convergence-2km.test.mjs
node tools/satnav/build-unified-agent1-ci.mjs
node tools/satnav/verify-unified-release.mjs 202612020056 b3fd4a69c282dfb18cfc3c7777a9b83e6f118131
node tools/proofs/202612020205-owner-test.proof.mjs
python3 -m py_compile tools/satnav/unified-agent1-browser.py tools/satnav/v9202-neon-dock-browser.py
git diff --check
git diff --exit-code -- atlas/current.json STATE.md atlas/releases/ atlas/v/
- name: Install isolated browser harness
run: |
python3 -m venv "$RUNNER_TEMP/unified-agent1"
"$RUNNER_TEMP/unified-agent1/bin/python" -m pip install --require-virtualenv playwright==1.63.0
"$RUNNER_TEMP/unified-agent1/bin/python" -m playwright install --with-deps ${{ matrix.browser }}
- name: Unified shell and GPS continuity
env:
LINE_TEST_BROWSERS: ${{ matrix.browser }}
UNIFIED_TEST_URL: http://127.0.0.1:8873/atlas/v/202612020205/
run: |
node tools/satnav/serve.mjs 8873 > "$RUNNER_TEMP/unified-agent1-server.log" 2>&1 &
server_pid=$!
trap 'kill "$server_pid" 2>/dev/null || true' EXIT
curl --fail --silent --show-error --retry-connrefused --retry 8 --output /dev/null "$UNIFIED_TEST_URL"
"$RUNNER_TEMP/unified-agent1/bin/python" tools/satnav/unified-agent1-browser.py
"$RUNNER_TEMP/unified-agent1/bin/python" tools/satnav/unified-gps-movement-browser.py
"$RUNNER_TEMP/unified-agent1/bin/python" tools/satnav/v9202-neon-dock-browser.py
git diff --exit-code -- atlas/current.json STATE.md atlas/releases/ atlas/v/
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: unified-agent1-${{ matrix.browser }}-${{ github.run_id }}
path: |
work/unified-agent1
work/unified-gps-movement
work/v9202-neon-dock
${{ runner.temp }}/unified-agent1-server.log
atlas/v/202612020205/current.json
atlas/manifests/202612020205-composition.json
if-no-files-found: ignore
retention-days: 14
regional-interface-browser:
if: github.event.pull_request.head.ref == 'fix/protected-interface-regional-20261201' || github.event.pull_request.head.ref == 'integration/gridatlas-satnav-20261201' || startsWith(github.event.pull_request.head.ref, 'integration/unified-shell-')
runs-on: ubuntu-24.04
timeout-minutes: 35
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- run: npm ci --ignore-scripts --no-audit --no-fund
- name: Build disposable hashed regional candidate
run: |
node tools/secondary/regional-preview.mjs
node --test tools/secondary/regional-interface.test.mjs
git diff --exit-code -- atlas/current.json STATE.md atlas/releases/
- name: Install browser with transient-network retries
run: |
for attempt in 1 2 3; do
if npx --no-install playwright install --with-deps ${{ matrix.browser }}; then exit 0; fi
if [[ "$attempt" == 3 ]]; then exit 1; fi
sleep 15
done
- name: Comparative native map and genuine data acceptance
env:
UKPN_BROWSER: ${{ matrix.browser }}
UKPN_TEST_ROUTE: /atlas/v/202612012117/
run: node tools/proofs/regional-interface.browser.mjs
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: regional-interface-${{ matrix.browser }}-${{ github.run_id }}
path: work/regional-interface-${{ matrix.browser }}
retention-days: 14
satnav-regional-convergence-browser:
if: github.event.pull_request.head.ref == 'feat/satnav-convergence-2km-20261201' || github.event.pull_request.head.ref == 'integration/gridatlas-satnav-20261201' || startsWith(github.event.pull_request.head.ref, 'integration/unified-shell-')
runs-on: ubuntu-24.04
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- name: Compose and hash both candidates without production writes
run: |
node --test tools/secondary/regional-interface.test.mjs tools/satnav/guidance/convergence-2km.test.mjs
node tools/secondary/regional-preview.mjs
node tools/satnav/guidance/convergence-preview.mjs
git diff --exit-code -- atlas/current.json STATE.md atlas/releases/ atlas/v/
- name: Install isolated browser harness
run: |
python3 -m venv "$RUNNER_TEMP/satnav-convergence"
"$RUNNER_TEMP/satnav-convergence/bin/python" -m pip install --require-virtualenv playwright==1.63.0
"$RUNNER_TEMP/satnav-convergence/bin/python" -m playwright install --with-deps ${{ matrix.browser }}
- name: Combined composition real browser and continuous GPS
env:
LINE_TEST_BROWSERS: ${{ matrix.browser }}
WALK_TEST_URL: http://127.0.0.1:8873/atlas/v/202612012118/
run: |
node tools/satnav/serve.mjs 8873 > "$RUNNER_TEMP/satnav-convergence-server.log" 2>&1 &
server_pid=$!
trap 'kill "$server_pid" 2>/dev/null || true' EXIT
curl --fail --silent --show-error --retry-connrefused --retry 8 --output /dev/null "$WALK_TEST_URL"
"$RUNNER_TEMP/satnav-convergence/bin/python" tools/satnav/walk/layers-browser.py
"$RUNNER_TEMP/satnav-convergence/bin/python" tools/satnav/convergence-browser.py
git diff --exit-code -- atlas/current.json STATE.md atlas/releases/ atlas/v/
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: satnav-convergence-${{ matrix.browser }}-${{ github.run_id }}
path: |
${{ runner.temp }}/satnav-convergence-server.log
atlas/v/satnav-convergence-ci/current.json
if-no-files-found: ignore
retention-days: 14
satnav-compact-browser:
if: github.event.pull_request.head.ref == 'integration/satnav-owner-20261128' || github.event.pull_request.head.ref == 'satnav/sv04-handset-compass-20261128'
runs-on: ubuntu-24.04
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- name: Verify compact preview cartridge hash
run: node -e "const fs=require('fs'),c=require('crypto'),m=JSON.parse(fs.readFileSync('atlas/v/satnav-compact-202611281237/current.json'));for(const a of m.cartridges){const p=require('path').resolve('atlas/v/satnav-compact-202611281237',a.path);if(c.createHash('sha256').update(fs.readFileSync(p)).digest('hex')!==a.sha256)throw Error(a.id)}"
- name: Install browser harness
run: |
python3 -m venv "$RUNNER_TEMP/satnav-compact-python"
"$RUNNER_TEMP/satnav-compact-python/bin/python" -m pip install --require-virtualenv playwright==1.63.0
"$RUNNER_TEMP/satnav-compact-python/bin/python" -m playwright install --with-deps ${{ matrix.browser }}
- name: Real GridAtlas phone selection and GPS
env:
LINE_TEST_BROWSERS: ${{ matrix.browser }}
run: |
node tools/satnav/serve.mjs 8873 > "$RUNNER_TEMP/satnav-compact-server.log" 2>&1 &
server_pid=$!
trap 'kill "$server_pid" 2>/dev/null || true' EXIT
curl --fail --silent --show-error --retry-connrefused --retry 8 --output /dev/null http://127.0.0.1:8873/atlas/v/satnav-compact-202611281237/
"$RUNNER_TEMP/satnav-compact-python/bin/python" tools/satnav/compact-browser.py
if [[ "$GITHUB_HEAD_REF" == satnav/sv04-handset-compass-20261128 ]]; then
node --test tools/satnav/orientation/heading.test.mjs
"$RUNNER_TEMP/satnav-compact-python/bin/python" tools/satnav/compass-browser.py
fi
satnav-field-browser:
if: startsWith(github.event.pull_request.head.ref, 'integration/satnav-field-')
runs-on: ubuntu-24.04
timeout-minutes: 22
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- name: Check waypoint editing, guidance and GPS lifecycle
run: |
node --test tools/satnav/waypoints/state.test.mjs tools/satnav/guidance/ordered.test.mjs tools/satnav/orientation/heading.test.mjs
node --test tools/satnav/perimeter/perimeter.test.mjs tools/satnav/track/recorder.test.mjs tools/satnav/interchange/geojson.test.mjs tools/satnav/survey/model.test.mjs
node --test tools/satnav/interchange/geojson-interchange.test.mjs tools/satnav/interchange/layout-import.test.mjs tools/satnav/survey/interchange.test.mjs
SATNAV_GEODESY_FILE=tools/satnav/vendor/9698781539e549deaa6ecaa4a2b34610c1f9fd29/vendor/grid-distance-maths/src/geodesy.mjs node --test tools/satnav/pedestrian/mapped-footpaths.test.mjs
node tools/satnav/field-reliability/state.test.mjs tools/satnav/vendor/9698781539e549deaa6ecaa4a2b34610c1f9fd29/nav/compass.mjs
- name: Install the mobile browser harness
run: |
python3 -m venv "$RUNNER_TEMP/satnav-field"
"$RUNNER_TEMP/satnav-field/bin/python" -m pip install --require-virtualenv playwright==1.63.0
"$RUNNER_TEMP/satnav-field/bin/python" -m playwright install --with-deps ${{ matrix.browser }}
- name: Exercise waypoint navigation on the composed mobile map
env:
LINE_TEST_BROWSERS: ${{ matrix.browser }}
run: |
node tools/satnav/serve.mjs 8873 > "$RUNNER_TEMP/satnav-field-server.log" 2>&1 &
server_pid=$!
trap 'kill "$server_pid" 2>/dev/null || true' EXIT
curl --fail --silent --show-error --retry-connrefused --retry 8 --output /dev/null http://127.0.0.1:8873/atlas/v/satnav-waypoints-202611281300/
"$RUNNER_TEMP/satnav-field/bin/python" tools/satnav/waypoint-browser.py
SURVEY_BROWSERS="$LINE_TEST_BROWSERS" "$RUNNER_TEMP/satnav-field/bin/python" tools/satnav/survey/browser.py
"$RUNNER_TEMP/satnav-field/bin/python" tools/satnav/interchange/layout-browser.py
"$RUNNER_TEMP/satnav-field/bin/python" tools/satnav/pedestrian-pilot/bristol-browser.py
"$RUNNER_TEMP/satnav-field/bin/python" tools/satnav/offline-plan-browser.py "$LINE_TEST_BROWSERS"
"$RUNNER_TEMP/satnav-field/bin/python" tools/satnav/compass-browser.py
if [[ "$GITHUB_HEAD_REF" == integration/satnav-field-20261128-walk ]]; then
node --test tools/satnav/walk/direct.test.mjs
"$RUNNER_TEMP/satnav-field/bin/python" tools/satnav/walk/layers-browser.py
"$RUNNER_TEMP/satnav-field/bin/python" tools/satnav/walk/saved-plan-browser.py
fi
satnav-practice-line-browser:
if: github.event.pull_request.head.ref == 'feature/satnav-practice-line-20261124'
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- name: Verify the exact practice preview rebuild
run: |
node tools/satnav/build-line-preview.mjs
git diff --exit-code
- name: Install isolated Playwright Chromium
run: |
python3 -m venv "$RUNNER_TEMP/satnav-line-python"
"$RUNNER_TEMP/satnav-line-python/bin/python" -m pip install --require-virtualenv playwright==1.63.0
"$RUNNER_TEMP/satnav-line-python/bin/python" -m playwright install --with-deps chromium
- name: Real map taps, basemap switches and simulated line tracking
env:
LINE_TEST_BROWSERS: chromium
run: |
node tools/satnav/serve.mjs 8873 > "$RUNNER_TEMP/satnav-line-server.log" 2>&1 &
server_pid=$!
trap 'kill "$server_pid" 2>/dev/null || true' EXIT
curl --fail --silent --show-error --retry-connrefused --retry 8 --output /dev/null \
http://127.0.0.1:8873/atlas/v/satnav-line-preview/
"$RUNNER_TEMP/satnav-line-python/bin/python" tools/satnav/line-browser.py
satnav-native-browser:
if: github.event.pull_request.head.ref == 'feature/satnav-native-vicinity-m1-20261124'
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- name: Verify the preview rebuild and existing station index
run: |
node tools/satnav/build.mjs
git diff --exit-code
node --test tools/train/core.test.mjs
- name: Install isolated Playwright Chromium
run: |
python3 -m venv "$RUNNER_TEMP/satnav-python"
"$RUNNER_TEMP/satnav-python/bin/python" -m pip install --require-virtualenv playwright==1.63.0
"$RUNNER_TEMP/satnav-python/bin/python" -m playwright install --with-deps chromium
- name: Run actual native SatNav and pinned compass handoff
run: |
repo="$PWD"
node tools/satnav/serve.mjs 8768 > "$RUNNER_TEMP/satnav-server.log" 2>&1 &
server_pid=$!
trap 'kill "$server_pid" 2>/dev/null || true' EXIT
curl --fail --silent --show-error --retry-connrefused --retry 8 --output /dev/null \
http://127.0.0.1:8768/atlas/v/satnav-native-m1/
mkdir -p "$RUNNER_TEMP/satnav-browser"
cd "$RUNNER_TEMP/satnav-browser"
"$RUNNER_TEMP/satnav-python/bin/python" "$repo/tools/satnav/browser.py"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: satnav-native-chromium-${{ github.event.pull_request.head.sha }}
path: |
${{ runner.temp }}/satnav-server.log
${{ runner.temp }}/satnav-browser/
if-no-files-found: ignore
retention-days: 14
vicinity-v9197-real-layers:
if: startsWith(github.event.pull_request.head.ref, 'fix/v9197-fullscreen-layers-')
runs-on: ubuntu-24.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- run: npm ci --ignore-scripts --no-audit --no-fund
- run: npx --no-install playwright install --with-deps ${{ matrix.browser }}
- name: Exact source, inherited SHA pins and fullscreen event delegation
run: node tools/proofs/202611222343-vicinity-controls-rescue.proof.mjs
- name: Headless visible Layers - V9.195 working, V9.196 broken, V9.197 fixed in portrait and landscape
run: VICINITY_BROWSER=${{ matrix.browser }} node tools/proofs/202611222343-layers-visible.browser.mjs
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: vicinity-v9197-layers-${{ matrix.browser }}-${{ github.run_id }}
path: work/vicinity-v9197-${{ matrix.browser }}
retention-days: 14
vicinity-v9196-real-receiver:
if: startsWith(github.event.pull_request.head.ref, 'fix/v9196-vicinity-a4-')
runs-on: ubuntu-24.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- run: npm ci --ignore-scripts --no-audit --no-fund
- run: npx --no-install playwright install --with-deps ${{ matrix.browser }}
- run: node tools/proofs/202611222325-vicinity-controls-rescue.proof.mjs
- name: Actual PipelineNews MAP and PDF URI to real GridAtlas with original Grid Engine and touch-hit Layers
run: VICINITY_BROWSER=${{ matrix.browser }} node tools/proofs/202611222325-vicinity-a4.browser.mjs
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: vicinity-v9196-${{ matrix.browser }}-${{ github.run_id }}
path: work/vicinity-v9196-${{ matrix.browser }}
retention-days: 14
# Native V9.194 vicinity gate uses this existing PR workflow. The Atlas
# repository intentionally caps the number of active workflow files at nine.
vicinity-v9194-browser:
if: startsWith(github.event.pull_request.head.ref, 'feature/v9194-pipeline-vicinity-')
runs-on: ubuntu-24.04
timeout-minutes: 25
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- run: npm ci --ignore-scripts --no-audit --no-fund
- run: npx --no-install playwright install --with-deps ${{ matrix.browser }}
- name: Byte-pinned native vicinity source and no Journey
run: node tools/proofs/202611222000-vicinity-entry.proof.mjs
- name: Real browser MAP, vicinity, 90-point swipe and Hide Layers
run: VICINITY_BROWSER=${{ matrix.browser }} node tools/proofs/202611222000-vicinity-entry.browser.mjs
- name: Preserve browser images and diagnostic receipts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: vicinity-v9194-${{ matrix.browser }}-${{ github.run_id }}
path: work/vicinity-v9194-${{ matrix.browser }}
retention-days: 14
# V9.195: the asset-first candidate is not a public release. Headless phone
# Chromium/WebKit must demonstrate focused detail cards, hidden Layout Sandbox
# and restored existing controls before any owner-reviewed promotion.
vicinity-v9195-browser:
if: startsWith(github.event.pull_request.head.ref, 'feature/v9195-vicinity-focus-')
runs-on: ubuntu-24.04
timeout-minutes: 25
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- run: npm ci --ignore-scripts --no-audit --no-fund
- run: npx --no-install playwright install --with-deps ${{ matrix.browser }}
- name: V9.194 preserved and V9.195 focus SHA-256 pinned
run: node tools/proofs/202611222130-vicinity-focus.proof.mjs
- name: Project and selected asset card on emulated phone
run: VICINITY_BROWSER=${{ matrix.browser }} node tools/proofs/202611222130-vicinity-focus.browser.mjs
- name: Keep screenshots and receipts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: vicinity-v9195-${{ matrix.browser }}-${{ github.run_id }}
path: work/vicinity-v9195-${{ matrix.browser }}
retention-days: 14
# V9.195 release preparation: source-only branch verifies the target G
# independent of the currently live V9.194 pointer. This avoids a false
# green where default twin targets only previous/live data generations.
vicinity-v9195-promotion-source:
if: startsWith(github.event.pull_request.head.ref, 'prep/v9195-release-forward-compat-')
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '24'
- name: Prove both immutable V9.195 cartridges and preview contract
run: |
node tools/proofs/202611222130-sld-sandbox.proof.mjs
node tools/proofs/202611222130-vicinity-focus.proof.mjs
- name: Rebuild V9.195 in an independent source-only twin
run: node tools/twin/replicate-generation.mjs --offline --generation 202611222130
grid-explorer-browser:
if: github.event_name == 'pull_request' && (startsWith(github.event.pull_request.head.ref, 'train-conductor/atlas-') || startsWith(github.event.pull_request.head.ref, 'train-conductor/atlas2-') || startsWith(github.event.pull_request.head.ref, 'release/202611'))
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: '22.23.4'
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium webkit
- name: Select newest explorer candidate
run: |
node --input-type=module -e "import fs from 'node:fs'; const rows=fs.readdirSync('atlas/manifests').filter(f=>f.endsWith('-composition.json')).map(f=>JSON.parse(fs.readFileSync('atlas/manifests/'+f))).filter(m=>m.acceptance?.stage==='native'||m.acceptance?.stage==='vicinity').sort((a,b)=>a.generation.localeCompare(b.generation));const latest=rows.at(-1);if(!latest)throw Error('No explore … [line shortened here: 619 characters; full line on GitHub]
- name: Source and native map acceptance
env:
JOURNEY_BROWSER_OUTPUT: ${{ runner.temp }}/gridatlas-gj03-browser-candidate
run: |
node --test tools/journey/controller.test.mjs tools/sld/build.test.mjs tools/sld/mobile-arrival-card.test.mjs
node tools/journey/contract.test.mjs
node tools/journey/browser.test.mjs
node tools/twin/replicate-generation.mjs --generation "$EXPLORER_GENERATION" --offline
if test -f tools/sld/map-removal-cleanup.test.mjs; then node --test tools/sld/map-removal-cleanup.test.mjs; fi
if test -d tools/pipeline-lifecycle; then node --test tools/pipeline-lifecycle/*.test.mjs; fi
if test -d tools/train; then node --test tools/train/core.test.mjs tools/train/route-plan.test.mjs tools/train/scenario.test.mjs tools/train/train-motion.test.mjs tools/train/painted-observation.test.mjs tools/train/gazetteer/lookup.test.mjs; fi
if test -f tools/vicinity/model.test.mjs; then node --test tools/vicinity/model.test.mjs tools/vicinity/asset-context.test.mjs tools/vicinity/document-context.test.mjs; fi
- name: Native vicinity and train acceptance in Chromium and WebKit
run: |
if node --input-type=module -e "import fs from 'node:fs';const m=JSON.parse(fs.readFileSync('atlas/manifests/'+process.env.EXPLORER_GENERATION+'-composition.json'));process.exit(m.acceptance?.stage==='vicinity'?0:1)"; then
for engine in chromium webkit; do
VICINITY_BROWSER_ENGINE="$engine" VICINITY_BROWSER_GENERATION="$EXPLORER_GENERATION" VICINITY_BROWSER_OUTPUT="$RUNNER_TEMP/gridatlas-vicinity-train-$engine" VICINITY_BROWSER_INJECT=0 node tools/vicinity/browser.test.mjs
done
fi
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: grid-explorer-${{ github.event.pull_request.head.sha }}
path: |
${{ runner.temp }}/gridatlas-gj03-browser-*/
${{ runner.temp }}/gridatlas-vicinity-*/
retention-days: 14
size-guard:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
MAX_MB: '5'
ALLOWLIST: .github/large-files-allowlist.txt
steps:
# Blobless and sparse: only .github/ is materialised, so this stays fast
# even in repositories that carry hundreds of megabytes of data. Blobs
# for the PR's own changed files are fetched lazily when sized below.
- name: Checkout the PR merge commit (blobless, sparse, no history)
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
filter: blob:none
sparse-checkout: .github
sparse-checkout-cone-mode: true
- name: Fetch the base commit
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: git fetch --no-tags --depth=1 --filter=blob:none origin "$BASE_SHA"
- name: Check added or modified files against the size budget
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
shell: bash
run: |
set -euo pipefail
limit=$(( MAX_MB * 1024 * 1024 ))
allow=()
if [ -f "$ALLOWLIST" ]; then
while IFS= read -r line || [ -n "$line" ]; do
line="${line%%#*}"
line="${line#"${line%%[![:space:]]*}"}"
line="${line%"${line##*[![:space:]]}"}"
[ -n "$line" ] && allow+=("$line")
done < "$ALLOWLIST"
fi
allowed() {
local p="$1" pat
for pat in "${allow[@]+"${allow[@]}"}"; do