diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6814bfa..dc4ba5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,10 +54,10 @@ jobs: python: ["3.11", "3.12", "3.13", "3.14", "3.15"] env: # WIRELOG_VERSION here is the exact wirelog ref CI builds against. - # The default is pinned to the wirelog v0.70.0 release commit; + # The default is pinned to the wirelog v0.72.0 release commit; # override the repository variable to test another ref before # updating this fallback. - WIRELOG_VERSION: ${{ vars.WIRELOG_VERSION || 'c353350232c35356b34085abf5780a2fcb81e80f' }} + WIRELOG_VERSION: ${{ vars.WIRELOG_VERSION || 'a782f54cdc13fa36dafb98ec4c80901cf240d3fe' }} # `runner.temp` is NOT available in job-level `env:` (only in # step-level contexts) — using it here caused the whole workflow # to fail at startup (#114). `github.workspace` IS resolvable at diff --git a/CHANGELOG.md b/CHANGELOG.md index 138b746..bf9634b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,16 @@ wirelog floor and a validated wirelog ref (see ## [Unreleased] +## [1.1.4] - 2026-11-25 + +### Changed +- The pin for bundled and validated wirelog builds + moves from `v0.70.0` to `v0.72.0` at peeled SHA + `a782f54cdc13fa36dafb98ec4c80901cf240d3fe`. +- The minimum compatible runtime wirelog version remains `0.52.0`. + This is a bundled-engine refresh; the PyreWire public API is unchanged. +- Update wheel and release workflows to `pypa/cibuildwheel@v4.3.5`. + ## [1.1.3] - 2026-10-25 ### Added @@ -364,7 +374,8 @@ runtime wirelog version remaining `0.44.0`. wirelog#852. They are available in the later [1.0.0] line, whose validated wirelog ref is v0.50.0. Tracked in wirelog#859. -[Unreleased]: https://github.com/semantic-reasoning/PyreWire/compare/v1.1.3...HEAD +[Unreleased]: https://github.com/semantic-reasoning/PyreWire/compare/v1.1.4...HEAD +[1.1.4]: https://github.com/semantic-reasoning/PyreWire/compare/v1.1.3...v1.1.4 [1.1.3]: https://github.com/semantic-reasoning/PyreWire/compare/v1.1.2...v1.1.3 [1.1.2]: https://github.com/semantic-reasoning/PyreWire/compare/v1.1.1...v1.1.2 [1.1.1]: https://github.com/semantic-reasoning/PyreWire/compare/v1.0.6...v1.1.1 diff --git a/docs/release-candidate-checklist.md b/docs/release-candidate-checklist.md index ca38822..9c261d2 100644 --- a/docs/release-candidate-checklist.md +++ b/docs/release-candidate-checklist.md @@ -1,17 +1,17 @@ -# v1.1.3 release candidate checklist +# v1.1.4 release candidate checklist -The v1.1.3 tag must not be cut until every gate below passes on the exact release commit. +The v1.1.4 tag must not be cut until every gate below passes on the exact release commit. Freeze the release commit first: ```bash git rev-parse HEAD ``` -Record that SHA in the release issue or release PR. The `v1.1.3` tag must point to that exact SHA before any publication step. If any gate fails, do not tag or publish; open or link a GitHub issue, PR, or follow-up task that captures the failure before retrying. +Record that SHA in the release issue or release PR. The `v1.1.4` tag must point to that exact SHA before any publication step. If any gate fails, do not tag or publish; open or link a GitHub issue, PR, or follow-up task that captures the failure before retrying. | Gate | Owner | Verification | Required evidence | Failure action | | --- | --- | --- | --- | --- | -| Release commit freeze | Release manager | Command: `git rev-parse HEAD`; manual verification that `v1.1.3` will be created at that SHA. | Recorded release commit SHA and confirmation that the `v1.1.3` tag points to the same SHA. | Link a GitHub issue, PR, or follow-up task and restart the checklist from the corrected commit. | +| Release commit freeze | Release manager | Command: `git rev-parse HEAD`; manual verification that `v1.1.4` will be created at that SHA. | Recorded release commit SHA and confirmation that the `v1.1.4` tag points to the same SHA. | Link a GitHub issue, PR, or follow-up task and restart the checklist from the corrected commit. | | Formatting | Release manager | Command: `black --check .`; command: `isort --check-only .`. | Passing command logs from the frozen release commit. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | | Lint and typing | Release manager | Command: `flake8 .`; command: `mypy src/pyrewire`. | Passing command logs from the frozen release commit. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | | Test suite | Release manager | Command: `pytest -q`. | Passing pytest log from the frozen release commit. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | @@ -24,12 +24,12 @@ Record that SHA in the release issue or release PR. The `v1.1.3` tag must point | Dependabot coverage | Release manager | Manual verification of `.github/dependabot.yml`: Dependabot is configured for both `github-actions` and `pip` at `/` on a regular schedule. | Linked review note referencing the merged `.github/dependabot.yml` and both ecosystems. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | | Release workflow dry run review | Release manager | Manual verification of `.github/workflows/release.yml`: it builds wheels, runs dynamic-link verification, performs clean install tests, verifies release-local wheels and sdist artifacts before publish, uses trusted publishing via OIDC, keeps least-privilege top-level permissions, restricts `id-token: write` to the publish jobs, separates TestPyPI and production PyPI trusted publishing into explicit `testpypi` and `pypi` GitHub environments, and publishes production only after tag-triggered gates pass. Do not actually tag or publish production during RC validation. | Linked review note confirming the tag-triggered `release.yml` gates, least-privilege/OIDC scope, separate publish environments, and no pre-tag production publish occurred. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | | TestPyPI dry run evidence | Release manager + Packaging owner | Manual verification: on the frozen RC commit, manually dispatch `.github/workflows/release.yml` with `publish-testpypi: true` and complete a TestPyPI end-to-end dry run before any production tag push. Use install command shape: `python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pyrewire==`. | Frozen commit SHA, successful `release.yml` workflow run URL, TestPyPI project/version URL, artifact filenames and candidate version, SHA256 hashes, successful TestPyPI upload logs, clean install command logs/results for Linux/macOS/Windows supported Python versions, import smoke output for `pyrewire.__version__` and `pyrewire.wirelog_version()`, confirmation wheel install uses bundled `libwirelog` with no system `libwirelog`, and documented sdist behavior if any sdist install behavior is intentional. Production PyPI release remains gated on this dry-run evidence. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | -| Artifact attestation verification | Release manager | Workflow: `.github/workflows/release.yml` publish jobs generate release artifact attestations using `actions/attest@v4`. For tagged release artifacts, command: `gh attestation verify -R semantic-reasoning/PyreWire --signer-workflow semantic-reasoning/PyreWire/.github/workflows/release.yml --source-ref refs/tags/v1.1.3` for every release wheel (`dist/pyrewire-*.whl`) and the sdist (`dist/pyrewire-*.tar.gz`). For RC/frozen-commit validation before the final tag exists, also verify with `--source-digest `. Repo-only `-R` verification alone is not sufficient for this gate. | Successful `release.yml` run URL, release tag or frozen RC commit SHA, artifact filenames, SHA256 hashes for each wheel/sdist, and successful `gh attestation verify` output showing enforced signer workflow and source identity (`--source-ref refs/tags/v1.1.3` or `--source-digest `) for each verified artifact. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | +| Artifact attestation verification | Release manager | Workflow: `.github/workflows/release.yml` publish jobs generate release artifact attestations using `actions/attest@v4`. For tagged release artifacts, command: `gh attestation verify -R semantic-reasoning/PyreWire --signer-workflow semantic-reasoning/PyreWire/.github/workflows/release.yml --source-ref refs/tags/v1.1.4` for every release wheel (`dist/pyrewire-*.whl`) and the sdist (`dist/pyrewire-*.tar.gz`). For RC/frozen-commit validation before the final tag exists, also verify with `--source-digest `. Repo-only `-R` verification alone is not sufficient for this gate. | Successful `release.yml` run URL, release tag or frozen RC commit SHA, artifact filenames, SHA256 hashes for each wheel/sdist, and successful `gh attestation verify` output showing enforced signer workflow and source identity (`--source-ref refs/tags/v1.1.4` or `--source-digest `) for each verified artifact. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | | Wheel dynamic-link check | Packaging owner | Command: `python scripts/ci/check_dynamic_link.py wheelhouse/*.whl`. | Passing command log for the release wheel artifacts. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | | Clean wheel install | Bindings owner | Manual verification in a clean environment with no system `libwirelog`: install the candidate wheel, import `pyrewire`, confirm PyreWire version, confirm bundled wirelog version, and run integration tests. | Environment description, install command log, import/version log, wirelog version log, and integration test log. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | -| Release notes and changelog | Release manager | Manual verification that the v1.1.3 changelog section is extractable and matches the GitHub Release body generated from `CHANGELOG.md`. | Extracted release notes artifact or command log plus reviewer confirmation. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | -| Metadata, API, support, and security consistency | Release manager | Manual verification that package metadata, public API stability, support matrix, and security policy all describe the same v1.1.3 contract. | Linked review note covering `pyproject.toml`, API stability docs, support docs, and `SECURITY.md`. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | +| Release notes and changelog | Release manager | Manual verification that the v1.1.4 changelog section is extractable and matches the GitHub Release body generated from `CHANGELOG.md`. | Extracted release notes artifact or command log plus reviewer confirmation. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | +| Metadata, API, support, and security consistency | Release manager | Manual verification that package metadata, public API stability, support matrix, and security policy all describe the same v1.1.4 contract. | Linked review note covering `pyproject.toml`, API stability docs, support docs, and `SECURITY.md`. | Link a GitHub issue, PR, or follow-up task before retrying or tagging. | Attestation verification for this gate requires signer workflow and source identity constraints; repo-only verification is not treated as sufficient provenance evidence for PyreWire release artifacts. -This does not independently attest upstream wirelog builds. For bundled wirelog traceability, rely on the pinned wirelog v0.70.0 SHA `c353350232c35356b34085abf5780a2fcb81e80f` in release configuration and docs, plus the wheel dynamic-link and clean-install gates above. +This does not independently attest upstream wirelog builds. For bundled wirelog traceability, rely on the pinned wirelog v0.72.0 SHA `a782f54cdc13fa36dafb98ec4c80901cf240d3fe` in release configuration and docs, plus the wheel dynamic-link and clean-install gates above. External blocker for the TestPyPI dry run gate: TestPyPI trusted publishing must be configured for the `.github/workflows/release.yml` workflow identity with GitHub environment `testpypi` before dry-run uploads can pass. diff --git a/docs/support.md b/docs/support.md index 44f670b..4e2e782 100644 --- a/docs/support.md +++ b/docs/support.md @@ -19,8 +19,8 @@ not need to install wirelog separately. | macOS | `arm64` | `macos-15` | Apple Silicon only for v1; no macOS Intel or universal2 wheel is produced. | | Windows | `win_amd64` / `AMD64` | `windows-2025-vs2026` | Built with MSVC and repaired with delvewheel. | -The bundled library is built from wirelog v0.70.0, using peeled SHA -`c353350232c35356b34085abf5780a2fcb81e80f`. +The bundled library is built from wirelog v0.72.0, using peeled SHA +`a782f54cdc13fa36dafb98ec4c80901cf240d3fe`. ## Source Distributions diff --git a/docs/versioning.md b/docs/versioning.md index 42f7b5b..5725a64 100644 --- a/docs/versioning.md +++ b/docs/versioning.md @@ -53,7 +53,7 @@ release to publish; it is **not** tied to the wirelog change. ## Current development pin The current development branch builds and validates against wirelog -`v0.70.0` at peeled SHA `c353350232c35356b34085abf5780a2fcb81e80f`. +`v0.72.0` at peeled SHA `a782f54cdc13fa36dafb98ec4c80901cf240d3fe`. The minimum compatible runtime wirelog version remains `0.52.0`. ## Compatibility table @@ -70,6 +70,7 @@ The minimum compatible runtime wirelog version remains `0.52.0`. | `1.1.1` | `0.52.0` | `39a57cf3c4cdf02f97df0e951fe8ecea7a831e2c` | Validated against wirelog `v0.62.0` (peeled tag SHA); runtime minimum remains `0.52.0`. Typed Session methods require `0.60.0` or newer. Includes the arithmetic precedence change from wirelog `0.61.0`; expressions may produce different results (see changelog). | | `1.1.2` | `0.52.0` | `c353350232c35356b34085abf5780a2fcb81e80f` | Validated against wirelog `v0.70.0` (peeled tag SHA); runtime minimum remains `0.52.0`. Bundled-engine refresh; the PyreWire public API is unchanged. | | `1.1.3` | `0.52.0` | `c353350232c35356b34085abf5780a2fcb81e80f` | Adds CPython 3.15 wheels and CI coverage. Bundled wirelog remains `v0.70.0`; the runtime minimum and public API are unchanged. | +| `1.1.4` | `0.52.0` | `a782f54cdc13fa36dafb98ec4c80901cf240d3fe` | Validated against wirelog `v0.72.0` (peeled tag SHA); runtime minimum remains `0.52.0`. Bundled-engine refresh; the PyreWire public API is unchanged. | The table grows with every release; the source of truth is the [CHANGELOG](https://github.com/semantic-reasoning/PyreWire/blob/main/CHANGELOG.md). diff --git a/pyproject.toml b/pyproject.toml index 35f58e7..94470ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pyrewire" -version = "1.1.3" +version = "1.1.4" description = "Python wrapper for wirelog - declarative dataflow analysis" readme = "README.md" requires-python = ">=3.11" @@ -75,7 +75,7 @@ test-requires = ["pytest", "pytest-cov"] before-build = "python {project}/scripts/bundle_libwirelog.py" # Pin the wirelog source ref here too so the environment matches the # `WIRELOG_VERSION` used by the test-matrix workflow. -environment = { WIRELOG_VERSION = "c353350232c35356b34085abf5780a2fcb81e80f" } +environment = { WIRELOG_VERSION = "a782f54cdc13fa36dafb98ec4c80901cf240d3fe" } [tool.cibuildwheel.linux] manylinux-x86_64-image = "manylinux_2_28" @@ -84,7 +84,7 @@ before-all = """ pip install meson && \ WIRELOG_PREFIX=/wirelog-install bash {project}/scripts/build_wirelog.sh """ -environment = { WIRELOG_VERSION = "c353350232c35356b34085abf5780a2fcb81e80f", WIRELOG_PREFIX = "/wirelog-install", WIRELOG_LIB = "/wirelog-install/lib/libwirelog.so.1", LD_LIBRARY_PATH = "/wirelog-install/lib" } +environment = { WIRELOG_VERSION = "a782f54cdc13fa36dafb98ec4c80901cf240d3fe", WIRELOG_PREFIX = "/wirelog-install", WIRELOG_LIB = "/wirelog-install/lib/libwirelog.so.1", LD_LIBRARY_PATH = "/wirelog-install/lib" } # `auditwheel` bundles libwirelog.so.1 into the wheel and patches the # RPATH (#31). Without this every wheel would ship as a manylinux # wheel that immediately fails at import time on systems without the @@ -97,7 +97,7 @@ before-all = """ brew install ninja meson pkg-config && \ WIRELOG_PREFIX=$HOME/wirelog-install bash {project}/scripts/build_wirelog.sh """ -environment = { WIRELOG_VERSION = "c353350232c35356b34085abf5780a2fcb81e80f", WIRELOG_PREFIX = "$HOME/wirelog-install", WIRELOG_LIB = "$HOME/wirelog-install/lib/libwirelog.1.dylib", DYLD_LIBRARY_PATH = "$HOME/wirelog-install/lib" } +environment = { WIRELOG_VERSION = "a782f54cdc13fa36dafb98ec4c80901cf240d3fe", WIRELOG_PREFIX = "$HOME/wirelog-install", WIRELOG_LIB = "$HOME/wirelog-install/lib/libwirelog.1.dylib", DYLD_LIBRARY_PATH = "$HOME/wirelog-install/lib" } # `delocate` is macOS's auditwheel equivalent — copies the dylib into # the wheel and rewrites install names so the bundled copy wins. repair-wheel-command = "DYLD_LIBRARY_PATH=$HOME/wirelog-install/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}" @@ -105,7 +105,7 @@ repair-wheel-command = "DYLD_LIBRARY_PATH=$HOME/wirelog-install/lib delocate-whe [tool.cibuildwheel.windows] archs = ["AMD64"] before-all = "powershell {project}\\scripts\\build_wirelog.ps1" -environment = { WIRELOG_VERSION = "c353350232c35356b34085abf5780a2fcb81e80f", WIRELOG_PREFIX = "C:/wirelog-install", WIRELOG_LIB = "C:/wirelog-install/bin/wirelog-1.dll" } +environment = { WIRELOG_VERSION = "a782f54cdc13fa36dafb98ec4c80901cf240d3fe", WIRELOG_PREFIX = "C:/wirelog-install", WIRELOG_LIB = "C:/wirelog-install/bin/wirelog-1.dll" } # `delvewheel` is the Windows analogue. The bundled DLL ends up in # `pyrewire/_lib/` and the loader (#2) finds it ahead of system paths. repair-wheel-command = "pip install delvewheel && delvewheel repair -w {dest_dir} --no-mangle-all --add-path C:/wirelog-install/bin {wheel}" diff --git a/src/pyrewire/__init__.py b/src/pyrewire/__init__.py index fb91447..c81d79f 100644 --- a/src/pyrewire/__init__.py +++ b/src/pyrewire/__init__.py @@ -1,7 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later """PyreWire - Python wrapper for wirelog declarative dataflow analysis.""" -__version__ = "1.1.3" +__version__ = "1.1.4" __author__ = "PyreWire Contributors" __license__ = "Apache-2.0 OR GPL-3.0-or-later" diff --git a/tests/data/wirelog_abi.txt b/tests/data/wirelog_abi.txt index 82e47a6..4f5195e 100644 --- a/tests/data/wirelog_abi.txt +++ b/tests/data/wirelog_abi.txt @@ -9,6 +9,7 @@ wirelog_easy_close wirelog_easy_insert wirelog_easy_insert_sym wirelog_easy_intern +wirelog_easy_lookup_symbol wirelog_easy_make_compound wirelog_easy_open wirelog_easy_open_opts @@ -17,6 +18,9 @@ wirelog_easy_remove wirelog_easy_remove_sym wirelog_easy_set_delta_cb wirelog_easy_snapshot +wirelog_easy_source_count +wirelog_easy_source_key_exists +wirelog_easy_source_validate wirelog_easy_step wirelog_error_string wirelog_evaluate @@ -79,18 +83,28 @@ wirelog_result_free wirelog_result_get_relation wirelog_result_relation_cardinality wirelog_result_write_csv +wirelog_session_append_cold_input +wirelog_session_begin_cold_input wirelog_session_create +wirelog_session_create_with_options wirelog_session_create_with_snapshot wirelog_session_destroy +wirelog_session_finish_cold_input wirelog_session_insert wirelog_session_insert_typed +wirelog_session_lookup_symbol wirelog_session_make_compound wirelog_session_make_compound_typed wirelog_session_remove wirelog_session_remove_typed +wirelog_session_seal_input +wirelog_session_seal_join_input wirelog_session_set_delta_cb wirelog_session_set_typed_delta_cb wirelog_session_snapshot wirelog_session_snapshot_typed +wirelog_session_source_count +wirelog_session_source_key_exists +wirelog_session_source_validate wirelog_session_step wirelog_version_string diff --git a/tests/docs/test_release_candidate_checklist.py b/tests/docs/test_release_candidate_checklist.py index 95bc0af..a871db1 100644 --- a/tests/docs/test_release_candidate_checklist.py +++ b/tests/docs/test_release_candidate_checklist.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later -"""Regression coverage for the v1.1.3 release candidate checklist.""" +"""Regression coverage for the v1.1.4 release candidate checklist.""" from __future__ import annotations @@ -74,7 +74,7 @@ def test_release_commit_freeze_and_tag_gating_are_explicit(): text = _checklist() assert "git rev-parse HEAD" in text - assert "The `v1.1.3` tag must point to that exact SHA" in text + assert "The `v1.1.4` tag must point to that exact SHA" in text assert "must not be cut until every gate below passes on the exact release commit" in text assert "do not tag or publish" in text @@ -166,7 +166,7 @@ def test_testpypi_dry_run_gate_and_evidence_requirements_are_documented(): def test_release_notes_and_consistency_checks_are_documented(): text = _checklist() for required in ( - "v1.1.3 changelog section", + "v1.1.4 changelog section", "GitHub Release body", "CHANGELOG.md", "package metadata", @@ -186,7 +186,7 @@ def test_release_security_baseline_and_provenance_scope_are_documented(): "Dependabot is configured for both `github-actions` and `pip` at `/` on a regular schedule", "gh attestation verify -R semantic-reasoning/PyreWire", "--signer-workflow semantic-reasoning/PyreWire/.github/workflows/release.yml", - "--source-ref refs/tags/v1.1.3", + "--source-ref refs/tags/v1.1.4", "--source-digest ", "Repo-only `-R` verification alone is not sufficient for this gate", "release.yml` run URL", @@ -198,8 +198,8 @@ def test_release_security_baseline_and_provenance_scope_are_documented(): "requires signer workflow and source identity constraints", "repo-only verification is not treated as sufficient provenance evidence", "does not independently attest upstream wirelog builds", - "wirelog v0.70.0", - "c353350232c35356b34085abf5780a2fcb81e80f", + "wirelog v0.72.0", + "a782f54cdc13fa36dafb98ec4c80901cf240d3fe", "wheel dynamic-link and clean-install gates", ): assert required in text diff --git a/tests/docs/test_support_matrix.py b/tests/docs/test_support_matrix.py index fd41273..3e38a5a 100644 --- a/tests/docs/test_support_matrix.py +++ b/tests/docs/test_support_matrix.py @@ -12,7 +12,7 @@ yaml = pytest.importorskip("yaml") -PINNED_WIRELOG_SHA = "c353350232c35356b34085abf5780a2fcb81e80f" +PINNED_WIRELOG_SHA = "a782f54cdc13fa36dafb98ec4c80901cf240d3fe" SUPPORTED_PYTHONS = ["3.11", "3.12", "3.13", "3.14", "3.15"] SUPPORTED_CP_TAGS = ["cp311", "cp312", "cp313", "cp314", "cp315"] SUPPORTED_RUNNERS = ["ubuntu-24.04", "macos-15", "windows-2025-vs2026"] @@ -122,7 +122,7 @@ def test_support_wirelog_bundle_contract_matches_config_and_versioning(): assert cibw["macos"]["environment"]["WIRELOG_VERSION"] == PINNED_WIRELOG_SHA assert cibw["windows"]["environment"]["WIRELOG_VERSION"] == PINNED_WIRELOG_SHA - assert "wirelog v0.70.0" in support + assert "wirelog v0.72.0" in support assert PINNED_WIRELOG_SHA in support assert "peeled SHA" in support assert "Wheels bundle" in versioning diff --git a/tests/docs/test_versioning_contract.py b/tests/docs/test_versioning_contract.py index 618cf1f..5218001 100644 --- a/tests/docs/test_versioning_contract.py +++ b/tests/docs/test_versioning_contract.py @@ -12,7 +12,7 @@ yaml = pytest.importorskip("yaml") # The wirelog ref the current development branch bundles and validates against. -PINNED_WIRELOG_SHA = "c353350232c35356b34085abf5780a2fcb81e80f" +PINNED_WIRELOG_SHA = "a782f54cdc13fa36dafb98ec4c80901cf240d3fe" # Historical pins kept frozen in the compatibility table, one per release. WIRELOG_SHA_100 = "272edf3a24b25676f12c4b843d55510f5048dd2f" WIRELOG_SHA_101 = "0c6e0cdaee7db069be5d8d896bb59bdcb15673e9" @@ -21,6 +21,7 @@ WIRELOG_SHA_104 = "668f82ad69c2bbfc8e8111839302adf1360f55da" WIRELOG_SHA_105 = "9f80877c82564cb92ea45bd6fffc2d681b0e13de" WIRELOG_SHA_106 = "300f3e5150095c85331b561f1f42d99c27b4746f" +WIRELOG_SHA_112 = "c353350232c35356b34085abf5780a2fcb81e80f" def _repo_root() -> Path: @@ -113,17 +114,27 @@ def test_versioning_documents_112_wirelog_pin_and_runtime_floor(): minimum, validated_ref, notes = _versioning_row("1.1.2") assert minimum == "`0.52.0`" - assert validated_ref == f"`{PINNED_WIRELOG_SHA}`" + assert validated_ref == f"`{WIRELOG_SHA_112}`" assert "v0.70.0" in notes assert "runtime minimum remains `0.52.0`" in notes assert "PyreWire public API is unchanged" in notes +def test_versioning_documents_114_wirelog_pin_and_runtime_floor(): + minimum, validated_ref, notes = _versioning_row("1.1.4") + + assert minimum == "`0.52.0`" + assert validated_ref == f"`{PINNED_WIRELOG_SHA}`" + assert "v0.72.0" in notes + assert "runtime minimum remains `0.52.0`" in notes + assert "PyreWire public API is unchanged" in notes + + def test_versioning_documents_current_development_wirelog_pin(): text = _read("docs/versioning.md") assert "current development branch" in text - assert "v0.70.0" in text + assert "v0.72.0" in text assert PINNED_WIRELOG_SHA in text assert "minimum compatible runtime wirelog version remains `0.52.0`" in text diff --git a/tests/test_changelog_format.py b/tests/test_changelog_format.py index 4511449..4683dcf 100644 --- a/tests/test_changelog_format.py +++ b/tests/test_changelog_format.py @@ -83,6 +83,20 @@ def test_changelog_keep_a_changelog_intro_present(): assert "Keep a Changelog" in text +def test_114_release_notes_include_engine_refresh(): + changelog = (_repo_root() / "CHANGELOG.md").read_text(encoding="utf-8") + section = _section(changelog, "1.1.4") + assert _section(changelog, "Unreleased") == "## [Unreleased]" + assert "## [1.1.4] - 2026-11-25" in section + + assert "wirelog" in section + assert "v0.72.0" in section + assert "a782f54cdc13fa36dafb98ec4c80901cf240d3fe" in section + assert "minimum compatible runtime wirelog version remains `0.52.0`" in section + assert "PyreWire public API is unchanged" in section + assert "pypa/cibuildwheel@v4.3.5" in section + + def test_112_release_notes_include_engine_refresh(): changelog = (_repo_root() / "CHANGELOG.md").read_text(encoding="utf-8") section = _section(changelog, "1.1.2") @@ -202,7 +216,11 @@ def test_release_compare_links_are_tag_to_tag(): changelog = (_repo_root() / "CHANGELOG.md").read_text(encoding="utf-8") assert ( - "[Unreleased]: https://github.com/semantic-reasoning/PyreWire/compare/v1.1.3...HEAD" + "[Unreleased]: https://github.com/semantic-reasoning/PyreWire/compare/v1.1.4...HEAD" + in changelog + ) + assert ( + "[1.1.4]: https://github.com/semantic-reasoning/PyreWire/compare/v1.1.3...v1.1.4" in changelog ) assert ( diff --git a/tests/test_ci_workflow.py b/tests/test_ci_workflow.py index 4395b0b..aa165db 100644 --- a/tests/test_ci_workflow.py +++ b/tests/test_ci_workflow.py @@ -24,7 +24,7 @@ def _workflow() -> dict[str, Any]: def test_ci_default_wirelog_version_is_exact_sha(): env = _workflow()["jobs"]["test"]["env"] default = str(env["WIRELOG_VERSION"]) - assert "c353350232c35356b34085abf5780a2fcb81e80f" in default + assert "a782f54cdc13fa36dafb98ec4c80901cf240d3fe" in default def test_ci_matrix_drops_python_310(): diff --git a/tests/test_release_metadata.py b/tests/test_release_metadata.py index 17a1352..5b0885b 100644 --- a/tests/test_release_metadata.py +++ b/tests/test_release_metadata.py @@ -28,9 +28,9 @@ def _runtime_version_literal() -> str: return match.group(1) -def test_project_and_runtime_versions_are_113(): - assert _pyproject()["project"]["version"] == "1.1.3" - assert _runtime_version_literal() == "1.1.3" +def test_project_and_runtime_versions_are_114(): + assert _pyproject()["project"]["version"] == "1.1.4" + assert _runtime_version_literal() == "1.1.4" def test_project_classifiers_mark_stable_python_311_through_315():