livingproof 2.2.8__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.
Files changed (105) hide show
  1. livingproof-2.2.8/.devcontainer/devcontainer.json +28 -0
  2. livingproof-2.2.8/.dockerignore +6 -0
  3. livingproof-2.2.8/.github/PAGES.md +88 -0
  4. livingproof-2.2.8/.github/RELEASE.md +71 -0
  5. livingproof-2.2.8/.github/actions/test-results/action.yml +65 -0
  6. livingproof-2.2.8/.github/workflows/dispatch-pypi.yml +61 -0
  7. livingproof-2.2.8/.github/workflows/packages.yml +238 -0
  8. livingproof-2.2.8/.github/workflows/publish-pypi.yml +140 -0
  9. livingproof-2.2.8/.github/workflows/verify.yml +509 -0
  10. livingproof-2.2.8/.gitignore +9 -0
  11. livingproof-2.2.8/AGENTS.md +17 -0
  12. livingproof-2.2.8/Dockerfile +72 -0
  13. livingproof-2.2.8/LICENSE +201 -0
  14. livingproof-2.2.8/PKG-INFO +360 -0
  15. livingproof-2.2.8/README.md +348 -0
  16. livingproof-2.2.8/Taskfile.yml +96 -0
  17. livingproof-2.2.8/completions/livingproof +3 -0
  18. livingproof-2.2.8/compose.yml +20 -0
  19. livingproof-2.2.8/docker/dev-ca-env.sh +114 -0
  20. livingproof-2.2.8/docker/dev-entrypoint.sh +10 -0
  21. livingproof-2.2.8/docker/livingproof-ca.sh +4 -0
  22. livingproof-2.2.8/docs/decisions/zensical.md +42 -0
  23. livingproof-2.2.8/docs/development.md +177 -0
  24. livingproof-2.2.8/docs/plugins.md +29 -0
  25. livingproof-2.2.8/docs/pypi-publication.md +26 -0
  26. livingproof-2.2.8/docs/site/commands.md +12 -0
  27. livingproof-2.2.8/docs/site/mkdocs.yml +31 -0
  28. livingproof-2.2.8/docs/site/search.md +8 -0
  29. livingproof-2.2.8/docs/verification.md +139 -0
  30. livingproof-2.2.8/hatch_build.py +17 -0
  31. livingproof-2.2.8/pyproject.toml +54 -0
  32. livingproof-2.2.8/renovate.json +6 -0
  33. livingproof-2.2.8/reporter-release.txt +4 -0
  34. livingproof-2.2.8/src/livingproof/__init__.py +1 -0
  35. livingproof-2.2.8/src/livingproof/_build_provenance.json +14 -0
  36. livingproof-2.2.8/src/livingproof/cli.py +118 -0
  37. livingproof-2.2.8/src/livingproof/completion.py +129 -0
  38. livingproof-2.2.8/src/livingproof/plugin_management.py +501 -0
  39. livingproof-2.2.8/src/livingproof/version.py +16 -0
  40. livingproof-2.2.8/tests/docs/conftest.py +42 -0
  41. livingproof-2.2.8/tests/docs/test_manual.py +415 -0
  42. livingproof-2.2.8/tests/features/installed.feature +40 -0
  43. livingproof-2.2.8/tests/features/test_journeys.py +66 -0
  44. livingproof-2.2.8/tests/fixtures/plugin/livingproof_test_plugin.py +12 -0
  45. livingproof-2.2.8/tests/fixtures/plugin/pyproject.toml +15 -0
  46. livingproof-2.2.8/tests/installed/test_distributions.py +148 -0
  47. livingproof-2.2.8/tests/lifecycle/test_devcontainer.py +44 -0
  48. livingproof-2.2.8/tests/registry/test_anonymous.py +89 -0
  49. livingproof-2.2.8/tests/test_verification_gate.py +99 -0
  50. livingproof-2.2.8/tests/unit/test_action_pins_review.py +61 -0
  51. livingproof-2.2.8/tests/unit/test_ci_installed_matrix.py +25 -0
  52. livingproof-2.2.8/tests/unit/test_cli.py +121 -0
  53. livingproof-2.2.8/tests/unit/test_common_selection.py +145 -0
  54. livingproof-2.2.8/tests/unit/test_completion.py +75 -0
  55. livingproof-2.2.8/tests/unit/test_dev_ca_tls_review.py +315 -0
  56. livingproof-2.2.8/tests/unit/test_dev_proxy.py +282 -0
  57. livingproof-2.2.8/tests/unit/test_development_image.py +121 -0
  58. livingproof-2.2.8/tests/unit/test_docs_setup_once.py +45 -0
  59. livingproof-2.2.8/tests/unit/test_feature_results.py +38 -0
  60. livingproof-2.2.8/tests/unit/test_guidelines_pins.py +176 -0
  61. livingproof-2.2.8/tests/unit/test_license.py +33 -0
  62. livingproof-2.2.8/tests/unit/test_manual_handoff.py +114 -0
  63. livingproof-2.2.8/tests/unit/test_pages_freshness.py +68 -0
  64. livingproof-2.2.8/tests/unit/test_plugin_fixture.py +38 -0
  65. livingproof-2.2.8/tests/unit/test_plugin_management.py +716 -0
  66. livingproof-2.2.8/tests/unit/test_pypi_handoff.py +206 -0
  67. livingproof-2.2.8/tests/unit/test_pypi_release.py +145 -0
  68. livingproof-2.2.8/tests/unit/test_registry_consumer_plan.py +97 -0
  69. livingproof-2.2.8/tests/unit/test_release_assets.py +71 -0
  70. livingproof-2.2.8/tests/unit/test_release_consumption.py +71 -0
  71. livingproof-2.2.8/tests/unit/test_released_manual.py +145 -0
  72. livingproof-2.2.8/tests/unit/test_root_image_publication.py +25 -0
  73. livingproof-2.2.8/tests/unit/test_root_only_build.py +27 -0
  74. livingproof-2.2.8/tests/unit/test_runtime_pins.py +111 -0
  75. livingproof-2.2.8/tests/unit/test_task_image.py +19 -0
  76. livingproof-2.2.8/tests/unit/test_test_results.py +343 -0
  77. livingproof-2.2.8/tests/unit/test_version.py +115 -0
  78. livingproof-2.2.8/tools/bash_session.py +56 -0
  79. livingproof-2.2.8/tools/build_test_plugin.py +63 -0
  80. livingproof-2.2.8/tools/checksums.py +11 -0
  81. livingproof-2.2.8/tools/compatibility_summary.py +50 -0
  82. livingproof-2.2.8/tools/completion_probe.py +75 -0
  83. livingproof-2.2.8/tools/completion_startup_probe.py +87 -0
  84. livingproof-2.2.8/tools/consumer_probe.py +63 -0
  85. livingproof-2.2.8/tools/debian.py +61 -0
  86. livingproof-2.2.8/tools/development_image.py +73 -0
  87. livingproof-2.2.8/tools/distributions.py +113 -0
  88. livingproof-2.2.8/tools/docs.py +217 -0
  89. livingproof-2.2.8/tools/docs_compatibility.py +70 -0
  90. livingproof-2.2.8/tools/docs_portal.py +52 -0
  91. livingproof-2.2.8/tools/feature_results.py +62 -0
  92. livingproof-2.2.8/tools/fetch_common.py +92 -0
  93. livingproof-2.2.8/tools/fetch_reporter.py +99 -0
  94. livingproof-2.2.8/tools/install_plugin.py +10 -0
  95. livingproof-2.2.8/tools/plugin_fixture.py +34 -0
  96. livingproof-2.2.8/tools/plugin_management_probe.py +124 -0
  97. livingproof-2.2.8/tools/probe_arguments.py +10 -0
  98. livingproof-2.2.8/tools/pypi_handoff.py +189 -0
  99. livingproof-2.2.8/tools/pypi_release.py +99 -0
  100. livingproof-2.2.8/tools/release_assets.py +36 -0
  101. livingproof-2.2.8/tools/released_manual.py +98 -0
  102. livingproof-2.2.8/tools/smoke.py +101 -0
  103. livingproof-2.2.8/tools/test_plugin_lifecycle.py +52 -0
  104. livingproof-2.2.8/tools/test_results.py +355 -0
  105. livingproof-2.2.8/uv.lock +958 -0
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "Living Proof Labs",
3
+ "image": "ghcr.io/living-proof-labs/livingproof:2.2.7-development@sha256:464b0fd02f7a5d39bf593d1fd20fd0e1930bfdd07af367f6d0e7649cf18b30be",
4
+ "remoteUser": "vscode",
5
+ "updateRemoteUserUID": true,
6
+ "containerEnv": {
7
+ "HTTP_PROXY": "${localEnv:HTTP_PROXY}",
8
+ "HTTPS_PROXY": "${localEnv:HTTPS_PROXY}",
9
+ "NO_PROXY": "${localEnv:NO_PROXY}",
10
+ "http_proxy": "${localEnv:http_proxy}",
11
+ "https_proxy": "${localEnv:https_proxy}",
12
+ "no_proxy": "${localEnv:no_proxy}"
13
+ },
14
+ "mounts": [
15
+ "source=${localEnv:DEV_CA_BUNDLE:/dev/null},target=/run/livingproof/extra-ca.crt,type=bind,readonly"
16
+ ],
17
+ "postCreateCommand": ". /usr/local/bin/dev-ca-env.sh && task setup && livingproof --help",
18
+ "customizations": {
19
+ "vscode": {
20
+ "extensions": [
21
+ "ms-python.python"
22
+ ],
23
+ "settings": {
24
+ "python.defaultInterpreterPath": "/opt/livingproof-dev/venv/bin/python"
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,6 @@
1
+ .git
2
+ .venv
3
+ __pycache__
4
+ .pytest_cache
5
+ .ruff_cache
6
+ artifacts
@@ -0,0 +1,88 @@
1
+ <!-- SPDX-License-Identifier: Apache-2.0 -->
2
+ # Publish the verified documentation
3
+
4
+ The read-only `stable-manual` builder in `verify.yml` runs only after successful verification,
5
+ package/image finalization, immutable release publication and public consumption on
6
+ `main`. Pull requests and pre-publication package jobs build development previews;
7
+ they cannot deploy. No additional token or permission grant is introduced. The
8
+ builder uses only `contents: read` to check the release and build/test its manual.
9
+ The separate `documentation` deployment job retains only `pages: write` and
10
+ `id-token: write`. It never checks out or executes repository code, installs
11
+ dependencies, runs containers or starts a browser.
12
+
13
+ The release tag must resolve to the same commit as the verified workflow. Its
14
+ published stable release record must be immutable and match the selected version.
15
+ Inside the deployment concurrency lock, the job reads the public repository's
16
+ current `main` without credentials immediately before the deployment action. Stale runs skip delivery; missing, malformed
17
+ or unavailable refs fail closed. Release jobs are not cancelled.
18
+
19
+ The builder downloads the same run's versioned package images,
20
+ wheelhouse and scenario results. It rebuilds the manual from the checked release
21
+ tag and tested packages, checks browser behavior, and uploads
22
+ `released-manual-VERSION-amd64` for review. The root wheel hash must match the
23
+ GitHub SHA-256 digest of that wheel asset in the actual immutable release; a
24
+ same-run archive alone is insufficient. Missing release asset digests fail closed.
25
+
26
+ The builder uploads the Pages tar once as `github-pages-RUN_ID-BUILD_ATTEMPT`,
27
+ without overwrite, and emits its native artifact ID and tar SHA-256. Deployment
28
+ reads the artifact independently by exact native ID and exact attempt-qualified
29
+ name using the same-run artifact service. Each lookup permits at most one
30
+ workflow retry after failure, with a separate staging directory for every read.
31
+ Both successful readbacks must match the builder tar SHA-256 without extracting
32
+ the tar. Failure or mismatched bytes block deployment. The same verified name
33
+ is passed to the pinned Pages action. A deploy-only retry may
34
+ reuse the successful builder attempt; it cannot select an unrelated artifact. It does not regenerate
35
+ or replace scenario outcomes. All directly invoked Actions retain full commit pins.
36
+
37
+ Visible identity and `build.json` record the release tag, version, source commit,
38
+ verification run, wheel digest, reporter release and scenario source digest.
39
+ Candidate `0.0.0` output remains a preview; it cannot become a stable manual by
40
+ renaming an artifact. This is bounded verification, not an exhaustive coverage claim.
41
+ See [release operation](RELEASE.md#released-manual-delivery) for delivery-only retry
42
+ using the same existing release without creating another tag.
43
+
44
+ ## One-time repository setup
45
+
46
+ Pages publication was explicitly approved. With the authorized Rivet account:
47
+
48
+ 1. Open <https://github.com/Living-Proof-Labs/livingproof/settings/pages>.
49
+ 2. Under **Build and deployment**, set **Source** to **GitHub Actions**.
50
+ 3. Preserve the existing organization Pages domain setup; this renderer change
51
+ requires no repository domain or DNS changes.
52
+ 4. Inspect the `github-pages` environment and retain a deployment branch policy
53
+ restricted to `main`; do not expand it to pull request branches.
54
+
55
+ The connected GitHub tools do not expose a Pages-settings or homepage write action.
56
+ The configure-pages Action requires Pages to be enabled already; automatic
57
+ `enablement` would need another token, which this workflow deliberately does not
58
+ request. No org-wide permission change is needed.
59
+
60
+ ## Public URL and actual live verification
61
+
62
+ For downloaded artifacts, follow the [HTTP preview instructions](../docs/verification.md#preview-a-downloaded-manual).
63
+ Direct opening through Android `content://` providers may break sibling pages,
64
+ styles or search even after full extraction; do not treat it as a missing build.
65
+
66
+ For each independently reviewed update, use the deployment job's emitted
67
+ `page_url` as the authoritative URL. The verified canonical project URL is
68
+ `https://docs.livingprooflabs.com/livingproof/`. Verify the newly deployed revision
69
+ there after each renderer change. Then:
70
+
71
+ - Open the public URL in a browser, follow navigation to Command reference,
72
+ Executable scenarios, and Build and verification provenance, and return home.
73
+ - Inspect root/plugin commands and their nested terminal help; confirm styles and
74
+ scripts load under the `/livingproof/` project path.
75
+ - Use the site's search box for `plugins` and open a command-reference result.
76
+ Repeat with `manifest` and open a scenario result. Checking a generated search index alone
77
+ does not demonstrate working interactive search.
78
+ - Compare `build.json` and `feature-results.json` with the deployed run/commit.
79
+ - Record the URL, run, commit, browser results and any failure in the PR. Add the
80
+ verified URL prominently at the top of README and as the repository About
81
+ website/homepage when its verified destination changes. The current README and
82
+ homepage already link the canonical manual.
83
+
84
+ The one-day `github-pages-RUN_ID-BUILD_ATTEMPT` artifact is deployment staging. The existing review
85
+ artifact has 14-day retention. Neither expiration removes the deployed manual:
86
+ the hosted site remains until replaced, unpublished, or Pages is disabled. This
87
+ setup is a single current manual, not permanent per-release archives or retention
88
+ of all historical test reports. A failed new build leaves the previous deployment.
@@ -0,0 +1,71 @@
1
+ <!-- SPDX-License-Identifier: Apache-2.0 -->
2
+ # Release operation
3
+
4
+ Native amd64 and arm64 CI builds wheel/source, pure-Python `all.deb`, and a root-only
5
+ container image. Root wheelhouse dependencies retain locked checksums; neutral plugin packages
6
+ are test-only and never published.
7
+
8
+ The same candidate Debian asset built on amd64 is consumed on both CPUs with the
9
+ local neutral plugin `.deb` in Debian 12, Debian 13 and Ubuntu 24.04. Pytest cases
10
+ are ingested into GitHub Checks; the actual devcontainer lifecycle is a separate
11
+ gate. Verification must pass before the shared semantic-release workflow at
12
+ v4.0.0 creates a draft. Release-version packages are rebuilt and tested. The same
13
+ saved root images are transferred through 14-day CI artifacts, pushed with the
14
+ existing workflow token, and combined into a version-specific root manifest.
15
+ No new reporting variant is published.
16
+ Fresh native amd64 and arm64 runners use empty Docker credential configurations
17
+ to pull immutable registry digests and exercise installed packages and entrypoints.
18
+ Publication depends on both registry-consumption jobs succeeding.
19
+
20
+ Only wheels, source archives, Debian packages, compatibility reports, registry
21
+ identity/run instructions and their checksums are attached to routine releases.
22
+ Release notes include the verified digests, platforms and copy/paste commands.
23
+ Public package consumption subsequently repeats the installed tests, fetching
24
+ containers through those digest references instead of public archive attachments.
25
+ Internal CI image archives remain available for exact build/test/publish transfers.
26
+ Offline image exports are an explicit consumer operation, not routine duplication.
27
+
28
+ Use only the existing workflow token. Do not change package visibility, Actions
29
+ access, security settings or grants to recover a failed registry step without
30
+ exact approval. Report the exact package/repository and failed operation. Registry
31
+ failure leaves the release draft unpublished; inspect the failed jobs and existing
32
+ registry tags before recovery. Do not delete existing releases, assets, manifests
33
+ or layers. Candidate artifact expiry does not authorize registry cleanup.
34
+
35
+ A failed prepublication build leaves a draft. Inspect it before recovery, reuse it,
36
+ and never retarget published tags or overwrite public assets. Generated release
37
+ notes stay on GitHub. Follow the
38
+ [shared release procedure](https://github.com/Living-Proof-Labs/collaboration-guidelines/blob/v4.0.0/docs/releases.md).
39
+ Old wheel/source-only releases remain unchanged. No PyPI publication is configured.
40
+
41
+ ## Released manual delivery
42
+
43
+ The unversioned verification and draft package builds produce development previews.
44
+ After package/image finalization and public consumption pass, the read-only stable-manual job
45
+ checks out the exact release tag, verifies equality with the verified workflow commit,
46
+ and requires a published, stable, immutable release. It rebuilds the manual using the
47
+ tested versioned wheel, saved images and scenario results, then runs browser checks.
48
+ The visible manual identity and build record contain the same release version and tag.
49
+ Pages retains its serialized current-main check; stale runs cannot replace it.
50
+
51
+ For a delivery-only failure, rerun the failed documentation job from the original
52
+ successful release run while its one-day Pages artifact still exists. If the
53
+ builder failed, rerun that failed job while its 14-day package and scenario
54
+ artifacts exist; each builder attempt creates a distinct Pages artifact.
55
+ Builder recovery reads the same release and tag without rerunning semantic-release or uploading
56
+ release assets. Expired artifacts, an unavailable release, a dirty source tree or a
57
+ mismatched tag/version/commit fail closed. Recover draft package/image failures using
58
+ the existing procedure above; do not retag or republish to repair documentation.
59
+ No tags are backfilled and no existing release assets are changed by this migration.
60
+
61
+ ## Upstream Common inputs
62
+
63
+ Living Proof publishes only its own wheel, source archive and Debian package,
64
+ plus compatibility/registry evidence and SHA256SUMS. Common's wheel remains an
65
+ internal verified build input for offline images; neither Common package is
66
+ republished. `task package` stages only that wheel. `task test:installed` fetches
67
+ the exact locked wheel and Debian package from Common's immutable release and
68
+ checks upstream asset digests/checksums before native apt and Python consumption.
69
+ Root Debian Depends is derived from the same uv.lock selection. Release metadata
70
+ and checksum lookups still occur when staging Common; removing its Debian build
71
+ input does not remove all network requests.
@@ -0,0 +1,65 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ name: Publish individual test results
3
+ description: >
4
+ Publish JUnit cases in the job summary and one completed check run.
5
+ A check API failure is a warning. Failed, missing, or unreadable reports still fail the job.
6
+ inputs:
7
+ name:
8
+ required: true
9
+ description: Unique test check and artifact name
10
+ path:
11
+ required: true
12
+ description: JUnit report pattern
13
+ runs:
14
+ using: composite
15
+ steps:
16
+ # Summary mode writes the case list and does not create a check run.
17
+ # continue-on-error keeps a reporter failure off the job result; the next step is the gate.
18
+ - name: Individual cases in run summary
19
+ id: summary
20
+ if: ${{ !cancelled() }}
21
+ continue-on-error: true
22
+ uses: dorny/test-reporter@d1b5dff021aa968b288b02285a8bf47471c5928a
23
+ with:
24
+ name: ${{ inputs.name }}
25
+ path: ${{ inputs.path }}
26
+ reporter: python-xunit
27
+ use-actions-summary: 'true'
28
+ collapsed: never
29
+ fail-on-error: 'true'
30
+ fail-on-empty: 'true'
31
+ - name: JUnit gate and completed check run
32
+ id: checks
33
+ if: ${{ !cancelled() }}
34
+ shell: bash
35
+ env:
36
+ GITHUB_TOKEN: ${{ github.token }}
37
+ GITHUB_REPOSITORY: ${{ github.repository }}
38
+ HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
39
+ REPORT_NAME: ${{ inputs.name }}
40
+ REPORT_PATH: ${{ inputs.path }}
41
+ PUBLISH_CHECK: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
42
+ run: python tools/test_results.py --name "$REPORT_NAME" --path "$REPORT_PATH" --publish-check "$PUBLISH_CHECK"
43
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
44
+ id: raw
45
+ if: ${{ !cancelled() }}
46
+ with:
47
+ name: ${{ inputs.name }}-junit
48
+ path: ${{ inputs.path }}
49
+ if-no-files-found: error
50
+ retention-days: 14
51
+ - name: Evidence links and counts
52
+ if: ${{ !cancelled() }}
53
+ shell: bash
54
+ env:
55
+ CHECK_URL: ${{ steps.checks.outputs.url_html }}
56
+ REPORT_URL: ${{ steps.raw.outputs.artifact-url }}
57
+ PASSED: ${{ steps.checks.outputs.passed }}
58
+ FAILED: ${{ steps.checks.outputs.failed }}
59
+ SKIPPED: ${{ steps.checks.outputs.skipped }}
60
+ run: |
61
+ printf '\nIndividual results: [%s](%s) — passed %s, failed %s, skipped %s.\n' 'Check view' "$CHECK_URL" "$PASSED" "$FAILED" "$SKIPPED" >> "$GITHUB_STEP_SUMMARY"
62
+ printf '\n[Raw JUnit reports](%s), retained for 14 days.\n' "$REPORT_URL" >> "$GITHUB_STEP_SUMMARY"
63
+ if [ -z "$CHECK_URL" ]; then
64
+ echo 'Checks ingestion is unavailable for this fork/token; the summary and raw reports remain the available evidence.' >> "$GITHUB_STEP_SUMMARY"
65
+ fi
@@ -0,0 +1,61 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ name: Queue Living Proof PyPI publication
3
+ run-name: >-
4
+ Living Proof PyPI handoff @ ${{ github.event.workflow_run.head_sha }}
5
+ (release verification ${{ github.event.workflow_run.id }} attempt ${{ github.event.workflow_run.run_attempt }})
6
+ on:
7
+ workflow_run:
8
+ workflows: ["Verify, package and release"]
9
+ types: [completed]
10
+ branches: [main]
11
+ permissions: {}
12
+ concurrency:
13
+ group: livingproof-pypi-handoff-${{ github.event.workflow_run.head_sha }}
14
+ cancel-in-progress: false
15
+ jobs:
16
+ identify:
17
+ if: >-
18
+ github.repository == 'Living-Proof-Labs/livingproof' &&
19
+ github.ref == 'refs/heads/main' && github.ref_protected &&
20
+ github.event.workflow_run.path == '.github/workflows/verify.yml' &&
21
+ github.event.workflow_run.event == 'push' &&
22
+ github.event.workflow_run.head_branch == 'main' &&
23
+ github.event.workflow_run.head_repository.full_name == github.repository &&
24
+ github.event.workflow_run.head_repository.id == github.event.repository.id &&
25
+ github.event.workflow_run.conclusion == 'success'
26
+ runs-on: ubuntu-24.04
27
+ timeout-minutes: 5
28
+ permissions:
29
+ actions: read
30
+ contents: read
31
+ outputs:
32
+ tag: ${{ steps.release.outputs.tag }}
33
+ steps:
34
+ # Check out only the protected-main receiver code, never triggering workflow data.
35
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
36
+ with:
37
+ persist-credentials: false
38
+ fetch-depth: 0
39
+ fetch-tags: true
40
+ - name: Identify a successfully published Living Proof release
41
+ id: release
42
+ env:
43
+ GH_TOKEN: ${{ github.token }}
44
+ VERIFY_RUN_ID: ${{ github.event.workflow_run.id }}
45
+ VERIFY_RUN_ATTEMPT: ${{ github.event.workflow_run.run_attempt }}
46
+ SOURCE_SHA: ${{ github.event.workflow_run.head_sha }}
47
+ run: python3 -m tools.pypi_handoff discover
48
+
49
+ dispatch:
50
+ needs: identify
51
+ if: needs.identify.outputs.tag != ''
52
+ runs-on: ubuntu-24.04
53
+ timeout-minutes: 5
54
+ permissions:
55
+ actions: write
56
+ contents: read
57
+ steps:
58
+ - uses: Living-Proof-Labs/collaboration-guidelines/.github/actions/dispatch-pypi@03e25e8967c9c9ba482cc2742040348988081bca # v9.14.1
59
+ with:
60
+ tag: ${{ needs.identify.outputs.tag }}
61
+ source-sha: ${{ github.event.workflow_run.head_sha }}
@@ -0,0 +1,238 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ name: Native packages and installed consumers
3
+ on:
4
+ workflow_call:
5
+ inputs:
6
+ version:
7
+ required: true
8
+ type: string
9
+ development-artifact-version:
10
+ type: string
11
+ default: ''
12
+ release-tag:
13
+ type: string
14
+ default: ''
15
+ permissions:
16
+ contents: read
17
+ jobs:
18
+ build:
19
+ permissions:
20
+ contents: read
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ include:
25
+ - architecture: amd64
26
+ runner: ubuntu-24.04
27
+ - architecture: arm64
28
+ runner: ubuntu-24.04-arm
29
+ runs-on: ${{ matrix.runner }}
30
+ env:
31
+ LIVINGPROOF_DEVELOPMENT_IMAGE: ghcr.io/living-proof-labs/livingproof:${{ inputs.version }}-development-${{ matrix.architecture }}
32
+ SETUPTOOLS_SCM_PRETEND_VERSION: ${{ inputs.version }}
33
+ steps:
34
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
35
+ with:
36
+ ref: ${{ inputs.release-tag || github.event.pull_request.head.sha || github.sha }}
37
+ fetch-depth: 0
38
+ persist-credentials: false
39
+ - name: Check selected package source
40
+ env:
41
+ RELEASE_TAG: ${{ inputs.release-tag }}
42
+ RELEASE_VERSION: ${{ inputs.version }}
43
+ run: python tools/released_manual.py source
44
+ - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
45
+ with:
46
+ version: '0.13.10'
47
+ prune-cache: false
48
+ - uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e
49
+ with:
50
+ version: '3.54.0'
51
+ - run: task setup DOCS=${{ matrix.architecture == 'amd64' && 'true' || 'false' }}
52
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
53
+ if: inputs.development-artifact-version != ''
54
+ with:
55
+ name: packages-${{ inputs.development-artifact-version }}-${{ matrix.architecture }}
56
+ path: downloaded/development-input
57
+ - name: Reuse the already verified development image for release packaging
58
+ if: inputs.development-artifact-version != ''
59
+ run: python tools/development_image.py reuse "${{ matrix.architecture }}" downloaded/development-input
60
+ - run: task dev:build
61
+ if: inputs.development-artifact-version == ''
62
+ - name: Save the exact development image before packaging
63
+ run: python tools/development_image.py save "${{ matrix.architecture }}"
64
+ - run: task dev:verify
65
+ - name: Build wheel, source and Debian in the shared development image
66
+ env:
67
+ LIVINGPROOF_GITHUB_TOKEN: ${{ github.token }}
68
+ run: docker compose run --pull never --rm --user "$(id -u):$(id -g)" -e SETUPTOOLS_SCM_PRETEND_VERSION -e LIVINGPROOF_GITHUB_TOKEN development bash -c 'task setup && task package'
69
+ - name: Require clean exact tagged wheel provenance
70
+ if: inputs.release-tag != ''
71
+ env:
72
+ RELEASE_TAG: ${{ inputs.release-tag }}
73
+ RELEASE_VERSION: ${{ inputs.version }}
74
+ run: python tools/released_manual.py wheel
75
+ - run: task images
76
+ - name: Smoke the candidate CLI offline
77
+ env:
78
+ VERSION: ${{ inputs.version }}
79
+ ARCH: ${{ matrix.architecture }}
80
+ run: |
81
+ set -euo pipefail
82
+ image="ghcr.io/living-proof-labs/livingproof:${VERSION}-${ARCH}"
83
+ docker load -i "dist/image-${ARCH}.tar"
84
+ docker run --rm --network none "$image" --help
85
+ docker run --rm --network none --entrypoint python -e EXPECTED_VERSION="$VERSION" "$image" -c 'import importlib.metadata as m, os; assert m.version("livingproof") == os.environ["EXPECTED_VERSION"]; print("livingproof", m.version("livingproof"))'
86
+ - name: Installed-user acceptance scenarios
87
+ if: ${{ !cancelled() && hashFiles('dist/image-*.tar') != '' }}
88
+ run: task test:features
89
+ - name: Scenario coverage and actual outcomes
90
+ if: ${{ !cancelled() }}
91
+ run: task features:results >> "$GITHUB_STEP_SUMMARY"
92
+ - name: Build browsable command and scenario documentation
93
+ if: ${{ !cancelled() && hashFiles('dist/image-*.tar') != '' }}
94
+ run: task docs
95
+ - name: Install the pinned Playwright Chromium browser
96
+ if: ${{ !cancelled() && matrix.architecture == 'amd64' && hashFiles('artifacts/docs/html/build.json') != '' }}
97
+ run: uv run --locked --no-sync --group docs-test playwright install --with-deps chromium
98
+ - name: Exercise manual navigation, search, themes and command sections
99
+ if: ${{ !cancelled() && matrix.architecture == 'amd64' && hashFiles('artifacts/docs/html/build.json') != '' }}
100
+ run: task test:docs
101
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
102
+ id: documentation
103
+ if: ${{ !cancelled() }}
104
+ with:
105
+ name: documentation-${{ inputs.version }}-${{ matrix.architecture }}
106
+ path: |
107
+ artifacts/docs/html/
108
+ artifacts/docs/screenshots/
109
+ artifacts/docs/source-manifest.json
110
+ artifacts/docs/installed-commands.json
111
+ artifacts/features/
112
+ artifacts/feature-tests.xml
113
+ if-no-files-found: error
114
+ retention-days: 14
115
+ - name: Link browsable documentation artifact
116
+ if: ${{ !cancelled() && steps.documentation.outputs.artifact-url != '' }}
117
+ env:
118
+ DOCS_URL: ${{ steps.documentation.outputs.artifact-url }}
119
+ run: echo "[Generated documentation and scenario evidence]($DOCS_URL) — extract the whole tree and serve docs/html over loopback HTTP (14-day retention; see verification guide)." >> "$GITHUB_STEP_SUMMARY"
120
+ - name: Checksum built package artifacts
121
+ env:
122
+ ARCH: ${{ matrix.architecture }}
123
+ run: |
124
+ set -euo pipefail
125
+ cd dist
126
+ assets=("image-${ARCH}.tar" "development-image-${ARCH}.tar")
127
+ if [ "$ARCH" = amd64 ]; then
128
+ assets+=(*.whl livingproof-*.tar.gz *.deb)
129
+ fi
130
+ sha256sum "${assets[@]}" > "SHA256SUMS-${ARCH}"
131
+ - name: Gate package JUnit locally without write credentials
132
+ if: ${{ !cancelled() }}
133
+ run: python tools/test_results.py --name "package-tests-${{ inputs.version }}-${{ matrix.architecture }}" --path 'artifacts/*tests.xml' --publish-check false
134
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
135
+ if: ${{ !cancelled() }}
136
+ with:
137
+ name: package-report-input-${{ inputs.version }}-${{ matrix.architecture }}
138
+ path: artifacts/*tests.xml
139
+ if-no-files-found: error
140
+ retention-days: 14
141
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
142
+ if: ${{ !cancelled() && hashFiles('dist/**') != '' }}
143
+ with:
144
+ name: packages-${{ inputs.version }}-${{ matrix.architecture }}
145
+ path: dist/
146
+ if-no-files-found: error
147
+ retention-days: 14
148
+ package-report:
149
+ needs: build
150
+ if: ${{ !cancelled() }}
151
+ runs-on: ubuntu-24.04
152
+ permissions:
153
+ contents: read
154
+ checks: write
155
+ strategy:
156
+ fail-fast: false
157
+ matrix:
158
+ architecture: [amd64, arm64]
159
+ steps:
160
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
161
+ with:
162
+ ref: ${{ inputs.release-tag || github.event.pull_request.head.sha || github.sha }}
163
+ persist-credentials: false
164
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
165
+ continue-on-error: true
166
+ with:
167
+ name: package-report-input-${{ inputs.version }}-${{ matrix.architecture }}
168
+ path: artifacts
169
+ - uses: ./.github/actions/test-results
170
+ if: ${{ !cancelled() }}
171
+ with:
172
+ name: package-tests-${{ inputs.version }}-${{ matrix.architecture }}
173
+ path: artifacts/*tests.xml
174
+ consume:
175
+ needs: [build, package-report]
176
+ permissions:
177
+ contents: read
178
+ checks: write
179
+ strategy:
180
+ fail-fast: false
181
+ matrix:
182
+ include:
183
+ - architecture: amd64
184
+ runner: ubuntu-24.04
185
+ - architecture: arm64
186
+ runner: ubuntu-24.04-arm
187
+ runs-on: ${{ matrix.runner }}
188
+ steps:
189
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
190
+ with:
191
+ ref: ${{ inputs.release-tag || github.event.pull_request.head.sha || github.sha }}
192
+ fetch-depth: 0
193
+ persist-credentials: false
194
+ - name: Check selected package source
195
+ env:
196
+ RELEASE_TAG: ${{ inputs.release-tag }}
197
+ RELEASE_VERSION: ${{ inputs.version }}
198
+ run: python tools/released_manual.py source
199
+ - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
200
+ with:
201
+ version: '0.13.10'
202
+ - uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e
203
+ with:
204
+ version: '3.54.0'
205
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
206
+ with:
207
+ name: packages-${{ inputs.version }}-${{ matrix.architecture }}
208
+ path: dist
209
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
210
+ with:
211
+ name: packages-${{ inputs.version }}-amd64
212
+ path: common
213
+ - name: Use the exact same candidate all.deb on both native architectures
214
+ run: |
215
+ (cd common && sha256sum --ignore-missing -c SHA256SUMS-amd64)
216
+ cp common/livingproof_*_all.deb dist/
217
+ - run: task setup
218
+ - run: task test:installed
219
+ env:
220
+ LIVINGPROOF_GITHUB_TOKEN: ${{ github.token }}
221
+ - name: Generate consumer evidence for the common Debian asset
222
+ if: ${{ !cancelled() }}
223
+ run: uv run --locked --no-sync python tools/compatibility_summary.py >> "$GITHUB_STEP_SUMMARY"
224
+ - uses: ./.github/actions/test-results
225
+ if: ${{ !cancelled() }}
226
+ with:
227
+ name: consumer-tests-${{ inputs.version }}-${{ matrix.architecture }}
228
+ path: artifacts/installed-tests.xml
229
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
230
+ if: ${{ !cancelled() }}
231
+ with:
232
+ name: consumed-${{ inputs.version }}-${{ matrix.architecture }}
233
+ path: |
234
+ dist/compatibility-*.json
235
+ dist/compatibility-*.md
236
+ dist/SHA256SUMS-*
237
+ if-no-files-found: error
238
+ retention-days: 14