livingproof-capability-report 5.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- livingproof_capability_report-5.0.5/.devcontainer/devcontainer.json +34 -0
- livingproof_capability_report-5.0.5/.dockerignore +6 -0
- livingproof_capability_report-5.0.5/.github/PAGES.md +40 -0
- livingproof_capability_report-5.0.5/.github/workflows/development.yml +44 -0
- livingproof_capability_report-5.0.5/.github/workflows/documentation-build.yml +153 -0
- livingproof_capability_report-5.0.5/.github/workflows/documentation-deploy.yml +194 -0
- livingproof_capability_report-5.0.5/.github/workflows/documentation.yml +69 -0
- livingproof_capability_report-5.0.5/.github/workflows/publish-pypi.yml +92 -0
- livingproof_capability_report-5.0.5/.github/workflows/queue-pypi.yml +60 -0
- livingproof_capability_report-5.0.5/.github/workflows/recover-registry.yml +89 -0
- livingproof_capability_report-5.0.5/.github/workflows/verify-saved-release.yml +131 -0
- livingproof_capability_report-5.0.5/.github/workflows/verify.yml +695 -0
- livingproof_capability_report-5.0.5/.gitignore +9 -0
- livingproof_capability_report-5.0.5/AGENTS.md +14 -0
- livingproof_capability_report-5.0.5/CONTRIBUTING.md +37 -0
- livingproof_capability_report-5.0.5/Dockerfile +21 -0
- livingproof_capability_report-5.0.5/LICENSE +73 -0
- livingproof_capability_report-5.0.5/NOTICE +6 -0
- livingproof_capability_report-5.0.5/PKG-INFO +669 -0
- livingproof_capability_report-5.0.5/README.md +655 -0
- livingproof_capability_report-5.0.5/Taskfile.yml +84 -0
- livingproof_capability_report-5.0.5/compose.yml +17 -0
- livingproof_capability_report-5.0.5/docs/api.md +125 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/compare-dark.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/compare-light.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/compare-mark-open.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/compare-mobile.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/fixtures-mark-open.html +1242 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/fixtures.html +1388 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/g1-expanded-dark.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/g1-expanded-light.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/g1-expanded-mobile.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/g1-expanded.html +10197 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/agent.svg +1 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/health.svg +1 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/human.svg +1 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/integrity.svg +1 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/scenario.svg +1 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/source/agent-review-icon.svg +4 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/source/human-review-icon.svg +7 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/source/robot-health-icon.svg +6 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/source/roboto-icon.svg +5 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/source/run-integrity-icon.svg +5 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/icons/source/scenario-evaluator-icon.svg +11 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/mock-dark.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/mock-light.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/mock-mark-open.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/mock-mobile.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-fail-desktop-closed.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-fail-desktop-open.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-fail-mobile-closed.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-fail-mobile-open-scrolled.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-fail-mobile-open.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-pass-desktop-closed.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-pass-desktop-open.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-pass-mobile-closed.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-pass-mobile-open-scrolled.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-pass-mobile-open.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-58-states.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-dark.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-light.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-mark-open.png +0 -0
- livingproof_capability_report-5.0.5/docs/evaluator-summary/rendered-mobile.png +0 -0
- livingproof_capability_report-5.0.5/docs/license.md +18 -0
- livingproof_capability_report-5.0.5/docs/pypi-publication.md +86 -0
- livingproof_capability_report-5.0.5/docs/site/mkdocs.yml +30 -0
- livingproof_capability_report-5.0.5/docs/verification.md +97 -0
- livingproof_capability_report-5.0.5/docs/viewer-page-composition.md +92 -0
- livingproof_capability_report-5.0.5/docs-brand.lock.json +7 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-01.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-02.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-03.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-04.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-05.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-06.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-07.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-08.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-09.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-10.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-11.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-12.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-13.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-14.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-15.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-16.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-17.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-18.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-19.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/evidence/stock-seed-20.json +1 -0
- livingproof_capability_report-5.0.5/examples/bundle/manifest.json +3723 -0
- livingproof_capability_report-5.0.5/hatch_build.py +23 -0
- livingproof_capability_report-5.0.5/pyproject.toml +44 -0
- livingproof_capability_report-5.0.5/renovate.json +11 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/__init__.py +16 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/__main__.py +3 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/_build_provenance.json +14 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/assessed.py +192 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/bundle.schema.json +226 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/cli.py +411 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/comment.py +73 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/core.py +596 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/evaluators.py +1804 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/fonts/DMSans-latin-ext.woff2 +0 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/fonts/DMSans-latin.woff2 +0 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/fonts/OFL.txt +93 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/html_theme.py +1669 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/legacy_evidence.py +145 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/links.py +418 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/narrative.py +342 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/pinned_inputs.py +49 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/presentation.py +85 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/provenance.py +37 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/sections.py +308 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/site/__init__.py +27 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/site/assemble.py +2011 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/site/assets/open.js +125 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/site/assets/styles.css +681 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/site/check.py +78 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/site/common.py +103 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/site/details.py +97 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/site/pages.py +1384 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/steps.py +859 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/svg_icon.py +122 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/trial_binding.py +17 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/trusted_viewer.py +222 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/version.py +17 -0
- livingproof_capability_report-5.0.5/src/livingproof_capability_report/viewer_page.py +187 -0
- livingproof_capability_report-5.0.5/tests/docs/published-anchors.json +71 -0
- livingproof_capability_report-5.0.5/tests/docs/test_brand.py +28 -0
- livingproof_capability_report-5.0.5/tests/docs/test_manual.py +314 -0
- livingproof_capability_report-5.0.5/tests/features/test_installed.py +91 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/PROVENANCE.md +31 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/battery-thermal/notes.txt +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/battery-thermal/result.json +49 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/example-observation/result.json +56 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/gait-noise/result.json +33 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/no-media/not-run.json +6 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/defs.schema.json +81 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/descriptor.schema.json +170 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/evaluator-result.schema.json +296 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/integrity/checks/ci-publisher.schema.json +79 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/integrity/checks/completeness.schema.json +40 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/integrity/checks/pins.schema.json +61 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/integrity/checks/plan-conformance.schema.json +111 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/integrity/checks/recording.schema.json +207 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/integrity/checks/same-input-agreement.schema.json +51 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/integrity/checks/termination.schema.json +81 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/integrity/result.schema.json +432 -0
- livingproof_capability_report-5.0.5/tests/fixtures/advisory/schema/scenario/result.schema.json +60 -0
- livingproof_capability_report-5.0.5/tests/fixtures/corner/g1-stock/PROVENANCE.md +10 -0
- livingproof_capability_report-5.0.5/tests/fixtures/corner/g1-stock/evidence/trial-01.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/corner/g1-stock/manifest.json +676 -0
- livingproof_capability_report-5.0.5/tests/fixtures/evaluator-result-scenario.json +68 -0
- livingproof_capability_report-5.0.5/tests/fixtures/evaluator-run-92-smoke/report.html +2542 -0
- livingproof_capability_report-5.0.5/tests/fixtures/evaluator-run-92-smoke/report.json +962 -0
- livingproof_capability_report-5.0.5/tests/fixtures/hallway-2.0.0/evidence/trial-01.json +47 -0
- livingproof_capability_report-5.0.5/tests/fixtures/hallway-2.0.0/evidence/trial-02.json +53 -0
- livingproof_capability_report-5.0.5/tests/fixtures/hallway-2.0.0/evidence/trial-03.json +47 -0
- livingproof_capability_report-5.0.5/tests/fixtures/hallway-2.0.0/manifest.json +1040 -0
- livingproof_capability_report-5.0.5/tests/fixtures/hallway-expected/evidence-links.json +43 -0
- livingproof_capability_report-5.0.5/tests/fixtures/hallway-expected/report-with-links.md +53 -0
- livingproof_capability_report-5.0.5/tests/fixtures/hallway-expected/report-without-bundle.json +507 -0
- livingproof_capability_report-5.0.5/tests/fixtures/hallway-expected/report.md +49 -0
- livingproof_capability_report-5.0.5/tests/fixtures/integrity/all-not-applicable.json +83 -0
- livingproof_capability_report-5.0.5/tests/fixtures/integrity/failed.json +80 -0
- livingproof_capability_report-5.0.5/tests/fixtures/integrity/scenario.json +73 -0
- livingproof_capability_report-5.0.5/tests/fixtures/integrity/success.json +65 -0
- livingproof_capability_report-5.0.5/tests/fixtures/mock-reports/README.md +12 -0
- livingproof_capability_report-5.0.5/tests/fixtures/reading-guide/run-integrity-heading.html +10 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/disagreeing/evidence/trial-01.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/disagreeing/evidence/trial-02.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/disagreeing/evidence/trial-03.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/disagreeing/manifest.json +1351 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/identical/evidence/trial-01.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/identical/evidence/trial-02.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/identical/evidence/trial-03.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/identical/manifest.json +1105 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/pause/evidence/pass.json +16 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/pause/manifest.json +562 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/robot-fail/evidence/trial-01.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/robot-fail/evidence/trial-02.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/robot-fail/evidence/trial-03.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/robot-fail/manifest.json +1413 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/seeded/evidence/trial-04.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/seeded/evidence/trial-05.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/seeded/evidence/trial-06.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/seeded/manifest.json +1051 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/single/evidence/trial-01.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/repeats/single/manifest.json +510 -0
- livingproof_capability_report-5.0.5/tests/fixtures/reporter/report-v3.15.4.html +5636 -0
- livingproof_capability_report-5.0.5/tests/fixtures/reporter/report-v3.17.0-g1-evidence-links.html +2228 -0
- livingproof_capability_report-5.0.5/tests/fixtures/robots/g1-bundle.json.gz +0 -0
- livingproof_capability_report-5.0.5/tests/fixtures/robots/g1.html +1497 -0
- livingproof_capability_report-5.0.5/tests/fixtures/robots/g1.md +53 -0
- livingproof_capability_report-5.0.5/tests/fixtures/robots/go1-bundle.json.gz +0 -0
- livingproof_capability_report-5.0.5/tests/fixtures/robots/go1.html +1497 -0
- livingproof_capability_report-5.0.5/tests/fixtures/robots/go1.md +48 -0
- livingproof_capability_report-5.0.5/tests/fixtures/robots/t1-bundle.json.gz +0 -0
- livingproof_capability_report-5.0.5/tests/fixtures/robots/t1.html +1497 -0
- livingproof_capability_report-5.0.5/tests/fixtures/robots/t1.md +97 -0
- livingproof_capability_report-5.0.5/tests/fixtures/scenario-description/SOURCE.json +7 -0
- livingproof_capability_report-5.0.5/tests/fixtures/scenario-description/scenario-description.schema.json +321 -0
- livingproof_capability_report-5.0.5/tests/fixtures/scenario-description/walk-corner.description.json +84 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/PROVENANCE.md +20 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/SHA256SUMS +18 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/evidence/evidence-ending.json +10 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/evidence/manifest.json +624 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/evidence/mcap/mcap/trial-01.binding.json +62 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/evidence/mcap/mcap/trial-01.mcap +0 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/evidence/mcap/mcap/trial-01.robot.mcap +0 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/evidence/mcap/media.json +32 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/evidence/run-manifest.json +44 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/evidence/trials/trial-01.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/evidence/verifier-image.json +13 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/evidence/video/trial-01-fail.mp4 +0 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/health.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/index.html +2422 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/report.html +2422 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/report.json +1202 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/report.md +51 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/report.txt +28 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/run.json +355 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-g1-history/unitree-g1/stock-mujoco-hallway/runs/45754832566/thresholds.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-golden/SHA256SUMS +54 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-golden/g1-history.SHA256SUMS +32 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-golden/real-g1-46122371783.SHA256SUMS +25 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/SHA256SUMS +17 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/evidence/evidence-ending.json +10 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/evidence/manifest.json +624 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/evidence/mcap/mcap/trial-01.binding.json +62 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/evidence/mcap/mcap/trial-01.mcap +0 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/evidence/mcap/mcap/trial-01.robot.mcap +0 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/evidence/mcap/media.json +32 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/evidence/run-manifest.json +44 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/evidence/trials/trial-01.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/evidence/verifier-image.json +13 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/evidence/video/trial-01-fail.mp4 +0 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/health.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/report.html +2517 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/report.json +1118 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/report.md +52 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/report.txt +29 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/run.json +175 -0
- livingproof_capability_report-5.0.5/tests/fixtures/site-real-g1/46122371783/unitree-g1-stock-mujoco-hallway/stock/thresholds.json +1 -0
- livingproof_capability_report-5.0.5/tests/fixtures/v3.7.0/g1.html +1371 -0
- livingproof_capability_report-5.0.5/tests/fixtures/v3.7.0/g1.md +53 -0
- livingproof_capability_report-5.0.5/tests/fixtures/v3.7.0/go1.html +1371 -0
- livingproof_capability_report-5.0.5/tests/fixtures/v3.7.0/go1.md +48 -0
- livingproof_capability_report-5.0.5/tests/fixtures/v3.7.0/t1.html +1371 -0
- livingproof_capability_report-5.0.5/tests/fixtures/v3.7.0/t1.md +97 -0
- livingproof_capability_report-5.0.5/tests/fixtures/verifier-v1.1.1/report.json +1453 -0
- livingproof_capability_report-5.0.5/tests/provenance_snapshot.py +22 -0
- livingproof_capability_report-5.0.5/tests/site_fixture.py +231 -0
- livingproof_capability_report-5.0.5/tests/test_advisory.py +630 -0
- livingproof_capability_report-5.0.5/tests/test_apt_job_timeouts.py +54 -0
- livingproof_capability_report-5.0.5/tests/test_apt_resilience.py +296 -0
- livingproof_capability_report-5.0.5/tests/test_apt_resilience_docker.py +87 -0
- livingproof_capability_report-5.0.5/tests/test_apt_resilience_safety.py +134 -0
- livingproof_capability_report-5.0.5/tests/test_assessed.py +432 -0
- livingproof_capability_report-5.0.5/tests/test_card_heading_is_stored_capability.py +33 -0
- livingproof_capability_report-5.0.5/tests/test_card_scope_words.py +69 -0
- livingproof_capability_report-5.0.5/tests/test_card_title_from_descriptor.py +36 -0
- livingproof_capability_report-5.0.5/tests/test_cards_without_grade.py +67 -0
- livingproof_capability_report-5.0.5/tests/test_checklist_follow_up.py +111 -0
- livingproof_capability_report-5.0.5/tests/test_comment.py +55 -0
- livingproof_capability_report-5.0.5/tests/test_commit_labels.py +173 -0
- livingproof_capability_report-5.0.5/tests/test_common_dependency.py +125 -0
- livingproof_capability_report-5.0.5/tests/test_corner_steps.py +51 -0
- livingproof_capability_report-5.0.5/tests/test_debian_evidence.py +107 -0
- livingproof_capability_report-5.0.5/tests/test_deploy_freshness_auth.py +392 -0
- livingproof_capability_report-5.0.5/tests/test_development_environment.py +43 -0
- livingproof_capability_report-5.0.5/tests/test_docs_delivery.py +185 -0
- livingproof_capability_report-5.0.5/tests/test_docs_every_main_push.py +509 -0
- livingproof_capability_report-5.0.5/tests/test_docs_main_push_conditions.py +186 -0
- livingproof_capability_report-5.0.5/tests/test_evaluator_anchor.py +263 -0
- livingproof_capability_report-5.0.5/tests/test_evaluator_cards.py +978 -0
- livingproof_capability_report-5.0.5/tests/test_evaluator_details_row.py +276 -0
- livingproof_capability_report-5.0.5/tests/test_evaluator_markdown.py +87 -0
- livingproof_capability_report-5.0.5/tests/test_evaluator_source_label.py +214 -0
- livingproof_capability_report-5.0.5/tests/test_evaluator_summary.py +289 -0
- livingproof_capability_report-5.0.5/tests/test_evaluator_summary_states.py +553 -0
- livingproof_capability_report-5.0.5/tests/test_evidence_expired.py +98 -0
- livingproof_capability_report-5.0.5/tests/test_generic_facts.py +138 -0
- livingproof_capability_report-5.0.5/tests/test_generic_facts_identity.py +99 -0
- livingproof_capability_report-5.0.5/tests/test_guidelines_pins.py +204 -0
- livingproof_capability_report-5.0.5/tests/test_hallway.py +191 -0
- livingproof_capability_report-5.0.5/tests/test_header_label.py +112 -0
- livingproof_capability_report-5.0.5/tests/test_header_label_lossless_path.py +53 -0
- livingproof_capability_report-5.0.5/tests/test_html_theme.py +122 -0
- livingproof_capability_report-5.0.5/tests/test_input_guidance.py +131 -0
- livingproof_capability_report-5.0.5/tests/test_integrity_checklist.py +448 -0
- livingproof_capability_report-5.0.5/tests/test_integrity_checklist_edges.py +111 -0
- livingproof_capability_report-5.0.5/tests/test_integrity_error_mark.py +72 -0
- livingproof_capability_report-5.0.5/tests/test_integrity_glossary_link.py +231 -0
- livingproof_capability_report-5.0.5/tests/test_integrity_inconclusive.py +90 -0
- livingproof_capability_report-5.0.5/tests/test_integrity_inconclusive_mark.py +41 -0
- livingproof_capability_report-5.0.5/tests/test_integrity_summary.py +164 -0
- livingproof_capability_report-5.0.5/tests/test_integrity_summary_review.py +29 -0
- livingproof_capability_report-5.0.5/tests/test_integrity_verdict_band.py +232 -0
- livingproof_capability_report-5.0.5/tests/test_legacy_source_near_misses.py +201 -0
- livingproof_capability_report-5.0.5/tests/test_legacy_source_restore.py +335 -0
- livingproof_capability_report-5.0.5/tests/test_mock_evaluator_boundary.py +31 -0
- livingproof_capability_report-5.0.5/tests/test_mock_evaluator_cards.py +99 -0
- livingproof_capability_report-5.0.5/tests/test_mock_reports_labels.py +161 -0
- livingproof_capability_report-5.0.5/tests/test_mock_reports_plain_evaluators.py +62 -0
- livingproof_capability_report-5.0.5/tests/test_mock_reports_site.py +117 -0
- livingproof_capability_report-5.0.5/tests/test_mock_reports_trust_facts.py +36 -0
- livingproof_capability_report-5.0.5/tests/test_no_trial_failure_wording.py +63 -0
- livingproof_capability_report-5.0.5/tests/test_no_why_trials_failed.py +26 -0
- livingproof_capability_report-5.0.5/tests/test_no_worst_value_table.py +40 -0
- livingproof_capability_report-5.0.5/tests/test_optional_debian_workflow.py +133 -0
- livingproof_capability_report-5.0.5/tests/test_pinned_inputs.py +157 -0
- livingproof_capability_report-5.0.5/tests/test_pinned_inputs_action_parity.py +97 -0
- livingproof_capability_report-5.0.5/tests/test_pinned_inputs_edges.py +132 -0
- livingproof_capability_report-5.0.5/tests/test_plugin.py +19 -0
- livingproof_capability_report-5.0.5/tests/test_post_release.py +459 -0
- livingproof_capability_report-5.0.5/tests/test_presentation_api.py +148 -0
- livingproof_capability_report-5.0.5/tests/test_public_viewer_surface.py +82 -0
- livingproof_capability_report-5.0.5/tests/test_publish.py +280 -0
- livingproof_capability_report-5.0.5/tests/test_pypi_handoff.py +210 -0
- livingproof_capability_report-5.0.5/tests/test_pypi_preparation.py +228 -0
- livingproof_capability_report-5.0.5/tests/test_registry_gate_review.py +92 -0
- livingproof_capability_report-5.0.5/tests/test_registry_release.py +154 -0
- livingproof_capability_report-5.0.5/tests/test_registry_render_smoke.py +107 -0
- livingproof_capability_report-5.0.5/tests/test_release_assets.py +438 -0
- livingproof_capability_report-5.0.5/tests/test_release_upload.py +74 -0
- livingproof_capability_report-5.0.5/tests/test_report_footer.py +61 -0
- livingproof_capability_report-5.0.5/tests/test_reporting.py +173 -0
- livingproof_capability_report-5.0.5/tests/test_reproducibility.py +412 -0
- livingproof_capability_report-5.0.5/tests/test_root_installation.py +76 -0
- livingproof_capability_report-5.0.5/tests/test_run_page_narrow_trials.py +327 -0
- livingproof_capability_report-5.0.5/tests/test_run_timestamps.py +291 -0
- livingproof_capability_report-5.0.5/tests/test_scenario_neutral.py +301 -0
- livingproof_capability_report-5.0.5/tests/test_scenario_steps.py +348 -0
- livingproof_capability_report-5.0.5/tests/test_sections.py +281 -0
- livingproof_capability_report-5.0.5/tests/test_site.py +2465 -0
- livingproof_capability_report-5.0.5/tests/test_site_advisory_only.py +88 -0
- livingproof_capability_report-5.0.5/tests/test_site_advisory_placeholder.py +59 -0
- livingproof_capability_report-5.0.5/tests/test_site_checksum_temporary_literals.py +38 -0
- livingproof_capability_report-5.0.5/tests/test_site_cli.py +201 -0
- livingproof_capability_report-5.0.5/tests/test_site_guard_gaps_round2.py +107 -0
- livingproof_capability_report-5.0.5/tests/test_site_integrity_only.py +198 -0
- livingproof_capability_report-5.0.5/tests/test_site_link_edges.py +206 -0
- livingproof_capability_report-5.0.5/tests/test_site_link_guard_gaps.py +91 -0
- livingproof_capability_report-5.0.5/tests/test_site_pr84_lows.py +117 -0
- livingproof_capability_report-5.0.5/tests/test_site_ref.py +102 -0
- livingproof_capability_report-5.0.5/tests/test_site_repository_shape_edges.py +91 -0
- livingproof_capability_report-5.0.5/tests/test_site_run_address_entity_end.py +80 -0
- livingproof_capability_report-5.0.5/tests/test_site_run_url_and_encoded_actions.py +78 -0
- livingproof_capability_report-5.0.5/tests/test_site_validated_viewer_runs.py +249 -0
- livingproof_capability_report-5.0.5/tests/test_site_validated_viewer_runs_gaps.py +470 -0
- livingproof_capability_report-5.0.5/tests/test_site_validated_viewer_runs_limits.py +213 -0
- livingproof_capability_report-5.0.5/tests/test_site_validated_viewer_runs_recheck.py +351 -0
- livingproof_capability_report-5.0.5/tests/test_site_validated_viewer_runs_recheck2.py +248 -0
- livingproof_capability_report-5.0.5/tests/test_site_validated_viewer_runs_recheck3.py +76 -0
- livingproof_capability_report-5.0.5/tests/test_site_verification_gaps.py +672 -0
- livingproof_capability_report-5.0.5/tests/test_svg_subset.py +111 -0
- livingproof_capability_report-5.0.5/tests/test_terminal.py +69 -0
- livingproof_capability_report-5.0.5/tests/test_test_results.py +332 -0
- livingproof_capability_report-5.0.5/tests/test_theme_ruff_format.py +21 -0
- livingproof_capability_report-5.0.5/tests/test_trial_labels.py +160 -0
- livingproof_capability_report-5.0.5/tests/test_trusted_viewer.py +224 -0
- livingproof_capability_report-5.0.5/tests/test_ungraded_bundle_cli.py +120 -0
- livingproof_capability_report-5.0.5/tests/test_v1_bundle_report_rerender.py +76 -0
- livingproof_capability_report-5.0.5/tests/test_verification_gate.py +103 -0
- livingproof_capability_report-5.0.5/tests/test_version.py +152 -0
- livingproof_capability_report-5.0.5/tests/test_viewer_page.py +83 -0
- livingproof_capability_report-5.0.5/tests/test_viewer_page_flow.py +143 -0
- livingproof_capability_report-5.0.5/tests/test_workflow_triggers_review.py +230 -0
- livingproof_capability_report-5.0.5/tools/Dockerfile.packages +8 -0
- livingproof_capability_report-5.0.5/tools/apt-install.sh +82 -0
- livingproof_capability_report-5.0.5/tools/compatibility_summary.py +68 -0
- livingproof_capability_report-5.0.5/tools/debian.py +79 -0
- livingproof_capability_report-5.0.5/tools/debian_evidence.py +60 -0
- livingproof_capability_report-5.0.5/tools/docs.py +396 -0
- livingproof_capability_report-5.0.5/tools/docs_delivery.py +129 -0
- livingproof_capability_report-5.0.5/tools/fetch_common.py +91 -0
- livingproof_capability_report-5.0.5/tools/mock_reports.py +941 -0
- livingproof_capability_report-5.0.5/tools/package.py +129 -0
- livingproof_capability_report-5.0.5/tools/post_release.py +372 -0
- livingproof_capability_report-5.0.5/tools/prepare_pypi.py +123 -0
- livingproof_capability_report-5.0.5/tools/pypi_handoff.py +124 -0
- livingproof_capability_report-5.0.5/tools/record_compatibility.py +68 -0
- livingproof_capability_report-5.0.5/tools/registry_release.py +65 -0
- livingproof_capability_report-5.0.5/tools/registry_render_smoke.sh +52 -0
- livingproof_capability_report-5.0.5/tools/release_assets.py +194 -0
- livingproof_capability_report-5.0.5/tools/require_absent_image.py +40 -0
- livingproof_capability_report-5.0.5/tools/review/mixed_viewer_history.py +124 -0
- livingproof_capability_report-5.0.5/tools/review/viewer_page_browser.cjs +47 -0
- livingproof_capability_report-5.0.5/tools/smoke.py +215 -0
- livingproof_capability_report-5.0.5/tools/test_results.py +380 -0
- livingproof_capability_report-5.0.5/uv.lock +838 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Living Proof Labs capability report",
|
|
3
|
+
"build": {
|
|
4
|
+
"dockerfile": "../Dockerfile",
|
|
5
|
+
"context": "..",
|
|
6
|
+
"target": "development"
|
|
7
|
+
},
|
|
8
|
+
"workspaceFolder": "/workspace/report",
|
|
9
|
+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace/report,type=bind",
|
|
10
|
+
"remoteUser": "vscode",
|
|
11
|
+
"updateRemoteUserUID": true,
|
|
12
|
+
"postCreateCommand": ". /usr/local/bin/dev-ca-env.sh && task setup",
|
|
13
|
+
"customizations": {
|
|
14
|
+
"vscode": {
|
|
15
|
+
"extensions": [
|
|
16
|
+
"ms-python.python"
|
|
17
|
+
],
|
|
18
|
+
"settings": {
|
|
19
|
+
"python.defaultInterpreterPath": "/tmp/report-venv/bin/python"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"containerEnv": {
|
|
24
|
+
"HTTP_PROXY": "${localEnv:HTTP_PROXY}",
|
|
25
|
+
"HTTPS_PROXY": "${localEnv:HTTPS_PROXY}",
|
|
26
|
+
"NO_PROXY": "${localEnv:NO_PROXY}",
|
|
27
|
+
"http_proxy": "${localEnv:http_proxy}",
|
|
28
|
+
"https_proxy": "${localEnv:https_proxy}",
|
|
29
|
+
"no_proxy": "${localEnv:no_proxy}"
|
|
30
|
+
},
|
|
31
|
+
"mounts": [
|
|
32
|
+
"source=${localEnv:DEV_CA_BUNDLE:/dev/null},target=/run/livingproof/extra-ca.crt,type=bind,readonly"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Reporter Pages operation
|
|
2
|
+
|
|
3
|
+
<a id="reporter-pages-activation-plan"></a>
|
|
4
|
+
|
|
5
|
+
Canonical URL: https://docs.livingprooflabs.com/livingproof-capability-report/.
|
|
6
|
+
No per-project custom domain or CNAME file is needed. Pages uses **GitHub Actions**
|
|
7
|
+
and the `github-pages` environment restricts deployment to `main`.
|
|
8
|
+
Live browser verification of revision `fa1a4e708f3d1330667967fe420adcdf18cbb8ef`
|
|
9
|
+
is recorded in the [verification guide](../docs/verification.md).
|
|
10
|
+
|
|
11
|
+
Keep these deployment boundaries when maintaining the manual:
|
|
12
|
+
|
|
13
|
+
1. Every push to main delivers the manual, including the demo reports.
|
|
14
|
+
Almost every merge cuts a release: under the shared release rules every
|
|
15
|
+
conventional commit type (`feat`, `fix`, `perf`, `docs`, `chore`, `build`,
|
|
16
|
+
`ci`, `test`, `refactor`, `style`, `revert`) cuts at least a patch release.
|
|
17
|
+
Such a push waits for the verified finalizer of that exact immutable release;
|
|
18
|
+
the read-only manual build installs that released wheel, checks its published
|
|
19
|
+
digest, runs `task docs:verify`'s installed scenario and manual checks, and
|
|
20
|
+
seals only `artifacts/docs/html`. As a safety net, a push that cuts no release
|
|
21
|
+
because no commit since the last tag carries a release type (commits marked
|
|
22
|
+
`[skip release]`, or messages outside the conventional format) builds, checks
|
|
23
|
+
and seals the exact planned main preview of that run instead, labelled
|
|
24
|
+
`Docs: preview X.Y.Z-main.N.A`, so the live manual still follows main.
|
|
25
|
+
2. Only the separate deployment job is granted `pages: write` and `id-token: write`
|
|
26
|
+
alongside `contents: read`; it uses pinned `actions/deploy-pages`, the `github-pages`
|
|
27
|
+
environment and its returned page URL. Do not checkout or execute repository
|
|
28
|
+
code in that privileged job. No organization-wide default-token change is needed.
|
|
29
|
+
3. Serialize deployments and check current main inside the deployment lock so an
|
|
30
|
+
older build cannot replace a newer manual. Verify the sealed Pages archive
|
|
31
|
+
by native artifact ID, name and digest. Never deploy pull request artifacts
|
|
32
|
+
or use `pull_request_target`. The **Reporter documentation** retry takes an
|
|
33
|
+
existing immutable stable tag at current main; it cannot publish a release.
|
|
34
|
+
4. Verify the actual URL, assets, navigation, deep links, search-result opening,
|
|
35
|
+
mobile layout, system/light/dark themes and displayed revision. Record the
|
|
36
|
+
source commit and run after each delivery.
|
|
37
|
+
|
|
38
|
+
The 14-day preview is review evidence, separate from the durable public manual.
|
|
39
|
+
This documentation path does not change package, registry or historical
|
|
40
|
+
release-recovery behavior.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Verify Docker development environment
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
permissions:
|
|
7
|
+
contents: read
|
|
8
|
+
jobs:
|
|
9
|
+
development:
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
runner: [ubuntu-24.04, ubuntu-24.04-arm]
|
|
14
|
+
runs-on: ${{ matrix.runner }}
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4.4.0
|
|
17
|
+
with:
|
|
18
|
+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
19
|
+
persist-credentials: false
|
|
20
|
+
- uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e
|
|
21
|
+
with:
|
|
22
|
+
version: '3.54.0'
|
|
23
|
+
- run: task dev:build
|
|
24
|
+
- run: task dev:verify
|
|
25
|
+
- run: task dev:docs
|
|
26
|
+
- name: Individual container tests in run summary
|
|
27
|
+
if: ${{ !cancelled() }}
|
|
28
|
+
continue-on-error: true
|
|
29
|
+
uses: dorny/test-reporter@d1b5dff021aa968b288b02285a8bf47471c5928a
|
|
30
|
+
with:
|
|
31
|
+
name: Container reporter tests (${{ matrix.runner }})
|
|
32
|
+
path: artifacts/*tests.xml
|
|
33
|
+
reporter: python-xunit
|
|
34
|
+
use-actions-summary: 'true'
|
|
35
|
+
collapsed: never
|
|
36
|
+
fail-on-error: 'true'
|
|
37
|
+
fail-on-empty: 'true'
|
|
38
|
+
- uses: actions/upload-artifact@v4.6.2
|
|
39
|
+
if: always()
|
|
40
|
+
with:
|
|
41
|
+
name: development-tests-${{ matrix.runner }}
|
|
42
|
+
retention-days: 14
|
|
43
|
+
path: artifacts/
|
|
44
|
+
if-no-files-found: error
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
name: Build verified reporter documentation
|
|
2
|
+
on:
|
|
3
|
+
workflow_call:
|
|
4
|
+
inputs:
|
|
5
|
+
version: {type: string, required: true}
|
|
6
|
+
package_version: {type: string, required: true}
|
|
7
|
+
release_tag: {type: string, required: false, default: ''}
|
|
8
|
+
commit: {type: string, required: true}
|
|
9
|
+
run: {type: string, required: true}
|
|
10
|
+
attempt: {type: string, required: true}
|
|
11
|
+
outputs:
|
|
12
|
+
artifact-id:
|
|
13
|
+
value: ${{ jobs.build.outputs.artifact-id }}
|
|
14
|
+
digest:
|
|
15
|
+
value: ${{ jobs.build.outputs.digest }}
|
|
16
|
+
attempt:
|
|
17
|
+
value: ${{ jobs.build.outputs.attempt }}
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
jobs:
|
|
21
|
+
build:
|
|
22
|
+
runs-on: ubuntu-24.04
|
|
23
|
+
permissions:
|
|
24
|
+
contents: read
|
|
25
|
+
outputs:
|
|
26
|
+
artifact-id: ${{ steps.manual-artifact.outputs.artifact-id }}
|
|
27
|
+
digest: ${{ steps.seal.outputs.digest }}
|
|
28
|
+
attempt: ${{ steps.seal.outputs.attempt }}
|
|
29
|
+
env:
|
|
30
|
+
MANUAL_VERSION: ${{ inputs.version }}
|
|
31
|
+
MANUAL_PACKAGE_VERSION: ${{ inputs.package_version }}
|
|
32
|
+
MANUAL_RELEASE_TAG: ${{ inputs.release_tag }}
|
|
33
|
+
PLAN_COMMIT: ${{ inputs.commit }}
|
|
34
|
+
PLAN_RUN: ${{ inputs.run }}
|
|
35
|
+
PLAN_ATTEMPT: ${{ inputs.attempt }}
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
|
|
38
|
+
with:
|
|
39
|
+
ref: ${{ inputs.commit }}
|
|
40
|
+
fetch-depth: 0
|
|
41
|
+
fetch-tags: true
|
|
42
|
+
persist-credentials: false
|
|
43
|
+
- name: Require the exact source, run and version selection
|
|
44
|
+
env:
|
|
45
|
+
EXPECTED_SOURCE: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
46
|
+
PR_BASE: ${{ github.base_ref }}
|
|
47
|
+
run: |
|
|
48
|
+
set -euo pipefail
|
|
49
|
+
test "$(git rev-parse HEAD)" = "$PLAN_COMMIT"
|
|
50
|
+
test "$PLAN_COMMIT" = "$EXPECTED_SOURCE"
|
|
51
|
+
test "$PLAN_RUN" = "$GITHUB_RUN_ID"
|
|
52
|
+
test "$PLAN_ATTEMPT" = "$GITHUB_RUN_ATTEMPT"
|
|
53
|
+
if [[ "$GITHUB_EVENT_NAME" == 'pull_request' ]]; then
|
|
54
|
+
test -z "$MANUAL_RELEASE_TAG"
|
|
55
|
+
if [[ "$PR_BASE" == 'main' ]]; then
|
|
56
|
+
test -n "$MANUAL_VERSION"
|
|
57
|
+
test -n "$MANUAL_PACKAGE_VERSION"
|
|
58
|
+
fi
|
|
59
|
+
elif [[ -z "$MANUAL_RELEASE_TAG" ]]; then
|
|
60
|
+
# A main push that cuts no release still publishes its manual (#184),
|
|
61
|
+
# as the exact planned main preview of this run.
|
|
62
|
+
test "$GITHUB_EVENT_NAME" = push
|
|
63
|
+
test "$GITHUB_REF" = refs/heads/main
|
|
64
|
+
stable='(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)'
|
|
65
|
+
[[ "$MANUAL_VERSION" =~ ^($stable)-main\.[1-9][0-9]*\.[1-9][0-9]*$ ]]
|
|
66
|
+
[[ "$MANUAL_PACKAGE_VERSION" == "${BASH_REMATCH[1]}".dev[1-9]* ]]
|
|
67
|
+
fi
|
|
68
|
+
- name: Download exact published wheel with release checksums
|
|
69
|
+
if: inputs.release_tag != ''
|
|
70
|
+
env:
|
|
71
|
+
GH_TOKEN: ${{ github.token }}
|
|
72
|
+
run: |
|
|
73
|
+
set -euo pipefail
|
|
74
|
+
[[ "$MANUAL_VERSION" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]
|
|
75
|
+
test "$MANUAL_RELEASE_TAG" = "v$MANUAL_VERSION"
|
|
76
|
+
test "$MANUAL_PACKAGE_VERSION" = "$MANUAL_VERSION"
|
|
77
|
+
test "$(git rev-parse --verify "refs/tags/${MANUAL_RELEASE_TAG}^{commit}")" = "$PLAN_COMMIT"
|
|
78
|
+
mkdir -p artifacts/docs-released-wheel
|
|
79
|
+
gh api "repos/$GITHUB_REPOSITORY/releases/tags/$MANUAL_RELEASE_TAG" \
|
|
80
|
+
> artifacts/docs-released-wheel/release.json
|
|
81
|
+
python3 tools/docs_delivery.py released "$MANUAL_RELEASE_TAG" "$MANUAL_VERSION"
|
|
82
|
+
gh release download "$MANUAL_RELEASE_TAG" --repo "$GITHUB_REPOSITORY" \
|
|
83
|
+
--dir artifacts/docs-released-wheel --pattern SHA256SUMS \
|
|
84
|
+
--pattern "livingproof_capability_report-${MANUAL_VERSION}-py3-none-any.whl"
|
|
85
|
+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
|
|
86
|
+
with:
|
|
87
|
+
python-version: '3.12.16'
|
|
88
|
+
- uses: astral-sh/setup-uv@d0d8abe699bfb85fec6de9f7adb5ae17292296ff
|
|
89
|
+
with:
|
|
90
|
+
version: '0.13.10'
|
|
91
|
+
- uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e
|
|
92
|
+
with:
|
|
93
|
+
version: '3.54.0'
|
|
94
|
+
- run: task setup
|
|
95
|
+
- run: task verify
|
|
96
|
+
- run: task docs:prepare
|
|
97
|
+
- run: task test:features
|
|
98
|
+
- run: task docs
|
|
99
|
+
if: ${{ !cancelled() }}
|
|
100
|
+
- run: task test:docs
|
|
101
|
+
if: ${{ !cancelled() }}
|
|
102
|
+
- name: Individual installed scenarios and manual checks
|
|
103
|
+
if: ${{ !cancelled() }}
|
|
104
|
+
continue-on-error: true
|
|
105
|
+
uses: dorny/test-reporter@d1b5dff021aa968b288b02285a8bf47471c5928a
|
|
106
|
+
with:
|
|
107
|
+
name: Reporter documentation scenarios and checks
|
|
108
|
+
path: artifacts/feature-tests.xml,artifacts/docs-tests.xml
|
|
109
|
+
reporter: python-xunit
|
|
110
|
+
use-actions-summary: 'true'
|
|
111
|
+
collapsed: never
|
|
112
|
+
fail-on-error: 'true'
|
|
113
|
+
fail-on-empty: 'true'
|
|
114
|
+
- name: Evidence context
|
|
115
|
+
if: ${{ !cancelled() }}
|
|
116
|
+
run: |
|
|
117
|
+
echo 'Four named installed reporter scenarios; not exhaustive feature coverage. No line coverage measured.' >> "$GITHUB_STEP_SUMMARY"
|
|
118
|
+
echo "Revision: ${{ github.event.pull_request.head.sha || github.sha }}" >> "$GITHUB_STEP_SUMMARY"
|
|
119
|
+
echo 'Documentation preview and raw JUnit are retained for 14 days below. Browser and independent review remain separate.' >> "$GITHUB_STEP_SUMMARY"
|
|
120
|
+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
|
|
121
|
+
id: evidence
|
|
122
|
+
if: always()
|
|
123
|
+
with:
|
|
124
|
+
name: reporter-documentation-${{ github.run_attempt }}-${{ inputs.version || 'development' }}
|
|
125
|
+
retention-days: 14
|
|
126
|
+
if-no-files-found: error
|
|
127
|
+
path: |
|
|
128
|
+
artifacts/docs/html/
|
|
129
|
+
artifacts/docs/source/
|
|
130
|
+
artifacts/docs/wheels/
|
|
131
|
+
artifacts/*tests.xml
|
|
132
|
+
- name: Seal the tested manual for exact same-run delivery
|
|
133
|
+
id: seal
|
|
134
|
+
if: inputs.release_tag != '' || github.event_name == 'push'
|
|
135
|
+
run: |
|
|
136
|
+
set -euo pipefail
|
|
137
|
+
python3 tools/docs_delivery.py seal artifacts/docs/html/build.json
|
|
138
|
+
cd artifacts/docs/html
|
|
139
|
+
test -f index.html
|
|
140
|
+
test -z "$(find . ! -type f ! -type d -print -quit)"
|
|
141
|
+
tar --dereference --hard-dereference -cf "$RUNNER_TEMP/artifact.tar" .
|
|
142
|
+
checksum=$(sha256sum "$RUNNER_TEMP/artifact.tar")
|
|
143
|
+
echo "digest=${checksum%% *}" >> "$GITHUB_OUTPUT"
|
|
144
|
+
echo "attempt=$PLAN_ATTEMPT" >> "$GITHUB_OUTPUT"
|
|
145
|
+
- name: Retain the immutable source artifact
|
|
146
|
+
id: manual-artifact
|
|
147
|
+
if: inputs.release_tag != '' || github.event_name == 'push'
|
|
148
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
|
|
149
|
+
with:
|
|
150
|
+
name: reporter-sealed-${{ inputs.attempt }}-${{ inputs.version }}
|
|
151
|
+
path: ${{ runner.temp }}/artifact.tar
|
|
152
|
+
retention-days: 14
|
|
153
|
+
if-no-files-found: error
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
name: Deploy reporter documentation
|
|
2
|
+
on:
|
|
3
|
+
workflow_call:
|
|
4
|
+
inputs:
|
|
5
|
+
release_tag: {type: string, required: true}
|
|
6
|
+
version: {type: string, required: true}
|
|
7
|
+
# Set only for the main preview that a non-release push publishes (#184).
|
|
8
|
+
package_version: {type: string, required: false, default: ''}
|
|
9
|
+
commit: {type: string, required: true}
|
|
10
|
+
run: {type: string, required: true}
|
|
11
|
+
attempt: {type: string, required: true}
|
|
12
|
+
artifact_id: {type: string, required: true}
|
|
13
|
+
digest: {type: string, required: true}
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
jobs:
|
|
17
|
+
deploy:
|
|
18
|
+
if: >-
|
|
19
|
+
github.ref == 'refs/heads/main' &&
|
|
20
|
+
(github.event_name == 'push' ||
|
|
21
|
+
(github.event_name == 'workflow_dispatch' &&
|
|
22
|
+
github.event.inputs.replay_tag != '' &&
|
|
23
|
+
github.event.inputs.replay_tag == inputs.release_tag))
|
|
24
|
+
runs-on: ubuntu-24.04
|
|
25
|
+
permissions:
|
|
26
|
+
contents: read
|
|
27
|
+
pages: write
|
|
28
|
+
id-token: write
|
|
29
|
+
concurrency:
|
|
30
|
+
group: reporter-pages-deployment
|
|
31
|
+
cancel-in-progress: false
|
|
32
|
+
environment:
|
|
33
|
+
name: github-pages
|
|
34
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
35
|
+
env:
|
|
36
|
+
RELEASE_TAG: ${{ inputs.release_tag }}
|
|
37
|
+
VERSION: ${{ inputs.version }}
|
|
38
|
+
PACKAGE_VERSION: ${{ inputs.package_version }}
|
|
39
|
+
SOURCE: ${{ inputs.commit }}
|
|
40
|
+
PLAN_RUN: ${{ inputs.run }}
|
|
41
|
+
PLAN_ATTEMPT: ${{ inputs.attempt }}
|
|
42
|
+
ARTIFACT_ID: ${{ inputs.artifact_id }}
|
|
43
|
+
DIGEST: ${{ inputs.digest }}
|
|
44
|
+
REPLAY_TAG: ${{ github.event.inputs.replay_tag }}
|
|
45
|
+
steps:
|
|
46
|
+
# Keep this privileged job free of repository checkout and execution.
|
|
47
|
+
- name: Verify same-run release or main preview and deployment identity
|
|
48
|
+
run: |
|
|
49
|
+
set -euo pipefail
|
|
50
|
+
stable='(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)'
|
|
51
|
+
if [[ -z "$RELEASE_TAG" ]]; then
|
|
52
|
+
# Every main push that cuts no release deploys its own preview (#184).
|
|
53
|
+
test "$GITHUB_EVENT_NAME" = push
|
|
54
|
+
[[ "$VERSION" =~ ^($stable)-main\.[1-9][0-9]*\.[1-9][0-9]*$ ]]
|
|
55
|
+
[[ "$PACKAGE_VERSION" =~ ^${BASH_REMATCH[1]//./\\.}\.dev[1-9][0-9]*$ ]]
|
|
56
|
+
else
|
|
57
|
+
[[ "$VERSION" =~ ^$stable$ ]]
|
|
58
|
+
test "$RELEASE_TAG" = "v$VERSION"
|
|
59
|
+
fi
|
|
60
|
+
[[ "$ARTIFACT_ID" =~ ^[1-9][0-9]*$ ]]
|
|
61
|
+
[[ "$PLAN_ATTEMPT" =~ ^[1-9][0-9]{0,5}$ ]]
|
|
62
|
+
test "$PLAN_ATTEMPT" -le "$GITHUB_RUN_ATTEMPT"
|
|
63
|
+
if [[ "$GITHUB_EVENT_NAME" == 'workflow_dispatch' ]]; then
|
|
64
|
+
test "$PLAN_ATTEMPT" = "$GITHUB_RUN_ATTEMPT"
|
|
65
|
+
test "$REPLAY_TAG" = "$RELEASE_TAG"
|
|
66
|
+
fi
|
|
67
|
+
test "$SOURCE" = "$GITHUB_SHA"
|
|
68
|
+
test "$PLAN_RUN" = "$GITHUB_RUN_ID"
|
|
69
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
|
|
70
|
+
with:
|
|
71
|
+
artifact-ids: ${{ inputs.artifact_id }}
|
|
72
|
+
path: ${{ runner.temp }}/verified-reporter
|
|
73
|
+
merge-multiple: true
|
|
74
|
+
- name: Use the exact sealed bytes and validate their build identity
|
|
75
|
+
id: pages-package
|
|
76
|
+
run: |
|
|
77
|
+
set -euo pipefail
|
|
78
|
+
[[ "$DIGEST" =~ ^[0-9a-f]{64}$ ]]
|
|
79
|
+
archive="$RUNNER_TEMP/verified-reporter/artifact.tar"
|
|
80
|
+
printf '%s %s\n' "$DIGEST" "$archive" | sha256sum --check
|
|
81
|
+
python3 - "$archive" <<'PYTHON'
|
|
82
|
+
import json
|
|
83
|
+
import os
|
|
84
|
+
import re
|
|
85
|
+
import sys
|
|
86
|
+
import tarfile
|
|
87
|
+
|
|
88
|
+
with tarfile.open(sys.argv[1], mode="r:") as tar:
|
|
89
|
+
records = [entry for entry in tar if entry.name == "./build.json"]
|
|
90
|
+
if len(records) != 1 or not records[0].isfile():
|
|
91
|
+
raise SystemExit("Expected exactly one regular build.json in the sealed manual")
|
|
92
|
+
with tar.extractfile(records[0]) as stream:
|
|
93
|
+
record = json.load(stream)
|
|
94
|
+
tag = os.environ["RELEASE_TAG"]
|
|
95
|
+
expected = {
|
|
96
|
+
"edition": "release" if tag else "preview", "version": os.environ["VERSION"],
|
|
97
|
+
"package_version": os.environ["VERSION"] if tag else os.environ["PACKAGE_VERSION"],
|
|
98
|
+
"release_tag": tag or None,
|
|
99
|
+
"source_commit": os.environ["SOURCE"], "source_dirty": False,
|
|
100
|
+
"run_id": os.environ["PLAN_RUN"], "run_attempt": os.environ["PLAN_ATTEMPT"],
|
|
101
|
+
}
|
|
102
|
+
if any(record.get(key) != value for key, value in expected.items()):
|
|
103
|
+
raise SystemExit("Sealed manual does not match the planned version, source and run")
|
|
104
|
+
if not re.fullmatch(r"[0-9a-f]{64}", record.get("wheel_sha256", "")):
|
|
105
|
+
raise SystemExit("Sealed manual does not identify its wheel")
|
|
106
|
+
PYTHON
|
|
107
|
+
cp "$archive" "$RUNNER_TEMP/artifact.tar"
|
|
108
|
+
echo "tar-sha256=$DIGEST" >> "$GITHUB_OUTPUT"
|
|
109
|
+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
110
|
+
id: pages-artifact
|
|
111
|
+
with:
|
|
112
|
+
name: github-pages-${{ github.run_attempt }}
|
|
113
|
+
path: ${{ runner.temp }}/artifact.tar
|
|
114
|
+
retention-days: 1
|
|
115
|
+
if-no-files-found: error
|
|
116
|
+
# Use the same-run Actions artifact client (like deploy-pages), not the REST index.
|
|
117
|
+
# An exact ID and name must both resolve to the sealed Pages tar before deploying.
|
|
118
|
+
- name: Require a valid Pages artifact ID
|
|
119
|
+
shell: bash
|
|
120
|
+
env:
|
|
121
|
+
UPLOADED_ID: ${{ steps.pages-artifact.outputs.artifact-id }}
|
|
122
|
+
run: |
|
|
123
|
+
[[ "$UPLOADED_ID" =~ ^[1-9][0-9]*$ ]]
|
|
124
|
+
- name: Read exact Pages artifact by ID
|
|
125
|
+
id: pages-id-first
|
|
126
|
+
continue-on-error: true
|
|
127
|
+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
128
|
+
with:
|
|
129
|
+
artifact-ids: ${{ steps.pages-artifact.outputs.artifact-id }}
|
|
130
|
+
path: ${{ runner.temp }}/reporter-pages-id-first
|
|
131
|
+
- name: Allow the ID lookup to settle
|
|
132
|
+
if: steps.pages-id-first.outcome == 'failure'
|
|
133
|
+
run: sleep 4
|
|
134
|
+
- name: Retry read by ID once
|
|
135
|
+
id: pages-id-retry
|
|
136
|
+
if: steps.pages-id-first.outcome == 'failure'
|
|
137
|
+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
138
|
+
with:
|
|
139
|
+
artifact-ids: ${{ steps.pages-artifact.outputs.artifact-id }}
|
|
140
|
+
path: ${{ runner.temp }}/reporter-pages-id-retry
|
|
141
|
+
- name: Read exact Pages artifact by name
|
|
142
|
+
id: pages-name-first
|
|
143
|
+
continue-on-error: true
|
|
144
|
+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
145
|
+
with:
|
|
146
|
+
name: github-pages-${{ github.run_attempt }}
|
|
147
|
+
path: ${{ runner.temp }}/reporter-pages-name-first
|
|
148
|
+
- name: Allow the name lookup to settle
|
|
149
|
+
if: steps.pages-name-first.outcome == 'failure'
|
|
150
|
+
run: sleep 4
|
|
151
|
+
- name: Retry read by name once
|
|
152
|
+
id: pages-name-retry
|
|
153
|
+
if: steps.pages-name-first.outcome == 'failure'
|
|
154
|
+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
155
|
+
with:
|
|
156
|
+
name: github-pages-${{ github.run_attempt }}
|
|
157
|
+
path: ${{ runner.temp }}/reporter-pages-name-retry
|
|
158
|
+
- name: Require matching ID and name readback of the exact tar
|
|
159
|
+
shell: bash
|
|
160
|
+
env:
|
|
161
|
+
EXPECTED_TAR: ${{ steps.pages-package.outputs.tar-sha256 }}
|
|
162
|
+
EXPECTED_NAME: github-pages-${{ github.run_attempt }}
|
|
163
|
+
ID_READBACK: ${{ steps.pages-id-first.outcome == 'success' && steps.pages-id-first.outputs.download-path || steps.pages-id-retry.outputs.download-path }}
|
|
164
|
+
NAME_READBACK: ${{ steps.pages-name-first.outcome == 'success' && steps.pages-name-first.outputs.download-path || steps.pages-name-retry.outputs.download-path }}
|
|
165
|
+
run: |
|
|
166
|
+
set -euo pipefail
|
|
167
|
+
[[ "$EXPECTED_TAR" =~ ^[0-9a-f]{64}$ ]]
|
|
168
|
+
test -n "$ID_READBACK"
|
|
169
|
+
test -n "$NAME_READBACK"
|
|
170
|
+
for path in "$ID_READBACK/$EXPECTED_NAME" "$NAME_READBACK"; do
|
|
171
|
+
test -f "$path/artifact.tar"
|
|
172
|
+
digest=$(sha256sum "$path/artifact.tar")
|
|
173
|
+
test "${digest%% *}" = "$EXPECTED_TAR"
|
|
174
|
+
done
|
|
175
|
+
- name: Check current main inside deployment lock
|
|
176
|
+
id: freshness
|
|
177
|
+
env:
|
|
178
|
+
GH_TOKEN: ${{ github.token }}
|
|
179
|
+
GH_REPO: ${{ github.repository }}
|
|
180
|
+
CANDIDATE_SHA: ${{ github.sha }}
|
|
181
|
+
run: |
|
|
182
|
+
set -euo pipefail
|
|
183
|
+
current=$(gh api "repos/$GH_REPO/git/ref/heads/main" --jq .object.sha)
|
|
184
|
+
if [ "$current" = "$CANDIDATE_SHA" ]; then
|
|
185
|
+
echo 'current=true' >> "$GITHUB_OUTPUT"
|
|
186
|
+
else
|
|
187
|
+
echo 'Skipped superseded documentation revision.' >> "$GITHUB_STEP_SUMMARY"
|
|
188
|
+
echo 'current=false' >> "$GITHUB_OUTPUT"
|
|
189
|
+
fi
|
|
190
|
+
- uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e
|
|
191
|
+
id: deployment
|
|
192
|
+
if: steps.freshness.outputs.current == 'true'
|
|
193
|
+
with:
|
|
194
|
+
artifact_name: github-pages-${{ github.run_attempt }}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
name: Reporter documentation
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
replay_tag:
|
|
7
|
+
description: Existing published stable tag at current main, for Pages delivery only
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
jobs:
|
|
13
|
+
version:
|
|
14
|
+
if: >-
|
|
15
|
+
(github.event_name == 'pull_request' && github.base_ref == 'main') ||
|
|
16
|
+
(github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
|
|
17
|
+
permissions:
|
|
18
|
+
contents: read
|
|
19
|
+
uses: Living-Proof-Labs/collaboration-guidelines/.github/workflows/semantic-release-candidate.yml@v9.14.0
|
|
20
|
+
with:
|
|
21
|
+
replay-tag: ${{ inputs.replay_tag || '' }}
|
|
22
|
+
manual:
|
|
23
|
+
needs: version
|
|
24
|
+
if: >-
|
|
25
|
+
!cancelled() &&
|
|
26
|
+
((github.event_name == 'pull_request' &&
|
|
27
|
+
(needs.version.result == 'success' ||
|
|
28
|
+
(github.base_ref != 'main' && needs.version.result == 'skipped'))) ||
|
|
29
|
+
(github.event_name == 'workflow_dispatch' &&
|
|
30
|
+
github.ref == 'refs/heads/main' &&
|
|
31
|
+
needs.version.result == 'success' &&
|
|
32
|
+
inputs.replay_tag == format('v{0}', needs.version.outputs.semver-version) &&
|
|
33
|
+
needs.version.outputs.commit == github.sha &&
|
|
34
|
+
needs.version.outputs.run-id == github.run_id &&
|
|
35
|
+
needs.version.outputs.run-attempt == github.run_attempt))
|
|
36
|
+
permissions:
|
|
37
|
+
contents: read
|
|
38
|
+
uses: ./.github/workflows/documentation-build.yml
|
|
39
|
+
with:
|
|
40
|
+
version: ${{ needs.version.outputs.semver-version }}
|
|
41
|
+
package_version: ${{ needs.version.outputs.pep440-version }}
|
|
42
|
+
release_tag: ${{ inputs.replay_tag || '' }}
|
|
43
|
+
commit: ${{ needs.version.outputs.commit || github.event.pull_request.head.sha }}
|
|
44
|
+
run: ${{ needs.version.outputs.run-id || github.run_id }}
|
|
45
|
+
attempt: ${{ needs.version.outputs.run-attempt || github.run_attempt }}
|
|
46
|
+
deploy-manual:
|
|
47
|
+
needs: [version, manual]
|
|
48
|
+
if: >-
|
|
49
|
+
github.event_name == 'workflow_dispatch' &&
|
|
50
|
+
github.ref == 'refs/heads/main' &&
|
|
51
|
+
inputs.replay_tag == format('v{0}', needs.version.outputs.semver-version) &&
|
|
52
|
+
needs.version.outputs.commit == github.sha &&
|
|
53
|
+
needs.version.outputs.run-id == github.run_id &&
|
|
54
|
+
needs.version.outputs.run-attempt == github.run_attempt &&
|
|
55
|
+
needs.manual.outputs.artifact-id != '' &&
|
|
56
|
+
needs.manual.outputs.digest != ''
|
|
57
|
+
permissions:
|
|
58
|
+
contents: read
|
|
59
|
+
pages: write
|
|
60
|
+
id-token: write
|
|
61
|
+
uses: ./.github/workflows/documentation-deploy.yml
|
|
62
|
+
with:
|
|
63
|
+
release_tag: ${{ inputs.replay_tag }}
|
|
64
|
+
version: ${{ needs.version.outputs.semver-version }}
|
|
65
|
+
commit: ${{ needs.version.outputs.commit }}
|
|
66
|
+
run: ${{ needs.version.outputs.run-id }}
|
|
67
|
+
attempt: ${{ needs.version.outputs.run-attempt }}
|
|
68
|
+
artifact_id: ${{ needs.manual.outputs.artifact-id }}
|
|
69
|
+
digest: ${{ needs.manual.outputs.digest }}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
name: Publish verified Reporter to PyPI
|
|
3
|
+
run-name: PyPI ${{ inputs.release_tag }} @ ${{ inputs.source_sha }}
|
|
4
|
+
on:
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
inputs:
|
|
7
|
+
release_tag:
|
|
8
|
+
description: Exact immutable GitHub release tag, vX.Y.Z.
|
|
9
|
+
required: true
|
|
10
|
+
type: string
|
|
11
|
+
source_sha:
|
|
12
|
+
description: Exact 40-character source commit of that release.
|
|
13
|
+
required: true
|
|
14
|
+
type: string
|
|
15
|
+
release_run_id:
|
|
16
|
+
description: GitHub Actions ID of the protected-main handoff run.
|
|
17
|
+
required: true
|
|
18
|
+
type: string
|
|
19
|
+
permissions: {}
|
|
20
|
+
jobs:
|
|
21
|
+
prepare:
|
|
22
|
+
if: >-
|
|
23
|
+
github.repository == 'Living-Proof-Labs/livingproof-capability-report' &&
|
|
24
|
+
github.actor == 'github-actions[bot]' && github.event_name == 'workflow_dispatch' &&
|
|
25
|
+
github.ref == 'refs/heads/main' && github.ref_protected
|
|
26
|
+
runs-on: ubuntu-24.04
|
|
27
|
+
timeout-minutes: 20
|
|
28
|
+
permissions:
|
|
29
|
+
actions: read
|
|
30
|
+
contents: read
|
|
31
|
+
outputs:
|
|
32
|
+
checksums: ${{ steps.prepare.outputs.checksums }}
|
|
33
|
+
artifact: verified-pypi-distributions-${{ github.run_attempt }}
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
36
|
+
with:
|
|
37
|
+
persist-credentials: false
|
|
38
|
+
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
|
|
39
|
+
with:
|
|
40
|
+
version: '0.13.10'
|
|
41
|
+
- name: Verify immutable release, source and exact distribution bytes
|
|
42
|
+
id: prepare
|
|
43
|
+
env:
|
|
44
|
+
GH_TOKEN: ${{ github.token }}
|
|
45
|
+
RELEASE_TAG: ${{ inputs.release_tag }}
|
|
46
|
+
RELEASE_COMMIT: ${{ inputs.source_sha }}
|
|
47
|
+
HANDOFF_RUN_ID: ${{ inputs.release_run_id }}
|
|
48
|
+
run: uv run --no-project --with packaging==26.3 python tools/prepare_pypi.py "$RELEASE_TAG" "$RELEASE_COMMIT" "$HANDOFF_RUN_ID"
|
|
49
|
+
- name: Check metadata and clean public-index installs
|
|
50
|
+
env:
|
|
51
|
+
RELEASE_TAG: ${{ inputs.release_tag }}
|
|
52
|
+
PIP_CONFIG_FILE: /dev/null
|
|
53
|
+
run: |
|
|
54
|
+
export RELEASE_VERSION="${RELEASE_TAG#v}"
|
|
55
|
+
uvx --with packaging==26.2 --from twine==7.0.0 twine check --strict pypi-dist/*
|
|
56
|
+
uv venv --seed "$RUNNER_TEMP/pypi-wheel"
|
|
57
|
+
uv venv --seed "$RUNNER_TEMP/pypi-source"
|
|
58
|
+
"$RUNNER_TEMP/pypi-wheel/bin/python" -m pip install --index-url https://pypi.org/simple "$GITHUB_WORKSPACE"/pypi-dist/*.whl
|
|
59
|
+
"$RUNNER_TEMP/pypi-source/bin/python" -m pip install --index-url https://pypi.org/simple "$GITHUB_WORKSPACE"/pypi-dist/*.tar.gz
|
|
60
|
+
cd "$RUNNER_TEMP"
|
|
61
|
+
for kind in wheel source; do
|
|
62
|
+
"$RUNNER_TEMP/pypi-$kind/bin/python" -m pip check
|
|
63
|
+
"$RUNNER_TEMP/pypi-$kind/bin/livingproof-capability-report" --help
|
|
64
|
+
"$RUNNER_TEMP/pypi-$kind/bin/python" -c 'import importlib.metadata as m, os; d=m.distribution("livingproof-capability-report"); assert d.version == os.environ["RELEASE_VERSION"]; e,=[e for e in d.entry_points if e.group == "livingproof.capability.commands" and e.name == "report"]; assert callable(e.load())'
|
|
65
|
+
done
|
|
66
|
+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
67
|
+
with:
|
|
68
|
+
name: verified-pypi-distributions-${{ github.run_attempt }}
|
|
69
|
+
path: pypi-dist/
|
|
70
|
+
if-no-files-found: error
|
|
71
|
+
retention-days: 14
|
|
72
|
+
publish:
|
|
73
|
+
needs: prepare
|
|
74
|
+
runs-on: ubuntu-24.04
|
|
75
|
+
timeout-minutes: 10
|
|
76
|
+
environment: pypi
|
|
77
|
+
concurrency:
|
|
78
|
+
group: reporter-pypi-publication-${{ inputs.release_tag }}
|
|
79
|
+
cancel-in-progress: false
|
|
80
|
+
permissions:
|
|
81
|
+
id-token: write
|
|
82
|
+
steps:
|
|
83
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
84
|
+
with:
|
|
85
|
+
name: ${{ needs.prepare.outputs.artifact }}
|
|
86
|
+
path: pypi-dist/
|
|
87
|
+
- uses: Living-Proof-Labs/collaboration-guidelines/.github/actions/verify-pypi@03e25e8967c9c9ba482cc2742040348988081bca # v9.14.1
|
|
88
|
+
with:
|
|
89
|
+
checksums: ${{ needs.prepare.outputs.checksums }}
|
|
90
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
91
|
+
with:
|
|
92
|
+
packages-dir: pypi-dist/
|