In this section
- GlobalGrid2050 Patch V5 Fullscreen Glow Controls Workflow automation · globalgrid2050 / .github/workflows/patch_v5_fullscreen_glow_controls.yml lines 1–55
- GlobalGrid2050 Pipeline Code Census Workflow automation · globalgrid2050 / .github/workflows/pipeline-code-census.yml lines 1–77
- GlobalGrid2050 Pipeline Headlines Workflow automation · globalgrid2050 / .github/workflows/pipeline-headlines.yml lines 1–179
- GlobalGrid2050 Pipeline Legal Evidence Workflow automation · globalgrid2050 / .github/workflows/pipeline-legal-evidence.yml lines 1–28
- GlobalGrid2050 Pipeline Project Evidence Weekly Workflow automation · globalgrid2050 / .github/workflows/pipeline-project-evidence-weekly.yml lines 1–135
- GlobalGrid2050 Pipeline V977 Live Workflow automation · globalgrid2050 / .github/workflows/pipeline-v977-live.yml lines 1–31
- GlobalGrid2050 Pn V955 Hud Workflow automation · globalgrid2050 / .github/workflows/pn-v955-hud.yml lines 1–38
- GlobalGrid2050 Pn V956 Hud Workflow automation · globalgrid2050 / .github/workflows/pn-v956-hud.yml lines 1–42
- GlobalGrid2050 Pn V957 Hud Workflow automation · globalgrid2050 / .github/workflows/pn-v957-hud.yml lines 1–95
GlobalGrid2050 Patch V5 Fullscreen Glow Controls Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/patch_v5_fullscreen_glow_controls.yml · lines 1–55 of 55 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Inputs & outputs
- Out: commits pushed to the repository.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Runs GlobalGrid2050 Patch V5 Fullscreen Glow Controls (`scripts/patch_v5_fullscreen_glow_controls.py`), GlobalGrid2050 Patch V5 Fullscreen Left Legend (`scripts/patch_v5_fullscreen_left_legend.py`) and GlobalGrid2050 Patch V5 Multi Year Loading (`scripts/patch_v5_multi_year_loading.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
- GlobalGrid2050 Patch V5 Fullscreen Glow Controls (workflow run), GlobalGrid2050 Patch V5 Fullscreen Left Legend (workflow run), GlobalGrid2050 Patch V5 Multi Year Loading (workflow run), GlobalGrid2050 Patch V5 Trend Title Safe Zone (workflow run), GlobalGrid2050 Patch V5 Emergency Chart Repair (workflow run), Price History UI (workflow run), Price History Fullscreen (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Patch V5 Chart Glow Controls
- 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/patch_v5_fullscreen_glow_controls.yml:1-55 · blob da4c94f457364aaba4f5af4bb727aee69a7df7ac · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Patch V5 Chart Glow Controls
on:
workflow_dispatch:
permissions:
contents: write
jobs:
patch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Patch V5 chart glow controls
run: python scripts/patch_v5_fullscreen_glow_controls.py
- name: Patch V5 fullscreen left legend
run: python scripts/patch_v5_fullscreen_left_legend.py
- name: Patch V5 multi year loading
run: python scripts/patch_v5_multi_year_loading.py
- name: Patch V5 trend title safe zone
run: python scripts/patch_v5_trend_title_safe_zone.py
- name: Patch V5 emergency chart repair
run: python scripts/patch_v5_emergency_chart_repair.py
- name: Syntax check JavaScript
run: |
node --check uk_energy_tracking_v5/price-history-ui.js
node --check uk_energy_tracking_v5/price-history-fullscreen.js
- name: Commit patched V5 chart files
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
set -e
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
git add uk_energy_tracking_v5/price-history-ui.js uk_energy_tracking_v5/price-history-fullscreen.js uk_energy_tracking_v5/index.md gridbot_reports/patch_v5_fullscreen_glow_controls.md gridbot_reports/patch_v5_fullscreen_left_legend.md gridbot_reports/patch_v5_multi_year_loading.md gridbot_reports/patch_v5_trend_title_safe_zone.md gridbot_reports/patch_v5_emergency_chart_repair.md
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Patch V5 chart glow controls"
git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
else
echo "No V5 chart glow changes to commit"
fiGlobalGrid2050 Pipeline Code Census Workflow
A GitHub Actions workflow. Runs on push, on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/pipeline-code-census.yml · lines 1–77 of 77 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: reads or writes files; starts processes.
- Inputs & outputs
- In: JSON file delta.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Pipeline News code-line delta and manual full census”; runs Code Line Delta (`automation/pipeline_release/code_line_delta.py`) and Code Census (`automation/pipeline_release/code_census.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
- Code Line Delta (workflow run), Code Census (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Pipeline News code-line delta and manual full census
- 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/pipeline-code-census.yml:1-77 · blob 9573af4687aefc73944f7be44ab33aca89ce2d1e · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, process · domain stage: unknown · users: none · canonical: production_core
name: Pipeline News code-line delta and manual full census
on:
push:
branches: [main]
paths:
- 'uk_renewables_pipeline/**'
- 'automation/pipeline_release/code_line_delta.py'
- '.github/workflows/pipeline-code-census.yml'
pull_request:
paths:
- 'uk_renewables_pipeline/**'
- 'automation/pipeline_release/code_line_delta.py'
- '.github/workflows/pipeline-code-census.yml'
workflow_dispatch:
inputs:
release:
description: Dated release for manual full census
default: '202611221330'
required: true
permissions:
contents: read
jobs:
delta:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 1
sparse-checkout: |
automation/pipeline_release
sparse-checkout-cone-mode: true
- name: Report latest immutable release source additions/deletions
run: |
python3 automation/pipeline_release/code_line_delta.py --output /tmp/pipeline-release-delta
cat /tmp/pipeline-release-delta/summary.md >> "$GITHUB_STEP_SUMMARY"
- name: Check V9.65 known source delta against independent prior CI
run: |
python3 - <<'PY'
import json
r=json.load(open('/tmp/pipeline-release-delta/delta.json'))
if r['current']=='202611221330':
assert r['previous']=='202611221243',r
assert r['all_text']['added']==717,r
assert r['all_text']['deleted']==18,r
assert r['changed_files']==7,r
assert r['identical_inherited_files']==328,r
assert r['all_text']['added']>=0 and r['all_text']['deleted']>=0
print('PASS code-line delta provenance',r['previous'],r['current'])
PY
- uses: actions/upload-artifact@v4
with:
name: pipeline-release-line-delta
path: /tmp/pipeline-release-delta/
census:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 1
sparse-checkout: |
automation/pipeline_release
sparse-checkout-cone-mode: true
- name: Full historical deduplicated code census on explicit request
env:
RELEASE: ${{ inputs.release }}
run: |
python3 automation/pipeline_release/code_census.py --current "$RELEASE" --output /tmp/pipeline-code-census
cat /tmp/pipeline-code-census/summary.md >> "$GITHUB_STEP_SUMMARY"
- uses: actions/upload-artifact@v4
with:
name: pipeline-code-census
path: /tmp/pipeline-code-census/GlobalGrid2050 Pipeline Headlines Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on push, on pull requests and on a schedule.
automationglobalgrid2050 / .github/workflows/pipeline-headlines.yml · lines 1–179 of 179 · Entry point
- What it does
- It builds and publishes the REPD register. Side effects: reads or writes files; starts processes.
- Why it exists in the grid workflow
- Domain terms in the code: the REPD register.
- Inputs & outputs
- In: JSON file pipeline_feeds.json; JSON file pipeline-headlines.v1.schema.json; JSON file pipeline_headlines.json; JSON file pipeline_headlines.rank.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Pipeline headlines (three times a day, data branch)”; runs Compare Legacy Collector (`automation/news/tests/compare_legacy_collector.py`) and Pipeline Headlines (`automation/news/pipeline_headlines.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
- Compare Legacy Collector (workflow run), Pipeline Headlines (workflow run), Build News Priority (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Pipeline headlines (three times a day, data branch)
- 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/pipeline-headlines.yml:1-179 · blob 7a57f6b5b97e30cb813922b89d216e93df12accd · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: ingest · effects: filesystem, process · domain stage: unknown · users: none · canonical: production_core
name: Pipeline headlines (three times a day, data branch)
# Owner, 14 Nov 2026: "Improve the news dashboard it's bad. It's stuck on the same news article."
# An owner-requested scheduled workflow (an exception to the 000_freeze manual-only rule, like datacentre-news.yml and
# the monthly REPD check). It reads the public RSS/Atom feeds listed in automation/news/pipeline_feeds.json, keeps
# headlines and links only (automation/news/pipeline_headlines.py), and publishes the unchanged v1 file
# plus its exact-input-bound editorial rank sidecar in one pipeline-news-data commit. It never pushes to main, never opens a PR, never
# deploys: the Pipeline News page reads the file from raw.githubusercontent.com on that branch. A push made with
# GITHUB_TOKEN starts no other workflow. One feed failing is recorded in the file's "feeds" list and does not fail
# the job; the job fails only when every feed failed and there is no earlier file.
# Three slots a day because this repository's scheduled runs arrive hours late and some are dropped: one late or
# missing slot then costs hours, not a day.
# On a pull request that touches the fetcher, the "probe" job (read-only, writes to no branch) fetches every feed in
# the list and reports feed health and the headlines the rules keep, so a feed list can be judged before merge.
on:
schedule:
- cron: '41 4,10,16 * * *'
workflow_dispatch:
# Publish the validated additive source edition automatically upon merge.
push:
branches: [main]
paths:
- 'automation/news/pipeline_headlines.py'
- 'automation/news/news_algorithm.py'
- 'automation/news/tests/test_cop31_climate_priority.py'
- 'automation/news/pipeline_feeds.json'
- 'automation/news/research_indexes.py'
- 'automation/news/tests/test_research_context.py'
- 'automation/news/tests/test_spp_excluded.py'
- 'automation/news/tests/compare_legacy_collector.py'
- '.github/workflows/pipeline-headlines.yml'
pull_request:
paths:
- 'automation/news/pipeline_headlines.py'
- 'automation/news/news_algorithm.py'
- 'automation/news/tests/test_cop31_climate_priority.py'
- 'automation/news/research_indexes.py'
- 'automation/news/tests/test_research_context.py'
- 'automation/news/tests/test_spp_excluded.py'
- 'automation/news/tests/compare_legacy_collector.py'
- 'automation/news/news_algorithm.py'
- 'automation/news/build_news_priority.py'
- 'automation/news/tests/test_news_algorithm.py'
- 'automation/news/tests/test_news_priority_export.py'
- 'automation/news/acquisition/browser/news-priority*'
- 'uk_renewables_pipeline/202611161734/scripts/plugins/live-news.js'
- 'uk_renewables_pipeline/202611161734/styles/v9-26.css'
- 'automation/news/pipeline_feeds.json'
- 'automation/news/datacentre_feed.py'
- 'automation/news/names.py'
- 'automation/news/schema/pipeline-headlines.v1.schema.json'
- 'automation/news/tests/test_pipeline_headlines.py'
- 'automation/news/tests/fixtures/pipeline/**'
- '.github/workflows/pipeline-headlines.yml'
permissions:
contents: read
concurrency:
group: pipeline-headlines-${{ github.event_name == 'pull_request' && github.ref || 'data' }}
cancel-in-progress: false
env:
DATA_BRANCH: pipeline-news-data
jobs:
probe:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 25
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Remaining publishers versus Git base (byte-equivalent output)
run: python automation/news/tests/compare_legacy_collector.py --base HEAD^1
- name: Tests (offline fixtures)
run: |
python -m pip install --quiet pytest
python -m pytest -q -p no:cacheprovider automation/news/tests/test_pipeline_headlines.py automation/news/tests/test_news_algorithm.py automation/news/tests/test_news_priority_export.py automation/news/tests/test_research_context.py automation/news/tests/test_spp_excluded.py automation/news/tests/test_cop31_climate_priority.py
- name: Fetch every feed in the list and report (no data file, no branch written)
run: |
python automation/news/pipeline_headlines.py --probe "$RUNNER_TEMP/pipeline-headlines-probe.md"
cat "$RUNNER_TEMP/pipeline-headlines-probe.md" >> "$GITHUB_STEP_SUMMARY"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
with:
node-version: '22.23.4'
- name: Priority consumer desktop, tablet and phone
run: |
npm ci --ignore-scripts --prefix automation/news/acquisition/browser
npm exec --prefix automation/news/acquisition/browser -- playwright install --with-deps chromium
cd automation/news/acquisition/browser
npx playwright test --config news-priority.config.mjs
- uses: actions/upload-artifact@v4
if: always()
with:
name: pipeline-headlines-probe
path: |
${{ runner.temp }}/pipeline-headlines-probe.md
automation/news/acquisition/browser/test-results/
retention-days: 14
refresh:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 25
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Tests (offline fixtures)
run: |
python -m pip install --quiet pytest
python -m pytest -q -p no:cacheprovider automation/news/tests/test_pipeline_headlines.py automation/news/tests/test_news_algorithm.py automation/news/tests/test_news_priority_export.py automation/news/tests/test_research_context.py automation/news/tests/test_spp_excluded.py automation/news/tests/test_cop31_climate_priority.py
- name: Bring in the previous file from the data branch (keeps older items)
run: |
mkdir -p dist
if git ls-remote --exit-code --heads origin "$DATA_BRANCH" >/dev/null; then
git fetch --depth=1 origin "$DATA_BRANCH"
git show FETCH_HEAD:dist/pipeline_headlines.json > dist/pipeline_headlines.json || rm -f dist/pipeline_headlines.json
fi
- name: Fetch feeds and build dist/pipeline_headlines.json
run: python automation/news/pipeline_headlines.py --out dist/pipeline_headlines.json
- name: Build exact-input-bound display priority (v1 input unchanged)
run: python -m automation.news.build_news_priority --input dist/pipeline_headlines.json --output dist/pipeline_headlines.rank.json
- name: Summary
if: always()
run: |
python - <<'EOF' >> "$GITHUB_STEP_SUMMARY"
import json, pathlib
p = pathlib.Path("dist/pipeline_headlines.json")
if not p.exists():
print("no output"); raise SystemExit
d = json.loads(p.read_text())
print(f"**{d['status']}** {json.dumps(d['counts'])}\n")
print("| feed | status | entries | newest | kept | error |\n|---|---|---|---|---|---|")
for f in d["feeds"]:
print(f"| {f['url']} | {f['status']} | {f.get('entries','')} | {(f.get('newest') or '')[:10]} | {f.get('kept','')} | {f.get('error','')} |")
print("\n| date | category | possible match | source | title |\n|---|---|---|---|---|")
for i in d["items"][:25]:
m = i["possible_match"]
print(f"| {(i['date'] or i['first_seen'])[:10]} | {i['category']} | {('REPD ' + m['repd_ref']) if m else ''} | {i['source']} | {i['title'].replace('|', '/')} |")
EOF
- name: Publish to the data branch
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
pub="$RUNNER_TEMP/pub"
if git ls-remote --exit-code --heads origin "$DATA_BRANCH" >/dev/null; then
git worktree add --detach "$pub" FETCH_HEAD
else
git worktree add --detach "$pub" HEAD
git -C "$pub" checkout --orphan pipeline-news-tmp
git -C "$pub" rm -rq --cached .
find "$pub" -mindepth 1 -maxdepth 1 ! -name .git -exec rm -rf {} +
fi
mkdir -p "$pub/dist"
cp dist/pipeline_headlines.json "$pub/dist/pipeline_headlines.json"
cp dist/pipeline_headlines.rank.json "$pub/dist/pipeline_headlines.rank.json"
printf '%s\n' "Published by .github/workflows/pipeline-headlines.yml. Headlines and links only." \
"Read by the Pipeline News page. Do not edit by hand." > "$pub/README.txt"
git -C "$pub" add dist/pipeline_headlines.json dist/pipeline_headlines.rank.json README.txt
if git -C "$pub" diff --cached --quiet; then
echo "no change"; exit 0
fi
git -C "$pub" commit -q -m "pipeline headlines $(date -u +%Y-%m-%dT%H:%MZ)"
git -C "$pub" push origin "HEAD:refs/heads/$DATA_BRANCH"
- uses: actions/upload-artifact@v4
if: always()
with:
name: pipeline-headlines
path: |
dist/pipeline_headlines.json
dist/pipeline_headlines.rank.json
retention-days: 14GlobalGrid2050 Pipeline Legal Evidence Workflow
A GitHub Actions workflow. Runs on pull requests.
automationglobalgrid2050 / .github/workflows/pipeline-legal-evidence.yml · lines 1–28 of 28 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Pipeline project A4 legal evidence”; runs A4 Legal Model (`uk_renewables_pipeline/202611280922/tests/a4-legal-model.mjs`) and A4 Legal Evidence (`uk_renewables_pipeline/202611280922/tests/a4-legal-evidence.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
- Link Test (workflow run), A4 Legal Model (workflow run), A4 Legal Evidence (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Pipeline project A4 legal evidence
- 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/pipeline-legal-evidence.yml:1-28 · blob 832847681d384210f3941f883fbb3a98897b98e0 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Pipeline project A4 legal evidence
on:
pull_request:
paths:
- 'automation/pipeline_legal_evidence/**'
- 'uk_renewables_pipeline/202611280922/**'
- '.github/workflows/pipeline-legal-evidence.yml'
permissions:
contents: read
jobs:
project-a4:
runs-on: ubuntu-latest
timeout-minutes: 12
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
automation
uk_renewables_pipeline/202611280922
- name: Check canonical project identities and PDF exclusions
run: |
node --test automation/pipeline_legal_evidence/link.test.mjs
node uk_renewables_pipeline/202611280922/tests/a4-legal-model.mjs
- run: python -m pip install 'playwright==1.56.0' 'pypdf>=5,<7'
- name: Test A4-only placement and both PDF outputs on desktop and mobile
env:
CHROME_BIN: /usr/bin/google-chrome
run: python uk_renewables_pipeline/202611280922/tests/a4-legal-evidence.pyGlobalGrid2050 Pipeline Project Evidence Weekly Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on pull requests, on a schedule and by hand.
automationglobalgrid2050 / .github/workflows/pipeline-project-evidence-weekly.yml · lines 1–135 of 135 · Entry point
- What it does
- It builds and publishes solar. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain terms in the code: solar.
- Inputs & outputs
- In: JSON file source-probe.json; JSON file evidence-run.json.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Solar project evidence (weekly, review gated)”; runs Run V9 25 (`uk_renewables_pipeline/202611161630/tests/run_v9_25.sh`).
- 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
- Research Queue (workflow run), Test Solar DC Context (workflow run), Conftest (workflow run), Test Acquisition (workflow run), Test Acquisition Analytics (workflow run), Test Acquisition Run (workflow run), Test Agent7 Dedupe Regressions (workflow run), Test Agent7 Evidence Ledger (workflow run), and 40 more
- Used by
- none found
- Produces
- none declared
- Defines here
- Solar project evidence (weekly, review gated)
- 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/pipeline-project-evidence-weekly.yml:1-135 · blob 954d116d86dcb98bd7d2b7333386631fb2cde1b0 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Solar project evidence (weekly, review gated)
on:
schedule:
- cron: '0 2 * * 1'
workflow_dispatch:
pull_request:
paths:
- 'automation/news/**'
- 'automation/pipeline_release/**'
- 'uk_renewables_pipeline/202611161630/**'
- 'uk_renewables_pipeline/202611161747/**'
- '.github/workflows/pipeline-project-evidence-weekly.yml'
permissions:
contents: read
concurrency:
group: v9.25-evidence-${{ github.event_name == 'pull_request' && github.ref || 'weekly' }}
cancel-in-progress: true
env:
PYTHONUTF8: '1'
DATA_BRANCH: pipeline-evidence-data
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '22'
- name: Install compatible evidence and Global DC dependencies together
run: >-
python -m pip install
-r automation/news/acquisition/requirements.txt
-r uk_renewables_pipeline/202611161630/global-datacentres/requirements.txt
- name: Validate frozen selection and source registry
run: |
python -m automation.news.acquisition.research_queue
python -c "from automation.news.acquisition.fetch import load_sources; print(load_sources(include_disabled=True))"
- name: Pytest including inherited contracts and evidence/Global DC Parquet readback
run: python -m pytest -q automation/news/tests
- name: Candidate release, unchanged register and MAP contracts
run: bash uk_renewables_pipeline/202611161630/tests/run_v9_25.sh
- name: Playwright desktop, tablet, mobile and negative states
run: |
npm ci --prefix automation/news/acquisition/browser
node --test automation/news/acquisition/browser/harness.test.mjs
npm exec --prefix automation/news/acquisition/browser -- playwright install --with-deps chromium
npm test --prefix automation/news/acquisition/browser
- name: V9.27 source-bound priority, real register and inherited news browser checks
run: |
node --test automation/news/prospecting-ui/tests/adapter.test.mjs automation/news/prospecting-ui/tests/bundle.test.mjs
npm exec --prefix automation/news/acquisition/browser -- playwright test --config automation/news/acquisition/browser/prospecting-priority.config.mjs
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: always()
with:
name: evidence-candidate-tests
path: |
automation/news/acquisition/browser/test-results/
uk_renewables_pipeline/202611161630/
retention-days: 7
probe:
needs: verify
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
- run: python -m pip install -r automation/news/acquisition/requirements.txt
- name: Live source health only (no publication or research-negative rows)
run: python -m automation.news.acquisition.run --probe --report "${{ runner.temp }}/source-probe.json"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: always()
with:
name: evidence-source-probe
path: ${{ runner.temp }}/source-probe.json
retention-days: 14
refresh:
needs: [verify, probe]
if: github.event_name != 'pull_request' && vars.EVIDENCE_PUBLICATION_APPROVED == 'true'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
- run: python -m pip install -r automation/news/acquisition/requirements.txt
- name: Restore complete accepted state without swallowing branch errors
shell: bash
run: |
set -euo pipefail
remote=$(git ls-remote --heads origin "refs/heads/$DATA_BRANCH")
if [ -n "$remote" ]; then
git fetch origin "refs/heads/$DATA_BRANCH"
echo "EVIDENCE_EXPECTED_HEAD=$(git rev-parse FETCH_HEAD)" >> "$GITHUB_ENV"
git worktree add --detach "$RUNNER_TEMP/evidence-pub" FETCH_HEAD
mkdir -p dist/news/evidence
cp -a "$RUNNER_TEMP/evidence-pub/dist/news/evidence/." dist/news/evidence/
else
echo 'EVIDENCE_EXPECTED_HEAD=' >> "$GITHUB_ENV"
git worktree add --detach "$RUNNER_TEMP/evidence-pub" HEAD
git -C "$RUNNER_TEMP/evidence-pub" checkout --orphan evidence-bootstrap
git -C "$RUNNER_TEMP/evidence-pub" rm -rq --cached .
fi
- name: Fetch, validate rights/schema and build immutable snapshot
run: python -m automation.news.acquisition.run --report "${{ runner.temp }}/evidence-run.json"
- name: Commit snapshot, SQLite and pointer together (exact-ref lease)
shell: bash
run: |
set -euo pipefail
pub="$RUNNER_TEMP/evidence-pub"
mkdir -p "$pub/dist/news/evidence"
cp -a dist/news/evidence/. "$pub/dist/news/evidence/"
git -C "$pub" config user.name 'github-actions[bot]'
git -C "$pub" config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git -C "$pub" add -f dist/news/evidence
git -C "$pub" commit -m 'Validated weekly provisional solar evidence'
python -m automation.news.acquisition.publish "$pub" "$EVIDENCE_EXPECTED_HEAD"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: always()
with:
name: evidence-weekly-receipt
path: ${{ runner.temp }}/evidence-run.json
retention-days: 14GlobalGrid2050 Pipeline V977 Live Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on push, by hand and after another workflow.
automationglobalgrid2050 / .github/workflows/pipeline-v977-live.yml · lines 1–31 of 31 · 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
- Named “Published PipelineNews V9.77 legal evidence”; runs Live V977 (`automation/pipeline_legal_evidence/live_v977.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
- Live V977 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Published PipelineNews V9.77 legal evidence
- 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/pipeline-v977-live.yml:1-31 · blob a014930f40ea8ce959cabcd87149b5f34060250a · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Published PipelineNews V9.77 legal evidence
on:
workflow_dispatch:
push:
branches: [main]
paths: [automation/pipeline_legal_evidence/live_v977.py]
workflow_run:
workflows: ["Deploy GlobalGrid2050 Pages"]
types: [completed]
branches: [main]
permissions:
contents: read
jobs:
browser:
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_commit.message, 'Promote PipelineNews V9.77'))
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha || github.sha }}
sparse-checkout: automation/pipeline_legal_evidence
- run: python -m pip install 'playwright==1.56.0'
- run: python automation/pipeline_legal_evidence/live_v977.py
env:
CHROME_BIN: /usr/bin/google-chrome
- uses: actions/upload-artifact@v4
if: always()
with:
name: published-v977-mobile-desktop-legal-evidence
path: acceptance/GlobalGrid2050 Pn V955 Hud Workflow
A GitHub Actions workflow. Runs on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/pn-v955-hud.yml · lines 1–38 of 38 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Pipeline News V9.55 HUD browser acceptance”; runs `uk_renewables_pipeline/202611191305/tests/hud-v955.mjs`.
- 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
- Hud V955 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Pipeline News V9.55 HUD browser acceptance
- 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/pn-v955-hud.yml:1-38 · blob f3b19bb68fa750fd30334dfc144c5c1c9cac99f2 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Pipeline News V9.55 HUD browser acceptance
on:
pull_request:
paths:
- 'uk_renewables_pipeline/202611191305/**'
- '.github/workflows/pn-v955-hud.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
hud:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install pinned browser harness
working-directory: uk_renewables_pipeline/202611191305
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Prove unchanged data and MAP source
run: |
for path in data news solar1000 map-entry.mjs scripts; do
test "$(git rev-parse HEAD:uk_renewables_pipeline/202611191154/$path)" = "$(git rev-parse HEAD:uk_renewables_pipeline/202611191305/$path)"
done
- name: Headless real gauges, ticker and register at ten viewports
run: |
python3 -m http.server 8765 >/tmp/pn-hud-http.log 2>&1 &
node uk_renewables_pipeline/202611191305/tests/hud-v955.mjs
- name: Preserve browser screenshots
if: always()
uses: actions/upload-artifact@v4
with:
name: pn-v955-hud-browser-evidence
path: /tmp/pn-hud/GlobalGrid2050 Pn V956 Hud Workflow
A GitHub Actions workflow. Runs on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/pn-v956-hud.yml · lines 1–42 of 42 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: starts processes.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Pipeline News V9.56 HUD browser acceptance”; runs `uk_renewables_pipeline/202611191418/tests/hud-v955.mjs`.
- 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
- Hud V955 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Pipeline News V9.56 HUD browser acceptance
- 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/pn-v956-hud.yml:1-42 · blob 8181530cf6ff5e28b99ff655d1774aa104943566 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Pipeline News V9.56 HUD browser acceptance
on:
pull_request:
paths:
- 'uk_renewables_pipeline/202611191418/**'
- '.github/workflows/pn-v956-hud.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
hud:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install pinned browser harness
working-directory: uk_renewables_pipeline/202611191418
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Prove unchanged data and MAP source
run: |
for path in data news solar1000 map-entry.mjs; do
test "$(git rev-parse HEAD:uk_renewables_pipeline/202611191305/$path)" = "$(git rev-parse HEAD:uk_renewables_pipeline/202611191418/$path)"
done
- name: Headless real gauges, ticker and register at fourteen engine/viewport combinations
run: |
python3 -m http.server 8765 >/tmp/pn-hud-http.log 2>&1 &
node uk_renewables_pipeline/202611191418/tests/hud-v955.mjs
- name: Prove Chart.js artifact integrity
run: |
printf '%s %s\n' "$(openssl dgst -sha384 -binary uk_renewables_pipeline/202611191418/vendor/chart.umd.min.js | openssl base64 -A)" 'uk_renewables_pipeline/202611191418/vendor/chart.umd.min.js'
test "$(openssl dgst -sha384 -binary uk_renewables_pipeline/202611191418/vendor/chart.umd.min.js | openssl base64 -A)" = 'jb8JQMbMoBUzgWatfe6COACi2ljcDdZQ2OxczGA3bGNeWe+6DChMTBJemed7ZnvJ'
- name: Preserve browser screenshots
if: always()
uses: actions/upload-artifact@v4
with:
name: pn-v956-hud-browser-evidence
path: /tmp/pn-hud/GlobalGrid2050 Pn V957 Hud Workflow
A GitHub Actions workflow. Runs on push, on pull requests and by hand.
automationglobalgrid2050 / .github/workflows/pn-v957-hud.yml · lines 1–95 of 95 · Entry point
- What it does
- It runs automated jobs on GitHub Actions. Side effects: reads or writes files; makes network requests; starts processes.
- Downstream impact
- It is itself an entry point (workflow); no other file was found loading it.
- What it achieves
- Named “Pipeline News V9.57 HUD browser acceptance”; runs Hud V955 (`uk_renewables_pipeline/202611201709/tests/hud-v955.mjs`).
- 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
- Hud V955 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Pipeline News V9.57 HUD browser acceptance
- 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/pn-v957-hud.yml:1-95 · blob 40632727a95a6f0c1a9507d5f1b090999cc6e009 · 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: Pipeline News V9.57 HUD browser acceptance
on:
pull_request:
paths:
- 'uk_renewables_pipeline/202611201709/**'
- '.github/workflows/pn-v957-hud.yml'
push:
branches: [main]
paths:
- 'uk_renewables_pipeline/202611201709/**'
- '.github/workflows/pn-v957-hud.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
hud:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install pinned browser harness
working-directory: uk_renewables_pipeline/202611201709
run: |
npm ci
npx playwright install --with-deps chromium webkit
- name: Prove unchanged data and MAP source
run: |
for path in data news solar1000 map-entry.mjs; do
test "$(git rev-parse HEAD:uk_renewables_pipeline/202611191418/$path)" = "$(git rev-parse HEAD:uk_renewables_pipeline/202611201709/$path)"
done
- name: Python immutable release delta gate
run: |
python3 - <<'PY'
import subprocess
from pathlib import Path
def tree(release):
out = subprocess.check_output(['git','ls-tree','-r','-z','HEAD:uk_renewables_pipeline/'+release])
return {p.decode(): m.split()[2].decode() for m,p in (entry.split(b'\t',1) for entry in out.split(b'\0') if entry)}
old,new=tree('202611191418'),tree('202611201709')
changes={p for p in old.keys() | new.keys() if old.get(p)!=new.get(p)}
expected={'CHANGES.md','README.md','index.html','scripts/plugins/solar1000-v924.js','tests/hud-v955.mjs','tests/repd-summary-regression.mjs'}
assert changes==expected,(changes,expected)
assert new['scripts/plugins/solar1000-v924.js']=='dae14d6e557ab237173736053e505f0b4aabf478'
print(f'PASS: {len(new)} tracked files; {len(changes)} expected changes; exact tested source blob')
PY
- name: Headless real gauges, ticker and register at fourteen engine/viewport combinations
run: |
python3 -m http.server 8765 >/tmp/pn-hud-http.log 2>&1 &
node uk_renewables_pipeline/202611201709/tests/hud-v955.mjs
- name: Prove Chart.js artifact integrity
run: |
printf '%s %s\n' "$(openssl dgst -sha384 -binary uk_renewables_pipeline/202611201709/vendor/chart.umd.min.js | openssl base64 -A)" 'uk_renewables_pipeline/202611201709/vendor/chart.umd.min.js'
test "$(openssl dgst -sha384 -binary uk_renewables_pipeline/202611201709/vendor/chart.umd.min.js | openssl base64 -A)" = 'jb8JQMbMoBUzgWatfe6COACi2ljcDdZQ2OxczGA3bGNeWe+6DChMTBJemed7ZnvJ'
- name: Preserve browser screenshots
if: always()
uses: actions/upload-artifact@v4
with:
name: pn-v957-hud-browser-evidence
path: /tmp/pn-hud/
served:
if: github.event_name == 'push'
needs: hud
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Python independent public-byte readback
run: |
python3 - <<'PY'
import hashlib, time, urllib.request
from pathlib import Path
release='202611201709'
root=Path('uk_renewables_pipeline')/release
paths=['index.html','scripts/plugins/solar1000-v924.js']
deadline=time.monotonic()+720
while True:
try:
for path in paths:
url=f'https://globalgrid2050.com/uk_renewables_pipeline/{release}/{path}?verify={time.time_ns()}'
with urllib.request.urlopen(url,timeout=15) as response:
assert response.status==200
actual=response.read()
expected=(root/path).read_bytes()
assert actual==expected, f'Byte mismatch: {path}'
print(path, hashlib.sha256(actual).hexdigest(),flush=True)
print('PASS: public release bytes match GitHub source',flush=True)
break
except Exception as exc:
if time.monotonic()>=deadline: raise
print(f'Public readback pending: {exc}',flush=True)
time.sleep(20)
PY