mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-08 13:01:52 +00:00
fe4a9c1425
- plan/modules.toml -> plan/units/<id>.toml (scripts/units-split.py), read everywhere through harness/plan/units.py (Python) and crates/difftest/src/plan.rs (difftest). - reports/difftest/ untracked and gitignored: CI uploads main's set as the difftest-reports artifact; scripts/fetch-reports.sh downloads it for the progress checklist, the site and the --jobs queue order (fixture-size fallback otherwise). - .gitattributes: merge=union for plan/findings.md and plan/upstream-issues.md. - scripts/units-migrate-branch.sh moves an old branch's modules.toml edits into the unit files after it merges main. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
66 lines
2.3 KiB
YAML
66 lines
2.3 KiB
YAML
name: Progress checklist
|
|
|
|
# Regenerates plan/PROGRESS.md from plan/units/*.toml, main's difftest reports (CI
|
|
# artifact, scripts/fetch-reports.sh) and open "port: <unit id>" PRs, and commits it
|
|
# to main when it changed. PRs never edit PROGRESS.md themselves.
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- plan/units/**
|
|
- harness/plan/progress.py
|
|
- harness/plan/units.py
|
|
- harness/plan/test_progress.py
|
|
workflow_run: # main's CI uploaded fresh reports (case counts)
|
|
workflows: ["CI"]
|
|
types: [completed]
|
|
branches: [main]
|
|
pull_request_target:
|
|
types: [opened, reopened, closed, edited, ready_for_review, converted_to_draft]
|
|
schedule:
|
|
- cron: "17 * * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: read
|
|
actions: read # download main's difftest-reports artifact
|
|
|
|
concurrency:
|
|
group: progress
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
progress:
|
|
runs-on: blacksmith-2vcpu-ubuntu-2404
|
|
steps:
|
|
# Always main: never check out or run PR code with a write token.
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 (pinned: this job has contents: write)
|
|
with:
|
|
ref: main
|
|
fetch-depth: 0 # fetch-reports.sh falls back to the last committed reports
|
|
- name: Test progress generator
|
|
run: python3 -m unittest discover -s harness/plan -p 'test_*.py'
|
|
- name: Fetch main's difftest reports
|
|
id: reports
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
if scripts/fetch-reports.sh; then echo "ok=true" >> "$GITHUB_OUTPUT"
|
|
else echo "No reports: keeping PROGRESS.md (case counts would be lost)."; fi
|
|
- name: Regenerate
|
|
if: steps.reports.outputs.ok == 'true'
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: python3 harness/plan/progress.py --prs
|
|
- name: Commit if changed
|
|
if: steps.reports.outputs.ok == 'true'
|
|
run: |
|
|
if git diff --quiet -- plan/PROGRESS.md; then echo "unchanged"; exit 0; fi
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add plan/PROGRESS.md
|
|
git commit -m "plan/PROGRESS.md: regenerate [skip ci]"
|
|
git pull --rebase origin main
|
|
git push origin HEAD:main
|