In this section
- GlobalGrid2050 GPU Engine Check Workflow automation · globalgrid2050 / .github/workflows/gpu-engine-check.yml lines 1–102
- GlobalGrid2050 Gridbot Feature Install Workflow automation · globalgrid2050 / .github/workflows/gridbot-feature-install.yml lines 1–83
- GlobalGrid2050 Gridbot App Repo Bootstrap Workflow automation · globalgrid2050 / .github/workflows/gridbot_app_repo_bootstrap.yml lines 1–93
- GlobalGrid2050 Gridbot Audit Process Documentation Workflow automation · globalgrid2050 / .github/workflows/gridbot_audit_process_documentation.yml lines 1–93
- GlobalGrid2050 Gridbot Bulk Data Workflow Freeze Workflow automation · globalgrid2050 / .github/workflows/gridbot_bulk_data_workflow_freeze.yml lines 1–88
- GlobalGrid2050 Gridbot Daily MWh Multi Technology Wiring Workflow automation · globalgrid2050 / .github/workflows/gridbot_daily_mwh_multi_technology_wiring.yml lines 1–91
- GlobalGrid2050 Gridbot Daily MWh Seasonal Colouring Workflow automation · globalgrid2050 / .github/workflows/gridbot_daily_mwh_seasonal_colouring.yml lines 1–90
GlobalGrid2050 GPU Engine Check Workflow
A GitHub Actions workflow that builds and publishes the site. Runs on a schedule and by hand.
automationglobalgrid2050 / .github/workflows/gpu-engine-check.yml · lines 1–102 of 102 · 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
- Runs `farm.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
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- GPU engine check
- 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/gpu-engine-check.yml:1-102 · blob 5504e6048171f65129a634bea206e7d18eb9f84a · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: GPU engine check
# Keeps the GPU arithmetic honest while nobody is watching. It runs the engine
# on the real card on the MSI and fails if the processor and the card stop
# agreeing - which is the only thing that would make the published rates
# meaningless.
#
# SHELL NOTE: bash.exe is NOT on the MSI machine PATH and pwsh is not
# installed, so every step uses `shell: powershell` (5.1). A `shell: bash`
# step here does not fail loudly - it is skipped with "bash: command not
# found" and the check silently verifies nothing.
#
# If the card or the CuPy environment is missing, this job FAILS. A check that
# reached nothing is not a pass.
on:
workflow_dispatch:
schedule:
# every two hours, off the half hour so it does not collide with the
# language gate at :35 or the half-hourly night tests
- cron: '15 */2 * * *'
permissions:
contents: read
concurrency:
group: gpu-engine-check
cancel-in-progress: false
env:
VENV_PY: 'E:\swarm\gpu-bench\venv\Scripts\python.exe'
jobs:
engine:
runs-on: [self-hosted, msi, gpu]
timeout-minutes: 20
steps:
- name: Fetch the engine
uses: actions/checkout@v4
with:
repository: Ventusltd/gpu-drivers-for-global-grid
ref: main
path: gpu-repo
fetch-depth: 1
- name: The environment must exist
shell: powershell
run: |
if (-not (Test-Path $env:VENV_PY)) {
Write-Host "FAIL: the CuPy environment is missing at $env:VENV_PY."
Write-Host "This check reached nothing, so it fails rather than passing."
exit 1
}
& $env:VENV_PY -c "import numpy, cupy; print('numpy', numpy.__version__, '| cupy', cupy.__version__)"
- name: Card present and answering
shell: powershell
run: |
nvidia-smi --query-gpu=name,memory.free,memory.total,power.draw,temperature.gpu --format=csv,noheader
& $env:VENV_PY -c "import cupy; d=cupy.cuda.Device(0); f,t=d.mem_info; print('free %.2f GB of %.2f GB' % (f/1e9, t/1e9)); assert float(cupy.arange(1000, dtype=cupy.float64).sum()) == 499500.0; print('kernel ok')"
- name: Engine self-test, both backends must agree
shell: powershell
working-directory: gpu-repo/engine
run: |
& $env:VENV_PY selftest.py | Tee-Object -FilePath engine.log
if ($LASTEXITCODE -ne 0) { Write-Host "FAIL: selftest exited $LASTEXITCODE"; exit 1 }
$log = Get-Content engine.log -Raw
if ($log -notmatch 'BOTH BACKENDS AGREE') { Write-Host "FAIL: the backends did not agree"; exit 1 }
if ($log -notmatch '0 differ') { Write-Host "FAIL: verification did not report 0 differ"; exit 1 }
Write-Host "PASS: both backends agree and verification reports 0 differ"
- name: The east-west block still reproduces its closed forms
shell: powershell
working-directory: gpu-repo/engine
run: |
& $env:VENV_PY east_west_block.py | Tee-Object -FilePath block.log
if ($LASTEXITCODE -ne 0) { Write-Host "FAIL: east_west_block exited $LASTEXITCODE"; exit 1 }
$log = Get-Content block.log -Raw
if ($log -notmatch '0 differ') { Write-Host "FAIL: block verification did not report 0 differ"; exit 1 }
if ($log -notmatch '19\.80 kW DC a string') { Write-Host "FAIL: the reference block figures changed"; exit 1 }
Write-Host "PASS: the reference block still reproduces 19.80 kW a string"
- name: Farm model, both machine classes
shell: powershell
working-directory: gpu-repo/engine
run: |
python farm.py --inverters 1000 | Tee-Object -FilePath farm352.log
if ((Get-Content farm352.log -Raw) -notmatch '475\.20 MWp') { Write-Host "FAIL: the 352 kVA farm total changed"; exit 1 }
python farm.py --class 500 --inverters 1000 --solve-dcac 1.35 | Tee-Object -FilePath farm500.log
if ((Get-Content farm500.log -Raw) -notmatch '673\.20 MWp') { Write-Host "FAIL: the 500 kW farm total changed"; exit 1 }
Write-Host "PASS: both farm classes reproduce their totals"
- name: Record the run
if: always()
shell: powershell
working-directory: gpu-repo/engine
run: |
Write-Host "--- engine ---"
if (Test-Path engine.log) { Get-Content engine.log -Tail 20 } else { Write-Host "(no engine log)" }
Write-Host "--- block ---"
if (Test-Path block.log) { Get-Content block.log -Tail 12 } else { Write-Host "(no block log)" }GlobalGrid2050 Gridbot Feature Install Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot-feature-install.yml · lines 1–83 of 83 · Entry point
- What it does
- It runs solar and battery storage (BESS). Side effects: starts processes.
- Why it exists in the grid workflow
- Domain terms in the code: solar, battery storage (BESS).
- 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 Gridbot Feature Installer (`scripts/gridbot_feature_installer.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 Gridbot Feature Installer (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Feature Install
- 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/gridbot-feature-install.yml:1-83 · blob 727f977a641cf3857f14a56493c710166e0cc329 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: EPC_contractor · canonical: production_core
name: GridBot Feature Install
on:
workflow_dispatch:
inputs:
source:
description: Source version folder
required: true
default: solar-bess-topology-v2
target:
description: Target version folder
required: true
default: solar-bess-topology-v2
feature:
description: Optional single feature folder name
required: false
default: ""
overwrite:
description: Overwrite target folder if target is different from source
required: true
type: boolean
default: false
permissions:
contents: write
jobs:
gridbot-feature-install:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GRIDBOT_PAT }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Run GridBot Feature Installer
shell: bash
run: |
EXTRA_ARGS=""
if [ -n "${{ github.event.inputs.feature }}" ]; then
EXTRA_ARGS="$EXTRA_ARGS --feature ${{ github.event.inputs.feature }}"
fi
if [ "${{ github.event.inputs.overwrite }}" = "true" ]; then
EXTRA_ARGS="$EXTRA_ARGS --overwrite"
fi
python scripts/gridbot_feature_installer.py \
--source "${{ github.event.inputs.source }}" \
--target "${{ github.event.inputs.target }}" \
--features-root feature_requests \
$EXTRA_ARGS \
--run-tests
- name: Commit and push changes
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
git add .
if [ -n "$(git status --porcelain)" ]; then
git commit -m "GridBot feature install: $(date -u +'%Y-%m-%d %H:%M UTC')"
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
else
echo "No changes to commit"
fiGlobalGrid2050 Gridbot App Repo Bootstrap Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_app_repo_bootstrap.yml · lines 1–93 of 93 · 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 Gridbot App Repo Bootstrap (`scripts/gridbot_app_repo_bootstrap.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 Gridbot App Repo Bootstrap (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot App Repo Bootstrap
- 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/gridbot_app_repo_bootstrap.yml:1-93 · blob e954a3f9539f7f79b35d3257f062455514084346 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: GridBot App Repo Bootstrap
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
repo_set:
description: Repository set to audit or create
required: true
default: generation_history
type: choice
options:
- generation_history
- core_apps
- all
visibility:
description: New repository visibility
required: true
default: public
type: choice
options:
- public
- private
owner:
description: Target owner or org
required: true
default: Ventusltd
commit_reports:
description: Commit audit/apply reports
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-app-repo-bootstrap-${{ github.event.inputs.repo_set }}
cancel-in-progress: false
jobs:
app-repo-bootstrap:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Run app repo bootstrap
env:
GRIDBOT_PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
python scripts/gridbot_app_repo_bootstrap.py \
--mode "${{ github.event.inputs.mode }}" \
--repo-set "${{ github.event.inputs.repo_set }}" \
--visibility "${{ github.event.inputs.visibility }}" \
--owner "${{ github.event.inputs.owner }}"
- name: Upload bootstrap report
uses: actions/upload-artifact@v4
with:
name: app-repo-bootstrap-${{ github.event.inputs.mode }}-${{ github.event.inputs.repo_set }}
path: |
data_science_protocol/audit_reports/APP_REPO_BOOTSTRAP_LATEST.md
data_science_protocol/audit_reports/json/APP_REPO_BOOTSTRAP_LATEST.json
- name: Commit bootstrap report
if: ${{ github.event.inputs.commit_reports == 'true' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_app_repo_bootstrap.py
git add .github/workflows/gridbot_app_repo_bootstrap.yml
git add data_science_protocol/audit_reports/APP_REPO_BOOTSTRAP_LATEST.md
git add data_science_protocol/audit_reports/json/APP_REPO_BOOTSTRAP_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: app repo bootstrap ${{ github.event.inputs.mode }} ${{ github.event.inputs.repo_set }}"
git pull --rebase origin main
git push origin HEAD:main
fiGlobalGrid2050 Gridbot Audit Process Documentation Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_audit_process_documentation.yml · lines 1–93 of 93 · 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 Gridbot Document Audit Process (`scripts/gridbot_document_audit_process.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 Gridbot Document Audit Process (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Audit Process Documentation
- 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/gridbot_audit_process_documentation.yml:1-93 · blob 6add515aa8c6255fd6e5f2ae957dea17ca05efdb · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: GridBot Audit Process Documentation
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
commit_reports:
description: Commit audit reports and documentation changes
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-audit-process-documentation
cancel-in-progress: false
jobs:
document-audit-process:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Run audit
if: ${{ github.event.inputs.mode == 'audit' }}
run: python scripts/gridbot_document_audit_process.py
- name: Run apply
if: ${{ github.event.inputs.mode == 'apply' }}
run: python scripts/gridbot_document_audit_process.py --apply
- name: Upload audit process documentation report
uses: actions/upload-artifact@v4
with:
name: audit-process-documentation-report-${{ github.event.inputs.mode }}
path: |
data_science_protocol/audit_reports/AUDIT_PROCESS_DOCUMENTATION_LATEST.md
data_science_protocol/audit_reports/json/AUDIT_PROCESS_DOCUMENTATION_LATEST.json
- name: Commit audit report only
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_document_audit_process.py
git add .github/workflows/gridbot_audit_process_documentation.yml
git add data_science_protocol/audit_reports/AUDIT_PROCESS_DOCUMENTATION_LATEST.md
git add data_science_protocol/audit_reports/json/AUDIT_PROCESS_DOCUMENTATION_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: audit process documentation audit"
git pull --rebase origin main
git push origin HEAD:main
fi
- name: Commit documentation and apply report
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_document_audit_process.py
git add .github/workflows/gridbot_audit_process_documentation.yml
git add data_science_protocol/AUDIT_PROCESS_AND_REPORTING_REQUIREMENTS.md
git add data_science_protocol/templates/AUDIT_REPORT_TEMPLATE.md
git add data_science_protocol/templates/AUDIT_REPORT_TEMPLATE.json
git add gridbot_manifests/AUDIT_MANIFEST_REQUIREMENTS.md
git add .github/workflows/README_GRIDBOT_AUDIT_WORKFLOWS.md
git add scripts/README_GRIDBOT_AUDIT_REQUIREMENTS.md
git add data_science_protocol/audit_reports/AUDIT_PROCESS_DOCUMENTATION_LATEST.md
git add data_science_protocol/audit_reports/json/AUDIT_PROCESS_DOCUMENTATION_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: audit process documentation apply"
git pull --rebase origin main
git push origin HEAD:main
fiGlobalGrid2050 Gridbot Bulk Data Workflow Freeze Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_bulk_data_workflow_freeze.yml · lines 1–88 of 88 · 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 Gridbot Bulk Data Workflow Freeze (`scripts/gridbot_bulk_data_workflow_freeze.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 Gridbot Bulk Data Workflow Freeze (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Bulk Data Workflow Freeze
- 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/gridbot_bulk_data_workflow_freeze.yml:1-88 · blob b6cae30da744f1a08588326eb52b378d9493a2ea · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: GridBot Bulk Data Workflow Freeze
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
commit_reports:
description: Commit reports and apply target changes when mode is apply
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-bulk-data-workflow-freeze
cancel-in-progress: false
jobs:
bulk-data-workflow-freeze:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Run audit
if: ${{ github.event.inputs.mode == 'audit' }}
run: python scripts/gridbot_bulk_data_workflow_freeze.py
- name: Run apply
if: ${{ github.event.inputs.mode == 'apply' }}
run: python scripts/gridbot_bulk_data_workflow_freeze.py --apply
- name: Upload freeze report
uses: actions/upload-artifact@v4
with:
name: bulk-data-workflow-freeze-${{ github.event.inputs.mode }}
path: |
data_science_protocol/audit_reports/BULK_DATA_WORKFLOW_FREEZE_LATEST.md
data_science_protocol/audit_reports/json/BULK_DATA_WORKFLOW_FREEZE_LATEST.json
- name: Commit audit report only
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_bulk_data_workflow_freeze.py
git add .github/workflows/gridbot_bulk_data_workflow_freeze.yml
git add data_science_protocol/audit_reports/BULK_DATA_WORKFLOW_FREEZE_LATEST.md
git add data_science_protocol/audit_reports/json/BULK_DATA_WORKFLOW_FREEZE_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: bulk data workflow freeze audit"
git pull --rebase origin main
git push origin HEAD:main
fi
- name: Commit apply changes and report
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_bulk_data_workflow_freeze.py
git add .github/workflows/gridbot_bulk_data_workflow_freeze.yml
git add .github/workflows/backfill_generation_fuelhh_halfhourly_v6.yml
git add data_science_protocol/audit_reports/BULK_DATA_WORKFLOW_FREEZE_LATEST.md
git add data_science_protocol/audit_reports/json/BULK_DATA_WORKFLOW_FREEZE_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: bulk data workflow freeze apply"
git pull --rebase origin main
git push origin HEAD:main
fiGlobalGrid2050 Gridbot Daily MWh Multi Technology Wiring Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_daily_mwh_multi_technology_wiring.yml · lines 1–91 of 91 · 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 Gridbot Daily MWh Multi Technology Wiring (`scripts/gridbot_daily_mwh_multi_technology_wiring.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 Gridbot Daily MWh Multi Technology Wiring (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Daily MWh Multi Technology Wiring
- 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/gridbot_daily_mwh_multi_technology_wiring.yml:1-91 · blob bcfc28f020c8ee224343222c4f8bc0a32208fd7f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: GridBot Daily MWh Multi Technology Wiring
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
commit_reports:
description: Commit reports and wiring changes
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-daily-mwh-multi-technology-wiring
cancel-in-progress: false
jobs:
daily-mwh-multi-technology-wiring:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Sync latest main before processing
run: git pull --ff-only origin main
- name: Run audit
if: ${{ github.event.inputs.mode == 'audit' }}
run: python scripts/gridbot_daily_mwh_multi_technology_wiring.py
- name: Run apply
if: ${{ github.event.inputs.mode == 'apply' }}
run: python scripts/gridbot_daily_mwh_multi_technology_wiring.py --apply
- name: Upload wiring report
uses: actions/upload-artifact@v4
with:
name: daily-mwh-multi-technology-wiring-${{ github.event.inputs.mode }}
path: |
data_science_protocol/audit_reports/DAILY_MWH_MULTI_TECH_WIRING_LATEST.md
data_science_protocol/audit_reports/json/DAILY_MWH_MULTI_TECH_WIRING_LATEST.json
- name: Commit audit report only
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_daily_mwh_multi_technology_wiring.py
git add .github/workflows/gridbot_daily_mwh_multi_technology_wiring.yml
git add data_science_protocol/audit_reports/DAILY_MWH_MULTI_TECH_WIRING_LATEST.md
git add data_science_protocol/audit_reports/json/DAILY_MWH_MULTI_TECH_WIRING_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: daily mwh multi technology wiring audit"
git push origin HEAD:main
fi
- name: Commit wiring changes and report
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_daily_mwh_multi_technology_wiring.py
git add .github/workflows/gridbot_daily_mwh_multi_technology_wiring.yml
git add uk_energy_tracking_v6/generation_history/index.md
git add uk_energy_tracking_v6/generation_history/control_solar_daily_mwh_chart.js
git add uk_energy_tracking_v6/generation_history/render_solar_daily_mwh_chart.js
git add data_science_protocol/audit_reports/DAILY_MWH_MULTI_TECH_WIRING_LATEST.md
git add data_science_protocol/audit_reports/json/DAILY_MWH_MULTI_TECH_WIRING_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: daily mwh multi technology wiring apply"
git push origin HEAD:main
fiGlobalGrid2050 Gridbot Daily MWh Seasonal Colouring Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_daily_mwh_seasonal_colouring.yml · lines 1–90 of 90 · 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 Gridbot Daily MWh Seasonal Colouring (`scripts/gridbot_daily_mwh_seasonal_colouring.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 Gridbot Daily MWh Seasonal Colouring (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Daily MWh Seasonal Colouring
- 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/gridbot_daily_mwh_seasonal_colouring.yml:1-90 · blob 743987eac882bb90ef97c2b046e386119da1bdcd · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: GridBot Daily MWh Seasonal Colouring
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
commit_reports:
description: Commit reports and seasonal colouring changes
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-daily-mwh-seasonal-colouring
cancel-in-progress: false
jobs:
daily-mwh-seasonal-colouring:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Sync latest main before processing
run: git pull --ff-only origin main
- name: Run audit
if: ${{ github.event.inputs.mode == 'audit' }}
run: python scripts/gridbot_daily_mwh_seasonal_colouring.py
- name: Run apply
if: ${{ github.event.inputs.mode == 'apply' }}
run: python scripts/gridbot_daily_mwh_seasonal_colouring.py --apply
- name: Upload seasonal colouring report
uses: actions/upload-artifact@v4
with:
name: daily-mwh-seasonal-colouring-${{ github.event.inputs.mode }}
path: |
data_science_protocol/audit_reports/DAILY_MWH_SEASONAL_COLOURING_LATEST.md
data_science_protocol/audit_reports/json/DAILY_MWH_SEASONAL_COLOURING_LATEST.json
- name: Commit audit report only
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_daily_mwh_seasonal_colouring.py
git add .github/workflows/gridbot_daily_mwh_seasonal_colouring.yml
git add data_science_protocol/audit_reports/DAILY_MWH_SEASONAL_COLOURING_LATEST.md
git add data_science_protocol/audit_reports/json/DAILY_MWH_SEASONAL_COLOURING_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: daily mwh seasonal colouring audit"
git push origin HEAD:main
fi
- name: Commit seasonal colouring changes and report
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_daily_mwh_seasonal_colouring.py
git add .github/workflows/gridbot_daily_mwh_seasonal_colouring.yml
git add uk_energy_tracking_v6/generation_history/render_solar_daily_mwh_chart.js
git add uk_energy_tracking_v6/generation_history/index.md
git add data_science_protocol/audit_reports/DAILY_MWH_SEASONAL_COLOURING_LATEST.md
git add data_science_protocol/audit_reports/json/DAILY_MWH_SEASONAL_COLOURING_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: daily mwh seasonal colouring apply"
git push origin HEAD:main
fi