In this section
- GlobalGrid2050 Verify Pipeline Versions Workflow automation · globalgrid2050 / .github/workflows/verify-pipeline-versions.yml lines 1–108
- GlobalGrid2050 Verify Published Versions Workflow automation · globalgrid2050 / .github/workflows/verify-published-versions.yml lines 1–54
- GlobalGrid2050 Verify V957 Homepage Workflow automation · globalgrid2050 / .github/workflows/verify-v957-homepage.yml lines 1–57
- GlobalGrid2050 Verify V963 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v963-public.yml lines 1–56
- GlobalGrid2050 Verify V964 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v964-public.yml lines 1–97
- GlobalGrid2050 Verify V965 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v965-public.yml lines 1–136
- GlobalGrid2050 Verify V966 Public Workflow automation · globalgrid2050 / .github/workflows/verify-v966-public.yml lines 1–130
GlobalGrid2050 Verify Pipeline Versions Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/verify-pipeline-versions.yml · lines 1–108 of 108 · Entry point
- What it does
- It builds and publishes its content. Side effects: reads or writes files; starts processes.
- Inputs & outputs
- In: JSON file registry.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs Verify (`automation/pipeline_release/verify.py`) and GridAtlas Resolve (`automation/pipeline_release/gridatlas_resolve.py`).
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · .github/workflows · workflow
- Uses
- Test Registry Metadata (workflow run), Verify (workflow run), GridAtlas Resolve (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify Pipeline News versions
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-pipeline-versions.yml:1-108 · blob 84468dc547b6796b3255713ada4047c4aaaa362c · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, process · domain stage: unknown · users: none · canonical: production_core
name: Verify Pipeline News versions
# Checks every Pipeline News version folder from 202611132345 onward and compares each
# with its parent: the folder's own runner, the MAP link and Grid Engine deep-link
# contract for every row, every row's MAP link identical to the parent's, data hashes,
# features kept, published folders unchanged, and a headless Chrome load at desktop and
# phone widths. It reads only; it publishes, promotes and pushes nothing.
on:
pull_request:
paths:
- 'uk_renewables_pipeline/**'
- 'automation/pipeline_release/**'
- 'automation/dc_location_ui/**'
- 'automation/price_daily_ui/**'
- 'automation/primary_note_ui/**'
- 'automation/repd_expand_ui/**'
- 'automation/news_quality_ui/**'
- 'automation/grid_notice_ui/**'
- 'automation/document_facts_ui/**'
- 'automation/ticker_neon_ui/**'
- 'automation/ticker_crisp_ui/**'
- 'automation/mobile_map_ui/**'
- 'automation/v942_preview/**'
- 'automation/journey_entry_ui/**'
- 'automation/journey_return_ui/**'
- 'automation/energy_context_ui/**'
- 'automation/news_history_return/**'
- 'automation/news/filings/policy_context.py'
- 'automation/news/tests/test_policy_context.py'
- '.github/workflows/verify-pipeline-versions.yml'
workflow_dispatch:
inputs:
gridatlas_registry_url:
description: 'Optional: https URL of a GridAtlas browser registry (data/repd_browser_registry_<generation>.json). When given, the run also requires every active row of the newest version to resolve in it by REPD Ref ID.'
required: false
default: ''
permissions:
contents: read
concurrency:
group: verify-pipeline-versions-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 1
sparse-checkout: |
/uk_renewables_pipeline/20261*
/uk_renewables_pipeline/202609082224/
/uk_renewables_pipeline/versions.*
/uk_renewables_pipeline/datacentres/
/automation/pipeline_release/
/automation/news/datacentre-ui/
/automation/news/grid_watch/sources.json
/automation/v928_context/preview/
/automation/dc_location_ui/
/automation/price_daily_ui/
/automation/primary_note_ui/
/automation/repd_expand_ui/
/automation/news_quality_ui/
/automation/grid_notice_ui/
/automation/document_facts_ui/
/automation/ticker_neon_ui/
/automation/ticker_crisp_ui/
/automation/mobile_map_ui/
/automation/journey_entry_ui/
/automation/journey_return_ui/
/automation/energy_context_ui/
/automation/news_history_return/
/dist/major_project_news_v9_5_1.json
/dist/convergence/2026q3/pipelinenews/
/dist/news/
sparse-checkout-cone-mode: false
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Verify every version and compare each with its parent (offline checks and headless Chrome)
env:
VERIFY_OUT: ${{ runner.temp }}/versions.ci.json
SHOT_DIR: ${{ runner.temp }}/shots
run: |
python3 -B -m unittest discover -s automation/pipeline_release/tests -p test_registry_metadata.py -v
mkdir -p "$SHOT_DIR"
python3 automation/pipeline_release/verify.py --browser --check
- name: Optional - do all active rows of the newest version resolve in the named GridAtlas registry?
if: ${{ github.event_name == 'workflow_dispatch' && inputs.gridatlas_registry_url != '' }}
env:
REGISTRY_URL: ${{ inputs.gridatlas_registry_url }}
run: |
newest="$(python3 -c "import json; print(json.load(open('automation/pipeline_release/registry.json'))['versions'][-1]['id'])")"
python3 automation/pipeline_release/gridatlas_resolve.py "uk_renewables_pipeline/$newest" "$REGISTRY_URL" --require-active
- uses: actions/upload-artifact@v4
if: always()
with:
name: pipeline-versions-verdicts
path: |
${{ runner.temp }}/versions.ci.json
${{ runner.temp }}/shots/*.pngGlobalGrid2050 Verify Published Versions Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on push and by hand.
automationglobalgrid2050 / .github/workflows/verify-published-versions.yml · lines 1–54 of 54 · Entry point
- What it does
- It builds and publishes its content. Side effects: starts processes.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Publishing a version and naming it are two separate acts here.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · .github/workflows · workflow
- Uses
- GlobalGrid2050 Test Verify Published Versions (workflow run), GlobalGrid2050 Verify Published Versions (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify published versions are reachable
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-published-versions.yml:1-54 · blob ebdcdf5741338dadf723bf2da7498f7beb8ee444 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
# Publishing a version and naming it are two separate acts here. Nothing checked
# the second one had happened, so 202609012326 and 202609020025 were served with
# HTTP 200 while the newest version a reader could reach was 202608312339.
#
# This workflow makes that state red instead of invisible. It changes nothing and
# deploys nothing: it reads the homepage and the published snapshot directories
# and fails when they disagree.
name: Verify published versions are reachable
on:
push:
branches: [main]
paths:
- 'index.html'
- 'pipelinenews_intelligence/**'
- 'scripts/verify_published_versions.py'
- 'scripts/test_verify_published_versions.py'
- '.github/workflows/verify-published-versions.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: verify-published-versions
cancel-in-progress: true
jobs:
publication-truth:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Test fail-closed publication rules
run: python3 -m unittest scripts/test_verify_published_versions.py
- name: Verify every published snapshot is reachable and the newest is current
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
mkdir -p reports
python3 scripts/verify_published_versions.py --json reports/publication-truth.json
- name: Retain the report
if: always()
uses: actions/upload-artifact@v4
with:
name: publication-truth
path: reports/publication-truth.json
if-no-files-found: warnGlobalGrid2050 Verify V957 Homepage Workflow
A GitHub Actions workflow that builds and publishes the site using data from globalgrid2050.com. Runs on push and by hand.
automationglobalgrid2050 / .github/workflows/verify-v957-homepage.yml · lines 1–57 of 57 · Entry point
- What it does
- It builds and publishes its content. Side effects: reads or writes files; makes network requests; starts processes.
- Inputs & outputs
- In: data source: globalgrid2050.com; JSON file homepage-owner.json; JSON file homepage.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Verify V9.57 homepage-only promotion”.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · .github/workflows · workflow
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify V9.57 homepage-only promotion
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v957-homepage.yml:1-57 · blob 01074433d059c9d82a152756924f4469f03739dd · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.57 homepage-only promotion
on:
push:
branches: [main]
paths:
- 'catalogue/homepage-owner.json'
- '.github/workflows/verify-v957-homepage.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
verify:
if: github.event_name == 'workflow_dispatch' || github.sha != ''
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Verify complete homepage and public bytes with Python
run: |
python3 - <<'PY'
import hashlib, json, subprocess, time, urllib.request
from pathlib import Path
pin=json.loads(Path('catalogue/homepage-owner.json').read_text())
if pin['commit']!='49e70dee0568136c734321de3d1afd7a40483d3f':
print('Not the V9.57 promotion; no action')
raise SystemExit(0)
subprocess.run(['python3','scripts/import_homepage_owner.py'],check=True)
old=Path('homepage_versions/homepage_v160.html').read_text().splitlines()
new=Path('index.html').read_text().splitlines()
assert len(old)==len(new), 'Homepage line count changed'
changed=[(a,b) for a,b in zip(old,new) if a!=b]
assert len(changed)==2
assert all(any(a.startswith(p) and b.startswith(p) for p in ('<details id="pipeline-news">','<tr data-entity-id="pipeline-news">')) for a,b in changed)
assert '202611201709' in changed[0][1] or '202611201709' in changed[1][1]
assert new[-1]=='</html>'
config=json.loads(Path('homepage-shell/data/homepage.json').read_text())
entry=next(e for e in config['entities'] if e['id']=='pipeline-news')
assert entry['operative_release_id']=='202611201709'
assert len(entry['releases'])==24
assert any(e['id']=='202611191418' for e in entry['releases'])
print('PASS: complete homepage retained; only two Pipeline News HTML lines changed',flush=True)
expected={'':Path('index.html').read_bytes()}
expected.update({f'homepage-shell/{p}':Path(f'homepage-shell/{p}').read_bytes() for p in pin['files'] if p!='index.html'})
deadline=time.monotonic()+720
while True:
try:
for path,body in expected.items():
with urllib.request.urlopen('https://globalgrid2050.com/'+path+'?verify='+str(time.time_ns()),timeout=15) as response:
assert response.read()==body, f'Public bytes differ: {path or "/"}'
print(path or '/',hashlib.sha256(body).hexdigest(),flush=True)
print('PASS: root and all six published bundle files match expected bytes',flush=True)
break
except Exception as exc:
if time.monotonic()>=deadline: raise
print('Awaiting publication:',exc,flush=True)
time.sleep(20)
PYGlobalGrid2050 Verify V963 Public Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/verify-v963-public.yml · lines 1–56 of 56 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: reads or writes files; makes network requests; starts processes.
- Inputs & outputs
- In: JSON file homepage.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Verify archived V9.63 A4 report and V9.60 rollback bytes”.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · .github/workflows · workflow
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify archived V9.63 A4 report and V9.60 rollback bytes
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v963-public.yml:1-56 · blob 844754c621c272b0b02ef5f9f47da423f49700c4 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify archived V9.63 A4 report and V9.60 rollback bytes
on:
workflow_dispatch:
permissions:
contents: read
jobs:
served:
runs-on: ubuntu-latest
timeout-minutes: 27
steps:
- uses: actions/checkout@v4
- name: Confirm source promotion and test public HTTP bytes
env:
SHA: ${{ github.sha }}
run: |
python3 - <<'PY'
from pathlib import Path
from urllib.request import Request,urlopen
import hashlib,json,os,time
root=Path('.')
files=[
'uk_renewables_pipeline/202611220220/index.html',
'uk_renewables_pipeline/202611220220/report-a4.mjs',
'uk_renewables_pipeline/202611220220/report-model.mjs',
'uk_renewables_pipeline/202611220220/report-pdf.mjs',
'uk_renewables_pipeline/202611212344/index.html',
]
owner=json.loads((root/'homepage-shell/data/homepage.json').read_text())
pn=next(x for x in owner['entities'] if x['id']=='pipeline-news')
assert any(x['id']=='202611220220' and x['status']=='available' for x in pn['releases']), 'V9.63 rollback removed'
assert any(x['id']=='202611212344' and x['status']=='available' for x in pn['releases']), 'V9.60 rollback removed'
assert 'Area not reported' not in (root/'uk_renewables_pipeline/202611220220/report-a4.mjs').read_text()
expected={p:hashlib.sha256((root/p).read_bytes()).hexdigest() for p in files}
sha=os.environ.get('SHA','unknown')[:12]
for attempt in range(1,46):
bad=[]
for path in files:
url='https://globalgrid2050.com/'+path+'?release='+sha+'-'+str(attempt)
req=Request(url,headers={'Cache-Control':'no-cache','Pragma':'no-cache','Accept-Encoding':'identity','User-Agent':'GlobalGrid2050-V963-Public-CI/1.0'})
try:
with urlopen(req,timeout=18) as response:
data=response.read(2000000)
status=response.status
digest=hashlib.sha256(data).hexdigest()
if status!=200 or digest!=expected[path]:
bad.append(f'{path}: HTTP {status}; SHA256 {digest}, want {expected[path]}')
except Exception as exc:
bad.append(f'{path}: {type(exc).__name__}: {exc}')
if not bad:
print('PASS: all '+str(len(files))+' archived V9.63 A4 and V9.60 public bytes match the immutable Git source',flush=True)
break
print(f'Attempt {attempt}/45: {len(bad)} mismatch(es); '+str(bad[:3]),flush=True)
if attempt==45:
raise SystemExit('FAIL public V9.63 served-byte verification: '+str(bad))
time.sleep(20)
PYGlobalGrid2050 Verify V964 Public Workflow
A GitHub Actions workflow. Runs on push and by hand.
automationglobalgrid2050 / .github/workflows/verify-v964-public.yml · lines 1–97 of 97 · Entry point
- What it does
- It runs the REPD register. Side effects: reads or writes files; makes network requests; starts processes.
- Why it exists in the grid workflow
- Domain terms in the code: the REPD register.
- Inputs & outputs
- In: JSON file homepage.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Verify V9.64 immutable archive and A4 public rollback bytes”.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · .github/workflows · workflow
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify V9.64 immutable archive and A4 public rollback bytes
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v964-public.yml:1-97 · blob cd1d1b6cd360a687880a3129c917cde8327705a5 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.64 immutable archive and A4 public rollback bytes
on:
push:
branches: [main]
paths:
- '.github/workflows/verify-v964-public.yml'
- 'index.html'
- 'homepage-shell/**'
- 'uk_renewables_pipeline/202611221243/**'
workflow_dispatch:
permissions:
contents: read
jobs:
served:
runs-on: ubuntu-latest
timeout-minutes: 27
steps:
- uses: actions/checkout@v4
- name: Verify release metadata, exact source inheritance and actual public SHA256 bytes
env:
SHA: ${{ github.sha }}
run: |
python3 - <<'PY'
from pathlib import Path
from urllib.request import Request,urlopen
import hashlib,json,os,time
root=Path('.')
new='uk_renewables_pipeline/202611221243/'
prior='uk_renewables_pipeline/202611220220/'
owner=json.loads((root/'homepage-shell/data/homepage.json').read_text())
pn=next(e for e in owner['entities'] if e['id']=='pipeline-news')
assert pn['operative_release_id'] in ('202611221243','202611221330','202611221500','202611221625','202611221705','202611221850'), 'Unexpected Pipeline News version'
assert len(pn['releases']) in (31,32,33,34,35,36), 'Unexpected immutable release catalogue length'
assert any(e['id']=='202611220220' and e['status']=='available' for e in pn['releases']), 'V9.63 A4 rollback missing'
assert any(e['id']=='202611221243' and e['status']=='available' for e in pn['releases']), 'V9.64 historical release missing'
assert any(e['id']=='202611212344' and e['status']=='available' for e in pn['releases']), 'V9.60 rollback missing'
assert '202611221243' in (root/'index.html').read_text(), 'Homepage does not link V9.64'
assert 'Project, capacity and MAP prospect scan' not in (root/'index.html').read_text(), 'Unapproved reserved word in homepage'
assert (root/(new+'repd-liquid.mjs')).is_file()
assert (root/(new+'styles/repd-liquid.css')).is_file()
for name in ['report-a4.mjs','report-model.mjs','report-pdf.mjs','styles/report-a4.css']:
assert (root/(new+name)).read_bytes()==(root/(prior+name)).read_bytes(), 'V9.63 original A4 was modified: '+name
files=[
'index.html',
'homepage-shell/data/homepage.json',
'homepage-shell/assets/versioned-homepage.js',
new+'index.html',
new+'repd-liquid.mjs',
new+'styles/repd-liquid.css',
new+'report-a4.mjs',
new+'report-pdf.mjs',
prior+'index.html',
prior+'report-a4.mjs',
prior+'report-pdf.mjs',
'uk_renewables_pipeline/202611212344/index.html',
]
hashes={p:hashlib.sha256((root/p).read_bytes()).hexdigest() for p in files}
sha=os.environ.get('SHA','unknown')[:12]
for attempt in range(1,71):
bad=[]
# First probe the operative homepage, then confirm every artifact only when it is live.
inspect=files if attempt==1 else files[:2]
for path in inspect:
url='https://globalgrid2050.com/'+path+'?v964='+sha+'-'+str(attempt)
req=Request(url,headers={'Cache-Control':'no-cache','Pragma':'no-cache',
'Accept-Encoding':'identity','User-Agent':'GlobalGrid2050-V964-Public-CI/1.0'})
try:
with urlopen(req,timeout=16) as response:
data=response.read(2000000)
status=response.status
digest=hashlib.sha256(data).hexdigest()
if status!=200 or digest!=hashes[path]:
bad.append(f'{path}: HTTP {status}; SHA256 {digest}, expected {hashes[path]}')
except Exception as exc:
bad.append(f'{path}: {type(exc).__name__}: {exc}')
if not bad and inspect!=files:
for path in files[2:]:
url='https://globalgrid2050.com/'+path+'?v964='+sha+'-'+str(attempt)
req=Request(url,headers={'Cache-Control':'no-cache','Pragma':'no-cache',
'Accept-Encoding':'identity','User-Agent':'GlobalGrid2050-V964-Public-CI/1.0'})
try:
with urlopen(req,timeout=16) as response:
data=response.read(2000000)
status=response.status
digest=hashlib.sha256(data).hexdigest()
if status!=200 or digest!=hashes[path]:
bad.append(f'{path}: HTTP {status}; SHA256 {digest}, expected {hashes[path]}')
except Exception as exc:
bad.append(f'{path}: {type(exc).__name__}: {exc}')
if not bad:
print('PASS: all '+str(len(files))+' public V9.64 HTML/A4/rollback and homepage files match exact Git SHA256 bytes',flush=True)
break
print('Attempt '+str(attempt)+'/70: '+str(len(bad))+' mismatch(es) '+str(bad[:3]),flush=True)
if attempt==70:
raise SystemExit('FAIL V9.64 public source verification: '+str(bad))
time.sleep(15)
PYGlobalGrid2050 Verify V965 Public Workflow
A GitHub Actions workflow. Runs on push and by hand.
automationglobalgrid2050 / .github/workflows/verify-v965-public.yml · lines 1–136 of 136 · Entry point
- What it does
- It runs the REPD register. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes.
- Why it exists in the grid workflow
- Domain terms in the code: the REPD register.
- Inputs & outputs
- In: JSON file homepage.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Verify V9.65 archived Expanded Renewable Energy Planning Database (REPD) and public rollback bytes”.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · .github/workflows · workflow
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify V9.65 archived Expanded REPD and public rollback bytes
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v965-public.yml:1-136 · blob 44d336d3c7a72b8b9a86bb93e7e30e2dbccb4970 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.65 archived Expanded REPD and public rollback bytes
on:
push:
branches: [main]
paths:
- '.github/workflows/verify-v965-public.yml'
- 'index.html'
- 'homepage-shell/**'
- 'uk_renewables_pipeline/202611221330/**'
workflow_dispatch:
permissions:
contents: read
jobs:
served:
runs-on: ubuntu-latest
timeout-minutes: 27
steps:
- uses: actions/checkout@v4
- name: Verify source inheritance and SHA256 of public URL bytes
run: |
python3 - <<'PY'
from pathlib import Path
from urllib.request import Request,urlopen
import hashlib,json,os,time
root=Path('.')
current='uk_renewables_pipeline/202611221330/'
old='uk_renewables_pipeline/202611221243/'
a4='uk_renewables_pipeline/202611220220/'
catalog=json.loads((root/'homepage-shell/data/homepage.json').read_text(encoding='utf-8'))
entry=next(x for x in catalog['entities'] if x['id']=='pipeline-news')
assert entry['operative_release_id'] in ('202611221330','202611221500','202611221625','202611221705','202611221850'),'Unexpected newer Pipeline News pointer'
assert len(entry['releases']) in (32,33,34,35,36),'Release history was truncated'
assert all(any(x['id']==rid and x['status']=='available' for x in entry['releases'])
for rid in ['202611221330','202611221243','202611220220','202611212344']), 'Missing rollback'
source='https://github.com/Ventusltd/globalgrid2050/tree/0a393cd1d5415b560daa96933ab8a3b5b834b550/uk_renewables_pipeline/202611221330'
assert next(x for x in entry['releases'] if x['id']=='202611221330')['source_ref']==source,'Wrong source pin'
assert '202611221330' in (root/'index.html').read_text(),'V9.65 rollback link disappeared'
assert 'repd-expanded.mjs' in (root/(current+'index.html')).read_text(),'Expanded entry absent'
assert 'EXPANDED REPD VIEW' in (root/(current+'repd-expanded.mjs')).read_text(),'Native control missing'
for path in ['report-a4.mjs','report-model.mjs','report-pdf.mjs','styles/report-a4.css']:
assert (root/(current+path)).read_bytes()==(root/(old+path)).read_bytes()==(root/(a4+path)).read_bytes(), 'A4/PDF changed: '+path
files=[
'index.html',
'homepage-shell/data/homepage.json',
'homepage-shell/assets/versioned-homepage.js',
current+'index.html',
current+'repd-expanded.mjs',
current+'styles/repd-expanded.css',
current+'scripts/plugins/projects-v9-8.js',
current+'report-a4.mjs',
current+'report-pdf.mjs',
old+'index.html',
old+'repd-liquid.mjs',
old+'report-a4.mjs',
a4+'index.html',
a4+'report-a4.mjs',
'uk_renewables_pipeline/202611212344/index.html',
]
hashes={p:hashlib.sha256((root/p).read_bytes()).hexdigest() for p in files}
suffix=os.environ.get('GITHUB_SHA','sha')[:12]
for attempt in range(1,76):
bad=[]
paths=files if attempt==1 else files[:2]
for path in paths:
url='https://globalgrid2050.com/'+path+'?v965='+suffix+'-'+str(attempt)
req=Request(url,headers={'Cache-Control':'no-cache','Pragma':'no-cache',
'Accept-Encoding':'identity','User-Agent':'GlobalGrid2050-V965-Public-CI/1.0'})
try:
with urlopen(req,timeout=17) as response:
payload=response.read(2500000)
status=response.status
digest=hashlib.sha256(payload).hexdigest()
if status!=200 or digest!=hashes[path]:
bad.append(f'{path}: HTTP {status}, SHA256 {digest}, expected {hashes[path]}')
except Exception as exc:
bad.append(f'{path}: {type(exc).__name__}: {exc}')
if not bad and paths!=files:
for path in files[2:]:
url='https://globalgrid2050.com/'+path+'?v965='+suffix+'-'+str(attempt)
req=Request(url,headers={'Cache-Control':'no-cache','Pragma':'no-cache',
'Accept-Encoding':'identity','User-Agent':'GlobalGrid2050-V965-Public-CI/1.0'})
try:
with urlopen(req,timeout=17) as response:
payload=response.read(2500000)
status=response.status
if status!=200 or hashlib.sha256(payload).hexdigest()!=hashes[path]:
bad.append(f'{path}: HTTP {status} or SHA256 mismatched')
except Exception as exc:
bad.append(f'{path}: {type(exc).__name__}: {exc}')
if not bad:
print(f'PASS: {len(files)}/{len(files)} public files match the immutable V9.65 / V9.64 / V9.63 / V9.60 source bytes',flush=True)
break
print(f'Attempt {attempt}/75: {len(bad)} mismatches {bad[:3]}',flush=True)
if attempt==75:raise SystemExit('Public V9.65 serving did not converge: '+str(bad))
time.sleep(12)
PY
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install real Chromium and WebKit
working-directory: uk_renewables_pipeline/202611221330
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Cross-version live browser integration with public Pages
working-directory: uk_renewables_pipeline/202611221330
run: |
node --input-type=module <<'JS'
import {chromium,webkit} from 'playwright';
const routes=['202611221330','202611221243','202611220220'];
for(const [name,driver] of [['Chromium',chromium],['WebKit',webkit]]){
const browser=await driver.launch({headless:true});
try{
for(const version of routes){
const page=await browser.newPage({viewport:{width:393,height:852}});
try{
await page.route('https://raw.githubusercontent.com/**',r=>r.abort());
await page.goto('https://globalgrid2050.com/uk_renewables_pipeline/'+version+'/?live-verification=965',{waitUntil:'domcontentloaded',timeout:90000});
await page.waitForFunction(()=>document.querySelectorAll('#tbody tr[id^="repd-"]').length===50,{timeout:90000});
if(version==='202611221330'){
await page.locator('#pnLiquidLaunch').click();
await page.waitForFunction(()=>document.querySelectorAll('#tbody tr[id^="repd-"]').length===100,{timeout:60000});
if(await page.locator('#repdPanel>.hud-gauges canvas').count()!==3)throw Error('Actual three gauges missing');
if(await page.locator('#repdScroll thead th').count()!==13)throw Error('13 REPD headings missing');
if(await page.locator('.pn-report-launch').count()!==100)throw Error('100 A4 report links missing');
await page.locator('#pnExpandedClose').click();
if(await page.locator('#tbody tr[id^="repd-"]').count()!==50)throw Error('Normal view not restored');
}else if(await page.locator('#tbody .pn-report-launch').count()!==50){
throw Error('V9.64/V9.63 A4 rollback missing');
}
console.log('PASS public live browser',name,version);
}finally{await page.close();}
}
}finally{await browser.close();}
}
JSGlobalGrid2050 Verify V966 Public Workflow
A GitHub Actions workflow. Runs on push and by hand.
automationglobalgrid2050 / .github/workflows/verify-v966-public.yml · lines 1–130 of 130 · Entry point
- What it does
- It runs the REPD register. Side effects: changes the web page (DOM); reads or writes files; makes network requests; starts processes.
- Why it exists in the grid workflow
- Domain terms in the code: the REPD register.
- Inputs & outputs
- In: JSON file homepage.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Verify V9.66 live red Expanded Renewable Energy Planning Database (REPD) and retained rollbacks”.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · .github/workflows · workflow
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- Verify V9.66 live red Expanded REPD and retained rollbacks
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/verify-v966-public.yml:1-130 · blob a8ef8428fa7dab0ced0d7a362a6615e021bd885f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem, network, process · domain stage: unknown · users: none · canonical: production_core
name: Verify V9.66 live red Expanded REPD and retained rollbacks
on:
push:
branches: [main]
paths:
- '.github/workflows/verify-v966-public.yml'
- 'index.html'
- 'homepage-shell/**'
- 'uk_renewables_pipeline/202611221500/**'
workflow_dispatch:
permissions:
contents: read
jobs:
served:
runs-on: ubuntu-latest
timeout-minutes: 27
steps:
- uses: actions/checkout@v4
- name: Verify source invariance and public HTTPS file SHA256s
run: |
python3 - <<'PY'
from pathlib import Path
from urllib.request import Request,urlopen
import hashlib,json,os,time
root=Path('.')
new='uk_renewables_pipeline/202611221500/'
old='uk_renewables_pipeline/202611221330/'
a4='uk_renewables_pipeline/202611220220/'
catalog=json.loads((root/'homepage-shell/data/homepage.json').read_text(encoding='utf-8'))
e=next(v for v in catalog['entities'] if v['id']=='pipeline-news')
assert e['operative_release_id'] in ('202611221500','202611221625','202611221705','202611221850'),'V9.66 archival rollback missing'
assert len(e['releases']) in (33,34,35,36), 'Missing release history'
assert all(any(v['id']==rid and v['status']=='available' for v in e['releases'])
for rid in ['202611221500','202611221330','202611221243','202611220220','202611212344']), 'Rollback release missing'
source='https://github.com/Ventusltd/globalgrid2050/tree/9d88781aa89ccfbd6ad4ade4fecf6cf4889d7b1b/uk_renewables_pipeline/202611221500'
assert next(v for v in e['releases'] if v['id']=='202611221500')['source_ref']==source
assert '202611221500' in (root/'index.html').read_text(), 'Homepage link unchanged'
assert 'repd-expanded.mjs' in (root/(new+'index.html')).read_text()
script=(root/(new+'repd-expanded.mjs')).read_text()
css=(root/(new+'styles/repd-expanded.css')).read_text()
assert 'holder.append(actions)' in script and '52px' in css and '#f33' in css,'Operator fast-action missing'
for f in ('report-a4.mjs','report-model.mjs','report-pdf.mjs','styles/report-a4.css'):
assert (root/(new+f)).read_bytes()==(root/(old+f)).read_bytes()==(root/(a4+f)).read_bytes(), 'A4 changed: '+f
files=['index.html','homepage-shell/data/homepage.json',
'homepage-shell/assets/versioned-homepage.js',
new+'index.html',new+'repd-expanded.mjs',new+'styles/repd-expanded.css',
new+'scripts/plugins/projects-v9-8.js',new+'report-a4.mjs',new+'report-pdf.mjs',
old+'index.html',old+'repd-expanded.mjs',old+'report-a4.mjs',
'uk_renewables_pipeline/202611221243/index.html',
a4+'index.html',a4+'report-a4.mjs']
hashes={p:hashlib.sha256((root/p).read_bytes()).hexdigest() for p in files}
tag=os.environ.get('GITHUB_SHA','unknown')[:12]
for attempt in range(1,76):
bad=[]
subset=files if attempt==1 else files[:2]
def probe(path):
url='https://globalgrid2050.com/'+path+'?v966='+tag+'-'+str(attempt)
req=Request(url,headers={'Cache-Control':'no-cache','Pragma':'no-cache',
'Accept-Encoding':'identity','User-Agent':'GlobalGrid2050-V966-CI/1.0'})
with urlopen(req,timeout=16) as response:
payload=response.read(2500000)
return response.status,hashlib.sha256(payload).hexdigest()
for path in subset:
try:
status,digest=probe(path)
if status!=200 or digest!=hashes[path]:bad.append(path+f' HTTP {status} hash mismatch')
except Exception as err:bad.append(path+' '+repr(err))
if not bad and subset!=files:
for path in files[2:]:
try:
status,digest=probe(path)
if status!=200 or digest!=hashes[path]:bad.append(path+' hash mismatch')
except Exception as err:bad.append(path+' '+repr(err))
if not bad:
print('PASS: all 15/15 served files SHA256 match V9.66 and immutable V9.65/V9.64/V9.63 rollback',flush=True)
break
print('Attempt',attempt,'/',75,':',len(bad),'mismatches:',bad[:3],flush=True)
if attempt==75:raise SystemExit('Live V9.66 bytes not confirmed')
time.sleep(12)
PY
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install public browser engines
working-directory: uk_renewables_pipeline/202611221500
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Cross-version live Chromium/WebKit interaction acceptance
working-directory: uk_renewables_pipeline/202611221500
run: |
node --input-type=module <<'JS'
import {chromium,webkit} from 'playwright';
const routes=['202611221500','202611221330','202611221243','202611220220'];
for(const [name,driver] of [['Chromium',chromium],['WebKit',webkit]]){
const browser=await driver.launch({headless:true});
try{
for(const version of routes){
const page=await browser.newPage({viewport:{width:393,height:852}});
try{
await page.route('https://raw.githubusercontent.com/**',route=>route.abort());
await page.goto('https://globalgrid2050.com/uk_renewables_pipeline/'+version+'/?public-v966',{waitUntil:'domcontentloaded',timeout:90000});
await page.waitForFunction(()=>document.querySelectorAll('#tbody tr[id^="repd-"]').length===50,null,{timeout:90000});
if(version==='202611221500'){
await page.locator('#pnLiquidLaunch').click();
await page.waitForFunction(()=>document.querySelectorAll('#tbody tr[id^="repd-"]').length===100);
const result=await page.evaluate(()=>{
const row=document.querySelector('#tbody tr[id^="repd-"]');
return {notes:getComputedStyle(document.querySelector('#repdScroll th:nth-child(12)')).display,
map:getComputedStyle(document.querySelector('#repdScroll th:nth-child(13)')).display,
operator:row.cells[3].getBoundingClientRect().width,
link:row.cells[3].querySelector('.pn-journey-link')?.href,
a4:!!row.cells[3].querySelector('.pn-report-launch'),
gauges:document.querySelectorAll('#repdPanel>.hud-gauges canvas').length};
});
if(result.notes!=='none'||result.map!=='none'||result.operator>54||!result.a4||result.gauges!==3)throw Error('Expanded V9.66 UI incorrect '+JSON.stringify(result));
await page.locator('#tbody tr[id^="repd-"] td:nth-child(4) .pn-report-launch').first().click();
await page.waitForSelector('#pnRepdReport:not([hidden])',{timeout:15000});
await page.locator('[data-report-action="close"]').click();
await page.locator('#pnExpandedClose').click();
if(await page.locator('#tbody tr[id^="repd-"] td:last-child .project-actions').count()!==50)throw Error('Normal actions missing on restore');
}else if(await page.locator('#tbody .pn-report-launch').count()!==50){
throw Error('Archive V9.65/V9.64/V9.63 A4 controls missing');
}
console.log('PASS public browser',name,version);
}finally{await page.close();}
}
}finally{await browser.close();}
}
JS