diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ede458b..06c579a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -161,7 +161,7 @@ jobs: GH_TOKEN: ${{ github.token }} run: | uvx --python 3.15 \ - --from 'research-repo-tools==0.2.9' \ + --from 'research-repo-tools==0.3.0' \ python -I - <<'PY' import os import sys diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 0eb12da..7e5af06 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -52,7 +52,7 @@ jobs: git --no-pager merge-base --is-ancestor "$commit" origin/main mkdir "$RUNNER_TEMP/handoff" runtime=(uv run --no-config --no-project --isolated --no-cache --python 3.15 - --with 'research-repo-tools==0.2.9' + --with 'research-repo-tools==0.3.0' python -I -m research_repo_tools) "${runtime[@]}" --root "$GITHUB_WORKSPACE" release assets plan \ tooling/release-evidence.toml --repository "$GITHUB_REPOSITORY" \ @@ -79,7 +79,7 @@ jobs: - name: Install trusted package runner uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 with: - version: "0.13.7" + version: "0.13.9" enable-cache: false cache-python: false - name: Authenticate handoff and prepare the unpublished draft @@ -94,7 +94,7 @@ jobs: # Run Python from the runner's script file, avoiding actionlint #651's stdin deadlock. shell: >- uv run --no-config --no-project --isolated --no-cache --python 3.15 - --with "research-repo-tools==0.2.9" + --with "research-repo-tools==0.3.0" python -I "{0}" run: | import os diff --git a/.github/workflows/publish-crates.yml b/.github/workflows/publish-crates.yml index 0132c95..cfe9336 100644 --- a/.github/workflows/publish-crates.yml +++ b/.github/workflows/publish-crates.yml @@ -151,4 +151,4 @@ jobs: env: GH_TOKEN: ${{ github.token }} RELEASE_TAG: ${{ inputs.tag }} - run: just release-verify "$RELEASE_TAG" + run: just release-verify "$RELEASE_TAG" "$RUNNER_TEMP/accepted-candidate/target.json" diff --git a/.github/workflows/release-benchmarks.yml b/.github/workflows/release-benchmarks.yml index 020e4a1..21ba951 100644 --- a/.github/workflows/release-benchmarks.yml +++ b/.github/workflows/release-benchmarks.yml @@ -37,7 +37,7 @@ jobs: - name: Install trusted package runner uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 with: - version: "0.13.7" + version: "0.13.9" enable-cache: false cache-python: false @@ -49,7 +49,7 @@ jobs: run: | set -euo pipefail uvx --python 3.15 \ - --from 'research-repo-tools==0.2.9' \ + --from 'research-repo-tools==0.3.0' \ python -I - <<'PY' import hashlib, json, os from pathlib import Path @@ -132,14 +132,15 @@ jobs: path: ${{ runner.temp }}/incoming-candidate merge-multiple: true + - name: Prepare native dependency provenance + run: just release-dependency-builds + - name: Verify original acquisition and full frozen acceptance env: GH_TOKEN: ${{ github.token }} RELEASE_TAG: ${{ inputs.tag }} CANDIDATE_TRANSFER: ${{ inputs.candidate }} - run: | - just release-dependency-builds - just release-receive "$RUNNER_TEMP/accepted-candidate" --incoming "$RUNNER_TEMP/incoming-candidate" + run: just release-receive "$RUNNER_TEMP/accepted-candidate" --incoming "$RUNNER_TEMP/incoming-candidate" - name: Upload verified inert archive id: upload @@ -162,7 +163,7 @@ jobs: - name: Install trusted package runner uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 with: - version: "0.13.7" + version: "0.13.9" enable-cache: false cache-python: false @@ -196,7 +197,7 @@ jobs: run: | set -euo pipefail uvx --python 3.15 \ - --from 'research-repo-tools==0.2.9' \ + --from 'research-repo-tools==0.3.0' \ python -I - <<'PY' import hashlib, json, os from pathlib import Path diff --git a/Cargo.lock b/Cargo.lock index 99e28dc..392c08f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -136,9 +136,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.12.1" +version = "1.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c" [[package]] name = "cast" @@ -1170,9 +1170,9 @@ checksum = "03251193000f4bd3b042892be858ee50e8b3719f2b08e5833ac4353724632430" [[package]] name = "regex" -version = "1.13.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857" dependencies = [ "aho-corasick", "memchr", @@ -1182,9 +1182,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.18" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158" dependencies = [ "aho-corasick", "memchr", @@ -1193,9 +1193,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.11" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" +checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6" [[package]] name = "rustix" diff --git a/dependency-sources.toml b/dependency-sources.toml index 28a137b..edfbb01 100644 --- a/dependency-sources.toml +++ b/dependency-sources.toml @@ -15,7 +15,7 @@ release-owned = [ ".", "benches/comparison" ] [sources.tooling] project = "python" package = "research-repo-tools" -version = "0.2.9" +version = "0.3.0" # Native payload pins follow research-repo-tools v0.2.7's actionlint policy. [source-builds] diff --git a/docs/RELEASING.md b/docs/RELEASING.md index 34ed57b..9632081 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -113,7 +113,7 @@ constraints used by the installed verifier. See GitHub's ## Release command alignment The common Step 1/Step 2 flow follows the -[research-repo-tools v0.2.9 guide](https://github.com/acgetchell/research-repo-tools/blob/v0.2.9/docs/RELEASING.md). +[research-repo-tools v0.3.0 guide](https://github.com/acgetchell/research-repo-tools/blob/v0.3.0/docs/RELEASING.md). Draft preparation and authenticated receipt retrieval use the installed shared API. Release boundaries require published tooling and successful native evidence. @@ -130,7 +130,7 @@ API. Release boundaries require published tooling and successful native evidence | `release-benchmarks TAG [OWNER] [SELECTION]` | Dispatch retained archive attachment from the original owner record and selected acceptance; explicit `CANDIDATE_TRANSFER_FILE` remains a recovery override | | `release-publish TAG [OWNER] [SELECTION]` | Revalidate acceptance, notes and canonical assets, then explicitly approve GitHub publication | | `release-upload TAG [OWNER] [SELECTION]` | Dispatch Cargo publication using the existing reviewed acceptance and original publication transfer | -| `release-verify TAG` | Verify stable GitHub assets and the exact crates.io version | +| `release-verify TAG [TARGET]` | Verify stable GitHub assets and the exact crates.io version, with an optional captured `target.json` | This repository verifies evidence **before** creating or pushing the tag. The reference's Python distribution inspection requires a pushed tag; that ordering @@ -626,8 +626,9 @@ acquisition, final binding and full frozen native acceptance. The no-checkout attachment job receives an immutable artifact by exact ID, digest and current attempt, rechecks the draft and original assertions, then attaches `la-stack-$TAG-criterion-baseline.tar.gz`. The verification job prepares native -Python dependency provenance; no job measures benchmarks or rebuilds the Rust -package. +Python dependency provenance. Use the verification job's step timings to record +scoped Cargo/Python setup, native dependency preparation, acceptance verification +and the time remaining against the 60-minute job limit. The archive retains original evidence, current Criterion files and a separate final-release binding. Local ownership, measured revisions, hosts, sessions and @@ -646,10 +647,10 @@ From the clean tagged checkout and your human GitHub CLI session: just release-run release-publish "$TAG" "" "$RELEASE_SELECTION" ``` -This verifies acceptance and remote notes, freezes the canonical attached archive -ID/hash in `publication-transfer.json`, then publishes the reviewed draft -through the shared gate. It authorizes GitHub Release publication. The release -must become immutable before Cargo publication. +This verifies the selected acceptance, freezes the canonical attached archive +ID/hash in `publication-transfer.json`, then passes the captured draft target to +the shared publication gate. It authorizes GitHub Release publication. The +release must become immutable before Cargo publication. Dispatch Cargo publication from that independently retained selection: @@ -688,12 +689,13 @@ After the publishing workflow completes: just release-verify "$TAG" ``` -This reads GitHub and crates.io directly and checks the immutable stable +RRT's `release visibility` reads GitHub and crates.io and checks the immutable stable release, completed nonempty baseline asset, and exact non-yanked crates.io version with a checksum. It polls only when the exact registry version is proven absent. Dependency provenance and generated notes are checked by the -publication gates. The visibility recipe works without a synced development -environment. +publication gates. The hosted publishing job passes the captured `target.json` +to also verify the release ID, title, and exact tag commit. The visibility +recipe works without a synced development environment. Check a clean consumer with a fresh Cargo home before dependent Delaunay releases: @@ -780,16 +782,11 @@ benchmark measurements. Preserve the external owner record, preparation, checkpoint, archive, transfer files, and workflow receipts. Do not run `just clean` or restart acquisition to troubleshoot those later phases. -The pinned tooling can still spend substantial time installing tools and -rechecking dependency and candidate evidence. Targeted follow-ups are tracked in -research-repo-tools [#225](https://github.com/acgetchell/research-repo-tools/issues/225), -[#232](https://github.com/acgetchell/research-repo-tools/issues/232), -[#233](https://github.com/acgetchell/research-repo-tools/issues/233), -[#234](https://github.com/acgetchell/research-repo-tools/issues/234), and -[#235](https://github.com/acgetchell/research-repo-tools/issues/235). -These are not capabilities supplied by the current pin. Inspect the failed stage -and its retained records before choosing the specific recovery below. An -unconfirmed write outcome requires provider inspection before retrying. +The release jobs install scoped Cargo and locked Python dependencies. The +benchmark attachment workflow reports separate timings for native provenance +preparation and acceptance verification. Inspect the failed stage and its +retained records before choosing the specific recovery below. An unconfirmed +write outcome requires provider inspection before retrying. If HEAD changes, return to Step 2's synchronization and exact-commit verification. If a native run/attempt changes, explicitly review a new named selection as @@ -808,7 +805,7 @@ permission to create a replacement. Recover the exact original artifacts by independently recorded immutable IDs, verify their ZIP digests and producer run/attempts, and retain the original policy, selection, notes and receipt. Follow the supplying package's -[recovery](https://github.com/acgetchell/research-repo-tools/blob/v0.2.9/docs/PREPARING_DRAFTS.md#retry-and-recovery). +[recovery](https://github.com/acgetchell/research-repo-tools/blob/v0.3.0/docs/PREPARING_DRAFTS.md#retry-and-recovery). After independent provider/audit review, its `release assets prepare` CLI accepts `--recover-release-id REVIEWED_ID` with the original pending receipt and frozen inputs; recovery performs no POST. A captured ID cannot be replaced. This is an diff --git a/justfile b/justfile index d6c836a..c1d66e4 100644 --- a/justfile +++ b/justfile @@ -74,7 +74,7 @@ _ensure-yamllint: _ensure-uv # Isolate the supplier runtime from the observed candidate checkout. [positional-arguments] [private] -[script("uvx", "--no-config", "--isolated", "--managed-python", "--python", "3.15", "--from", "research-repo-tools==0.2.9", "python", "-I")] +[script("uvx", "--no-config", "--isolated", "--managed-python", "--python", "3.15", "--from", "research-repo-tools==0.3.0", "python", "-I")] _release-candidate *args: import runpy from pathlib import Path @@ -506,7 +506,7 @@ release-archive owner="" selection="reviewed": (_release-candidate "archive" own # Use explicit shared asset/recovery operations with an isolated trusted runtime. [positional-arguments] -[script("uvx", "--no-config", "--isolated", "--managed-python", "--python", "3.15", "--from", "research-repo-tools==0.2.9", "python", "-I")] +[script("uvx", "--no-config", "--isolated", "--managed-python", "--python", "3.15", "--from", "research-repo-tools==0.3.0", "python", "-I")] release-assets +args: import sys from research_repo_tools.cli import main @@ -543,8 +543,7 @@ release-notes tag: python-sync release-publication owner="" selection="reviewed": (_release-candidate "seal" owner "--selection" selection) # Approve the benchmark-equipped draft as the authenticated maintainer. -release-publish tag owner="" selection="reviewed": (_release-candidate "reviewed" owner "--selection" selection) (release-publication owner selection) - uv run --locked --no-sync research-repo-tools release publish {{ quote(tag) }} --approve +release-publish tag owner="" selection="reviewed": (_release-candidate "publish" tag owner "--selection" selection) # Verify the maintainer's dispatch input; never acquire timings or build packages. [positional-arguments] @@ -553,7 +552,7 @@ release-receive destination *args: # Run a recipe with the exact uv declared in this checkout, independent of system updates. [positional-arguments] -[script("uvx", "--no-config", "--isolated", "--managed-python", "--python", "3.15", "--from", "research-repo-tools==0.2.9", "python", "-I")] +[script("uvx", "--no-config", "--isolated", "--managed-python", "--python", "3.15", "--from", "research-repo-tools==0.3.0", "python", "-I")] release-run +args: import sys from research_repo_tools.config import load @@ -574,39 +573,8 @@ release-stage owner="" target="" selection="reviewed": (_release-candidate "stag release-upload tag owner="" selection="reviewed": (_release-candidate "upload" tag owner "--selection" selection) # Check remote visibility of the immutable release, required assets, and exact crates.io version. -[positional-arguments] -[script("uvx", "--no-config", "--isolated", "--managed-python", "--python", "3.15", "--from", "research-repo-tools==0.2.9", "python", "-I")] -release-verify tag: - import sys - from pathlib import Path - from subprocess import SubprocessError - from research_repo_tools.config import load - from research_repo_tools.process import ExecutableNotFoundError, format_exception_diagnostics - from research_repo_tools.registry import identity, wait_for_version - from research_repo_tools.release_assets import lookup_release - - root = Path.cwd() - policy = load(root=root).publishing - if policy is None: - sys.exit("Release visibility requires a publishing policy.") - tag = sys.argv[1] - version = tag.removeprefix("v") - try: - if tag == version: - raise ValueError("Release visibility requires a stable vX.Y.Z tag.") - identity(policy.registry, policy.package, version) - release = lookup_release(root, policy.repository, tag) - if release.draft or release.prerelease or not release.immutable or release.title != tag: - raise ValueError("Expected the matching immutable, published stable GitHub release.") - required = {pattern.replace("{version}", version) for pattern in policy.required_assets} - uploaded = {name for name, identifier, size, _ in release.assets if size > 0 and (identifier, "uploaded") in release.asset_states} - if missing := required - uploaded: - raise ValueError(f"Missing completed release assets: {', '.join(sorted(missing))}") - if not wait_for_version(policy.registry, policy.package, version, attempts=7).present: - raise ValueError(f"{policy.package} {version} is not visible on {policy.registry}. Inspect the upload run.") - except (ValueError, OSError, SubprocessError, ExecutableNotFoundError) as error: - sys.exit(format_exception_diagnostics(error)) - print(f"Verified immutable GitHub release {tag} and {policy.registry} version {version}.") +release-verify tag target="": + uvx --no-config --isolated --managed-python --python 3.15 --from research-repo-tools==0.3.0 research-repo-tools release visibility --registry crates-io --package la-stack --repository acgetchell/la-stack --required-asset {{ quote("la-stack-" + tag + "-criterion-baseline.tar.gz") }} --attempts 7{{ if target == "" { "" } else { " --target " + quote(target) } }} -- {{ quote(tag) }} # Require final changelog, citation date and package metadata agreement. release-version-check: python-sync diff --git a/pyproject.toml b/pyproject.toml index 7fd55bf..b767e26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,9 +86,14 @@ disable = [ [tool.rumdl.MD013] line-length = 160 +[tool.rumdl.per-file-ignores] +# Preserve the generated and archived changelogs' list spacing. +"CHANGELOG.md" = [ "MD076" ] +"docs/archives/changelog/*.md" = [ "MD076" ] + [tool.uv] package = false -required-version = "==0.13.8" +required-version = "==0.13.9" # Semgrep stopped shipping Intel macOS wheels after 1.182.1. constraint-dependencies = [ "semgrep==1.182.1; sys_platform == 'darwin' and platform_machine == 'x86_64'", @@ -119,7 +124,7 @@ build = [ "setuptools==84.2.1", "wheel==0.48.0", ] -tooling = [ "research-repo-tools[python-tools,semgrep]==0.2.9" ] +tooling = [ "research-repo-tools[python-tools,semgrep]==0.3.0" ] dev = [ { include-group = "tooling" }, "actionlint-py==1.7.12.25", @@ -147,7 +152,7 @@ cargo-nextest = "0.9.152" clippy-sarif = "0.8.0" dprint = "0.65.0" git-cliff = "2.14.2" -rumdl = "0.3.4" +rumdl = "0.3.5" sarif-fmt = "0.8.0" taplo-cli = "0.10.0" typos-cli = "1.52.2" diff --git a/tests/tooling/test_candidate_transfer.py b/tests/tooling/test_candidate_transfer.py index 30ee98d..80c4049 100644 --- a/tests/tooling/test_candidate_transfer.py +++ b/tests/tooling/test_candidate_transfer.py @@ -10,7 +10,8 @@ import pytest import yaml -from research_repo_tools import release_staging +from research_repo_tools import config, release_staging +from research_repo_tools.just_inspect import inspect_justfile from research_repo_tools.release_assets import GitHubRelease, ReleaseTarget, serialize_release_target from tooling import release_candidate as candidate @@ -78,6 +79,74 @@ def upload(_root: Path, _repository: str, _tag: str, path: Path, *, target: Rele return {"data": data, "payloads": payloads, "calls": calls, "target": target, "release": release, "download": download} +@pytest.mark.parametrize( + ("failure", "diagnostic"), + [ + ("none", ""), + ("acceptance", "staged transfer differs from the reviewed acceptance"), + ("target", "staged transfer differs from the captured draft target"), + ("asset-id", "candidate asset identity changed"), + ("missing-asset", "candidate asset identity changed"), + ], +) +def test_publish_recipe_approves_the_named_selection_and_its_captured_target( + transfer: dict[str, Any], tmp_path: Path, monkeypatch: pytest.MonkeyPatch, failure: str, diagnostic: str +) -> None: + owner, selection = tmp_path / "original owner", "renewed-ci" + final = candidate.final_directory(owner, SHA, selection) + final.mkdir(parents=True) + acceptance = final / "acceptance.json" + acceptance.write_bytes(b"newly reviewed native acceptance" if failure == "acceptance" else transfer["payloads"]["acceptance"]) + (final / "target.json").write_bytes(serialize_release_target(transfer["target"])) + data = transfer["data"] + if failure == "target": + data["target"]["release_id"] = 43 + (final / "transfer.json").write_text(json.dumps(data), encoding="utf-8") + data["assets"]["attached"] = {"name": candidate.archive_name(TAG), "id": 9, "sha256": data["assets"]["archive"]["sha256"]} + transfer["payloads"]["attached"] = transfer["payloads"]["archive"] + if failure == "asset-id": + data["assets"]["acceptance"]["id"] = 17 + elif failure == "missing-asset": + del data["assets"]["acceptance"] + monkeypatch.setattr(candidate, "resolve_revision", lambda *_args: SHA) + monkeypatch.setattr(candidate, "release_tag", lambda _root: TAG) + monkeypatch.setattr(candidate, "revalidate_release_target", transfer["release"]) + monkeypatch.setattr(candidate, "download_release_asset", transfer["download"]) + reviewed: list[Path] = [] + published: list[ReleaseTarget] = [] + + def review(root: Path, selected_owner: Path, name: str, *, commit: str | None = None) -> Path: + assert (root, selected_owner, name) == (ROOT, owner.resolve(), selection) + assert commit == SHA + reviewed.append(acceptance) + return acceptance + + def publish(settings: config.Config, tag: str, *, target: ReleaseTarget) -> None: + assert settings == config.load(root=ROOT) + assert tag == TAG + assert reviewed == [final / "acceptance.json"] + published.append(target) + + monkeypatch.setattr(candidate, "verify_existing", review) + monkeypatch.setattr(candidate, "publish_reviewed_release", publish) + dependencies = inspect_justfile(ROOT).recipes["release-publish"]["dependencies"] + assert [(item["recipe"], item["arguments"]) for item in dependencies] == [ + ("_release-candidate", ["publish", ["variable", "tag"], ["variable", "owner"], "--selection", ["variable", "selection"]]), + ] + options = candidate.argument_parser().parse_args(["publish", TAG, str(owner), "--selection", selection]) + if diagnostic: + with pytest.raises(ValueError, match=diagnostic): + candidate.run_owner_operation(ROOT, options) + assert reviewed == [acceptance] + assert ("identity" in transfer["calls"]) == (failure in {"asset-id", "missing-asset"}) + assert published == [] + assert not (final / "publication-transfer.json").exists() + return + candidate.run_owner_operation(ROOT, options) + assert published == [transfer["target"]] + assert json.loads((final / "publication-transfer.json").read_bytes()) == data + + def workflow_python(tmp_path: Path, job: str) -> Path: """Run the exact trusted inline block; provider functions are substituted only.""" workflow = yaml.safe_load((ROOT / ".github/workflows/release-benchmarks.yml").read_bytes()) diff --git a/tests/tooling/test_release_baseline.py b/tests/tooling/test_release_baseline.py index a99a512..6101ce0 100644 --- a/tests/tooling/test_release_baseline.py +++ b/tests/tooling/test_release_baseline.py @@ -203,8 +203,9 @@ def test_workflow_reuses_original_acquisition_and_isolates_write_credentials() - assert verifier[1]["with"] == {"cache": False, "tool": "cargo"} assert jobs["verify"]["timeout-minutes"] == 60 assert verifier[3]["with"]["artifact-ids"] == "${{ needs.fetch.outputs.artifact-id }}" - assert verifier[4]["env"]["CANDIDATE_TRANSFER"] == "${{ inputs.candidate }}" - assert 'release-receive "$RUNNER_TEMP/accepted-candidate" --incoming "$RUNNER_TEMP/incoming-candidate"' in verifier[4]["run"] + assert verifier[4]["run"] == "just release-dependency-builds" + assert verifier[5]["env"]["CANDIDATE_TRANSFER"] == "${{ inputs.candidate }}" + assert verifier[5]["run"] == 'just release-receive "$RUNNER_TEMP/accepted-candidate" --incoming "$RUNNER_TEMP/incoming-candidate"' attach = jobs["attach"]["steps"] assert attach[2]["with"]["artifact-ids"] == "${{ needs.verify.outputs.artifact-id }}" assert attach[1]["env"]["ARTIFACT_DIGEST"] == "${{ needs.verify.outputs.artifact-digest }}" diff --git a/tests/tooling/test_release_context.py b/tests/tooling/test_release_context.py index 0bbc0e7..751cabc 100644 --- a/tests/tooling/test_release_context.py +++ b/tests/tooling/test_release_context.py @@ -389,6 +389,7 @@ def test_publish_recipe_requires_review_before_reaching_publication(tmp_path: Pa f"sys.path.insert(0, {str(ROOT)!r})\n" "from tooling import release_candidate as candidate\n" f"candidate.resolve_revision = lambda *_args: {SHA!r}\n" + f"candidate.release_tag = lambda _root: {TAG!r}\n" 'def unexpected(*_args):\n raise RuntimeError("attempted to create a new review")\n' "candidate.shared_main = unexpected\ncandidate.main()\n", encoding="utf-8", diff --git a/tests/tooling/test_release_flow.py b/tests/tooling/test_release_flow.py index 18cdafb..1b9cd9c 100644 --- a/tests/tooling/test_release_flow.py +++ b/tests/tooling/test_release_flow.py @@ -193,7 +193,10 @@ def draft_provider(state: dict[str, Any], args: list[str]) -> bytes: return json.dumps(state["release"]).encode() endpoint = args[-1] if endpoint.endswith("releases?per_page=100"): - return json.dumps([[state["release"]] if state["release"] else []]).encode() + release = state["release"] + if release and state.pop("delay_visibility", False): + release = None + return json.dumps([[release] if release else []]).encode() if endpoint.endswith("releases/42"): return json.dumps(state["release"]).encode() if endpoint.endswith("releases/42/assets?per_page=100"): @@ -345,14 +348,26 @@ def gh(_root: Path, args: list[str]) -> bytes: @pytest.mark.parametrize("suffix", ["", "@refs/tags/" + TAG, "@" + TAG]) -def test_actual_writer_creates_once_and_retains_exact_draft(draft_handoff: dict[str, Any], tmp_path: Path, suffix: str) -> None: +def test_actual_writer_creates_once_and_retains_exact_draft( + draft_handoff: dict[str, Any], tmp_path: Path, monkeypatch: pytest.MonkeyPatch, suffix: str +) -> None: draft_handoff["current"]["path"] += suffix + draft_handoff["state"]["delay_visibility"] = True script = draft_handoff["script"] + receipt = tmp_path / "draft-state/draft-receipt.json" + observed: list[bytes] = [] + + def observe_receipt(_delay: float) -> None: + observed.append(receipt.read_bytes()) + + monkeypatch.setattr(release_drafts.time, "sleep", observe_receipt) runpy.run_path(str(script), run_name="__main__") - original = (tmp_path / "draft-state/draft-receipt.json").read_bytes() + original = receipt.read_bytes() + assert observed == [original] + assert json.loads(original)["state"] == "captured" runpy.run_path(str(script), run_name="__main__") assert len(draft_handoff["posts"]) == 1 - assert (tmp_path / "draft-state/draft-receipt.json").read_bytes() == original + assert receipt.read_bytes() == original assert {path.name for path in (tmp_path / "draft-state").iterdir()} == {"producer.json", "handoff.json", "draft-receipt.json", "target.json"} target = release_assets.parse_release_target((tmp_path / "draft-state/target.json").read_bytes()) assert (target.tag, target.commit, target.release_id, target.expected_title) == (TAG, COMMIT, 42, TAG) diff --git a/tests/tooling/test_release_publishing.py b/tests/tooling/test_release_publishing.py index 89ed1c9..c472cc8 100644 --- a/tests/tooling/test_release_publishing.py +++ b/tests/tooling/test_release_publishing.py @@ -17,6 +17,7 @@ from research_repo_tools.cli import main from research_repo_tools.just_inspect import dry_run from research_repo_tools.process import run_command +from research_repo_tools.release_assets import ReleaseTarget, serialize_release_target from tests.tooling.support_evidence import install_clean_checkout from tests.tooling.support_toolchain import TOOLING_REQUIREMENT @@ -162,24 +163,6 @@ def test_release_notes_stdout_excludes_setup_diagnostics() -> None: assert "fixture setup diagnostic" in result.stderr -def test_publish_recipe_passes_explicit_approval(monkeypatch: pytest.MonkeyPatch) -> None: - requested: list[str] = [] - - def publish(settings: config.Config, tag: str, *, reuse_evidence: object = None) -> None: - assert settings.root == REPO_ROOT - assert reuse_evidence is None - requested.append(tag) - - # Exercise the installed argument parser and dispatch, replacing only the - # irreversible publication boundary with an in-memory request recorder. - monkeypatch.setattr(release_publishing, "publish_reviewed_release", publish) - # Shared publishing policy owns the separately tested title/notes assertions. - command = shlex.split(dry_run(REPO_ROOT, "release-publish", [TAG, "/independent-owner"]).stderr.splitlines()[-1]) - assert command[:7] == ["uv", "run", "--locked", "--no-sync", "research-repo-tools", "release", "publish"] - assert main(["--root", str(REPO_ROOT), *command[5:]]) == 0 - assert requested == [TAG] - - def test_workflow_requires_approval_revalidation_and_absence_before_oidc() -> None: workflow = yaml.safe_load(WORKFLOW.read_bytes()) assert set(workflow[True]) == {"workflow_dispatch"} @@ -212,7 +195,7 @@ def test_workflow_requires_approval_revalidation_and_absence_before_oidc() -> No assert steps[6]["run"].endswith("toolchain run --tool cargo -- cargo publish --locked --package la-stack --registry crates-io --no-verify") assert [index for index, step in enumerate(steps) if "CARGO_REGISTRY_TOKEN" in step.get("env", {})] == [6] assert steps[7]["if"] == "${{ !cancelled() && steps.auth.outcome == 'success' }}" - assert steps[7]["run"] == 'just release-verify "$RELEASE_TAG"' + assert steps[7]["run"] == 'just release-verify "$RELEASE_TAG" "$RUNNER_TEMP/accepted-candidate/target.json"' assert "continue-on-error" not in WORKFLOW.read_text(encoding="utf-8") commands = dry_run(REPO_ROOT, "publish-check").stderr assert commands.count("--package la-stack --registry crates-io --dry-run") == 2 @@ -402,17 +385,36 @@ def create(arguments: list[str]) -> int: assert (b"eligible" in data) == (source == "published") -@pytest.mark.parametrize("outcome", ["visible", "draft", "missing-asset", "incomplete-asset", "absent-version"]) -def test_release_visibility_checks_remote_state_without_local_release_preparation(tmp_path: Path, monkeypatch: pytest.MonkeyPatch, outcome: str) -> None: - script = tmp_path / "visibility.py" - script.write_text(dry_run(REPO_ROOT, "release-verify", [TAG]).stderr, encoding="utf-8") - monkeypatch.chdir(REPO_ROOT) - monkeypatch.setattr(sys, "argv", [str(script), TAG]) +@pytest.mark.parametrize("outcome", ["visible", "captured-target", "replacement-target", "draft", "missing-asset", "incomplete-asset", "absent-version"]) +def test_release_visibility_checks_remote_state_without_local_release_preparation( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str], outcome: str +) -> None: + arguments = [TAG] + if outcome in {"captured-target", "replacement-target"}: + target = tmp_path / "captured target.json" + target.write_bytes(serialize_release_target(ReleaseTarget("acgetchell/la-stack", TAG, 42, SHA, TAG))) + arguments.append(str(target)) + command = shlex.split(dry_run(REPO_ROOT, "release-verify", arguments).stderr) + assert command[:10] == [ + "uvx", + "--no-config", + "--isolated", + "--managed-python", + "--python", + "3.15", + "--from", + TOOLING_REQUIREMENT, + "research-repo-tools", + "release", + ] + assert command[10] == "visibility" + assert command[-2:] == ["--", TAG] + monkeypatch.chdir(tmp_path) calls: list[str] = [] release = release_publishing.GitHubRelease( repository="acgetchell/la-stack", tag=TAG, - identifier=42, + identifier=43 if outcome == "replacement-target" else 42, draft=outcome == "draft", immutable=outcome != "draft", prerelease=False, @@ -422,25 +424,46 @@ def test_release_visibility_checks_remote_state_without_local_release_preparatio ) def github(root: Path, repository: str, tag: str) -> release_publishing.GitHubRelease: - assert (root, repository, tag) == (REPO_ROOT, "acgetchell/la-stack", TAG) + assert (root, repository, tag) == (tmp_path.resolve(), "acgetchell/la-stack", TAG) calls.append("github") return release - def visible(destination: str, package: str, version: str, *, attempts: int) -> registry.RegistryVersion: - assert (destination, package, version, attempts) == ("crates-io", "la-stack", VERSION, 7) + def visible(destination: str, package: str, version: str, *, attempts: int, interval: int) -> registry.RegistryVersion: + assert (destination, package, version, attempts, interval) == ("crates-io", "la-stack", VERSION, 7, 10) calls.append("registry") - return registry.RegistryVersion("crates-io", package, version, outcome != "absent-version") + return registry.RegistryVersion("crates-io", package, version, outcome != "absent-version", "a" * 64 if outcome != "absent-version" else None) + + def commit(root: Path, repository: str, tag: str) -> str: + assert (root, repository, tag) == (tmp_path.resolve(), "acgetchell/la-stack", TAG) + calls.append("tag") + return SHA - monkeypatch.setattr("research_repo_tools.release_assets.lookup_release", github) - monkeypatch.setattr(registry, "wait_for_version", visible) + monkeypatch.setattr(release_publishing, "lookup_release", github) + monkeypatch.setattr(release_publishing, "wait_for_version", visible) + monkeypatch.setattr(release_publishing, "_remote_commit", commit) monkeypatch.setattr(dependency_provenance, "check_release_dependencies", lambda *_args, **_kwargs: pytest.fail("visibility repeated local provenance")) monkeypatch.setattr(changelog, "notes", lambda *_args: pytest.fail("visibility regenerated local notes")) - if outcome == "visible": - runpy.run_path(str(script), run_name="__main__") + status = main(command[9:]) + output = capsys.readouterr() + if outcome in {"visible", "captured-target"}: + assert status == 0 + assert f"Registry archive SHA-256 {'a' * 64}" in output.out + expected = ["github", "tag"] if outcome == "captured-target" else ["github"] + assert calls == [*expected, "registry", *expected] else: - with pytest.raises(SystemExit, match=r"immutable|Missing completed release assets|not visible"): - runpy.run_path(str(script), run_name="__main__") - assert calls == (["github", "registry"] if outcome in {"visible", "absent-version"} else ["github"]) + assert status == 1 + if outcome == "absent-version": + assert "exact registry version is not yet visible" in output.err + assert calls == ["github", "registry"] + else: + diagnostic = { + "draft": "published, stable, immutable GitHub release", + "missing-asset": "is missing, empty or incomplete", + "incomplete-asset": "is missing, empty or incomplete", + "replacement-target": "release identity differs from captured target", + }[outcome] + assert diagnostic in output.err + assert calls == ["github"] def test_native_packaging_failure_stops_before_further_validation(tmp_path: Path) -> None: diff --git a/tests/tooling/test_toolchain_integration.py b/tests/tooling/test_toolchain_integration.py index 7558560..19e060a 100644 --- a/tests/tooling/test_toolchain_integration.py +++ b/tests/tooling/test_toolchain_integration.py @@ -233,7 +233,7 @@ def test_isolated_release_runtime_uses_the_same_selection_outside_checkout(tmp_p source = (REPO_ROOT / "justfile").read_text(encoding="utf-8") assert ( source.count(f'[script("uvx", "--no-config", "--isolated", "--managed-python", "--python", "3.15", "--from", "{TOOLING_REQUIREMENT}", "python", "-I")]') - == 4 + == 3 ) (tmp_path / "research_repo_tools.py").write_text('raise RuntimeError("untrusted checkout import")\n', encoding="utf-8") (tmp_path / "tooling").mkdir() diff --git a/tooling/README.md b/tooling/README.md index 4420a20..3098e55 100644 --- a/tooling/README.md +++ b/tooling/README.md @@ -71,7 +71,7 @@ Other platforms resolve Semgrep 1.184.0 or newer within the shared range. ## Shared capability adoption The tooling group and isolated `uvx --python 3.15` runtimes use the published -`research-repo-tools==0.2.9` package. Integration checks verify the manifest, +`research-repo-tools==0.3.0` package. Integration checks verify the manifest, registry lock artifacts and installed version, including the isolated runtimes. For development rehearsal, an exact full-commit uv Git source override remains supported; keep the isolated runtime pins aligned and do not float on `main`. @@ -103,7 +103,7 @@ never copy their signing keys into CI artifacts or caches. Changed manifests, locks, source policy, interpreter, or builder invalidate them. Rebuild before the next release check after such changes. These receipts establish observed source/build provenance, not reproducible builds or publisher-signed wheels. -See the supplier's [source-build contract](https://github.com/acgetchell/research-repo-tools/blob/v0.2.9/README.md#source-built-python-dependencies). +See the supplier's [source-build contract](https://github.com/acgetchell/research-repo-tools/blob/v0.3.0/README.md#source-built-python-dependencies). Native CI runs `just ci-dependencies` in each `native-dependencies (OS)` job after shared policy checks. Signed release evidence requires these jobs and @@ -116,20 +116,20 @@ Local `just ci` retains its ordinary validation scope. Normal `just update` preserves the included tooling group's exact supplier pin, any immutable source commit and inherited tool versions while updating unrelated dependencies. Upgrading a published supplier uses the target release's adopter -outside the old project environment. For the current release: +outside the old project environment. Use the exact uv declared in the checkout +when running the adopter. For the current release: ```bash -uvx --no-config --isolated --managed-python --python 3.15 --from research-repo-tools==0.2.9 research-repo-tools toolchain adopt --dry-run -uvx --no-config --isolated --managed-python --python 3.15 --from research-repo-tools==0.2.9 research-repo-tools toolchain adopt --apply +uvx --no-config --isolated --managed-python --python 3.15 --from research-repo-tools==0.3.0 research-repo-tools toolchain adopt --dry-run +uvx --no-config --isolated --managed-python --python 3.15 --from research-repo-tools==0.3.0 research-repo-tools toolchain adopt --apply ``` The adopter reconciles requirements, lock and environment. Align the declared source in `dependency-sources.toml`, isolated recipe/workflow pins and consumer -identity tests with that target, then run the normal checks. `just update` does -not perform this supplier migration, including when run by v0.2.9. -For an exact Git development pin, v0.2.9 also supports explicit attested -[promotion](https://github.com/acgetchell/research-repo-tools/blob/v0.2.9/docs/UPDATING_DEPENDENCIES.md#promoting-an-exact-development-pin); -ordinary updates continue to preserve the pin. +identity tests with that target, then run the normal checks. For an exact Git +development pin, use the supplier's explicit attested +[promotion](https://github.com/acgetchell/research-repo-tools/blob/v0.3.0/docs/UPDATING_DEPENDENCIES.md#promoting-an-exact-development-pin) +to verify that the published source includes the selected commit. For a deliberate source transition, edit `[sources.tooling]` in `dependency-sources.toml`, then run `just dependency-source tooling` to preview @@ -148,7 +148,7 @@ come from their registries for release. The file is retained in source exports and both benchmark harness declarations, so policy changes invalidate evidence. The capability inventory below uses the pinned CLI and -its [v0.2.9 contracts](https://github.com/acgetchell/research-repo-tools/blob/v0.2.9/README.md#common-workflows). +its [v0.3.0 contracts](https://github.com/acgetchell/research-repo-tools/blob/v0.3.0/README.md#common-workflows). The shared updater installs and verifies candidate Cargo tools before publishing new pins; no local updater implementation is needed. Native Rust algorithms, assertions, benchmark selection and release decisions @@ -209,7 +209,7 @@ Neither command changes the selected-actions allowlist or approval requirements. `tools-sync`, `tools-check`, `tools-export` and `tools-run` accept RRT's repeatable `--tool` selection. The crates.io workflow follows the supplying -[publication template](https://github.com/acgetchell/research-repo-tools/blob/v0.2.9/src/research_repo_tools/templates/publish-crates.yml) +[publication template](https://github.com/acgetchell/research-repo-tools/blob/v0.3.0/src/research_repo_tools/templates/publish-crates.yml) by selecting only minimal Rust/Cargo. Locked `dev` still supplies Just and the native Python dependency provenance requirements. Cargo owns upload; the shared release gates enforce the configured evidence and registry policy. @@ -343,8 +343,9 @@ explicit dates remain supported. Generation never advances citation metadata. The publishing declaration selects only `la-stack`, requires native platform and scientific checks on the exact commit, and requires the durable Criterion release asset. `release-publish` and the upload workflow enforce the shared -release policy. `release-verify` checks remote visibility of the immutable -release, required assets, and exact crates.io version. `publish-check` owns +release policy. `release-verify` delegates to RRT's `release visibility` command +to check the immutable release, required assets, and exact crates.io version. +`publish-check` owns native default/exact Cargo dry-runs. Main CI signs those packaging and native validation identities. `just release-evidence [OWNER] [SELECTION]` binds the original acquisition, precise publisher diff --git a/tooling/release_candidate.py b/tooling/release_candidate.py index ff45ecb..322b78c 100644 --- a/tooling/release_candidate.py +++ b/tooling/release_candidate.py @@ -29,6 +29,7 @@ from research_repo_tools.process import run_command from research_repo_tools.publication import publish_publication from research_repo_tools.release_assets import ( + GitHubRelease, ReleaseTarget, download_release_asset, parse_release_target, @@ -38,7 +39,7 @@ ) from research_repo_tools.release_interfaces import load_evidence_policy from research_repo_tools.release_metadata import read_package_info -from research_repo_tools.release_publishing import ReviewedRelease, check_reviewed_release +from research_repo_tools.release_publishing import ReviewedRelease, check_reviewed_release, publish_reviewed_release from research_repo_tools.release_staging import stage_release_assets from research_repo_tools.release_validation import api, parse_release_json @@ -548,10 +549,17 @@ def stage(root: Path, owner: Path, selection: str, prepared_target: Path | None return final / "transfer.json" -def seal(root: Path, owner: Path, selection: str) -> Path: +def seal(root: Path, acceptance: Path, commit: str) -> PublicationTransfer: """Independently select the canonical attached asset before publication.""" - final = final_directory(owner, resolve_revision(root, "HEAD"), selection) + final = acceptance.parent transfer = require_draft_transfer(parse_transfer((final / "transfer.json").read_bytes())) + captured = parse_release_target((final / "target.json").read_bytes()) + if transfer.target != captured or (captured.tag, captured.commit) != (release_tag(root), commit): + message = "staged transfer differs from the captured draft target" + raise ValueError(message) + if hashlib.sha256(acceptance.read_bytes()).hexdigest() != transfer.assets.acceptance.sha256: + message = "staged transfer differs from the reviewed acceptance" + raise ValueError(message) release = revalidate_release_target(root, transfer.target, checkout=root) name = archive_name(transfer.target.tag) entry = next((item for item in release.assets if item[0] == name), None) @@ -562,11 +570,24 @@ def seal(root: Path, owner: Path, selection: str) -> Path: publication = PublicationTransfer(transfer, AssetAssertion(name, entry[1], digest)) with tempfile.TemporaryDirectory(prefix="la-stack-seal-") as temporary: download_release_asset(root, REPOSITORY, transfer.target.tag, name, Path(temporary) / "archive.tar.gz", expected_sha256=digest, allow_draft=True) - if entry not in revalidate_release_target(root, transfer.target, checkout=root).assets: + current = revalidate_release_target(root, transfer.target, checkout=root) + if entry not in current.assets: message = "attached archive identity changed during verification" raise ValueError(message) + require_candidate_asset_identities(current, publication) freeze(final, {"publication-transfer.json": serialize_transfer(publication)}) - return final / "publication-transfer.json" + return publication + + +def publish_draft(root: Path, owner: Path, selection: str, tag: str) -> None: + """Approve the captured draft for the already-reviewed acceptance.""" + if tag != release_tag(root): + message = "publication tag differs from the package release" + raise ValueError(message) + commit = resolve_revision(root, "HEAD") + acceptance = verify_existing(root, owner, selection, commit=commit) + transfer = seal(root, acceptance, commit) + publish_reviewed_release(load_config(root=root), tag, target=transfer.original.target) def record_path(root: Path, owner: Path, selection: str, role: Literal["transfer", "publication"]) -> Path: @@ -674,6 +695,15 @@ def download_published_assets(root: Path, transfer: PublicationTransfer, directo download_release_asset(root, REPOSITORY, transfer.original.target.tag, asset.name, directory / transport_name(role), expected_sha256=asset.sha256) +def require_candidate_asset_identities(release: GitHubRelease, transfer: PublicationTransfer) -> None: + """Compare every retained asset assertion with the current release inventory.""" + for _role, asset in transfer.role_assertions(): + entry = next((item for item in release.assets if item[0] == asset.name), None) + if entry is None or entry[1] != asset.identifier or (entry[3] is not None and entry[3] != asset.sha256): + message = f"candidate asset identity changed for {asset.name}" + raise ValueError(message) + + def check_published_transfer(root: Path, transfer: PublicationTransfer) -> None: """Require the immutable release and exact original and canonical assets.""" target = transfer.original.target @@ -693,11 +723,7 @@ def check_published_transfer(root: Path, transfer: PublicationTransfer) -> None: ): message = "candidate release identity changed" raise ValueError(message) - for _role, asset in transfer.role_assertions(): - entry = next((item for item in release.assets if item[0] == asset.name), None) - if entry is None or entry[1] != asset.identifier or (entry[3] is not None and entry[3] != asset.sha256): - message = "candidate asset identity changed" - raise ValueError(message) + require_candidate_asset_identities(release, transfer) @dataclass(frozen=True, slots=True) @@ -820,11 +846,11 @@ def argument_parser() -> argparse.ArgumentParser: measurement.add_argument("--owner-directory", type=Path) measurement.add_argument("--progress", choices=("human", "json", "none"), default="human") measurement.add_argument("--progress-cadence", type=float, default=300) - for name in ("capture", "verify", "reviewed", "archive", "stage", "seal", "record", "upload"): + for name in ("capture", "verify", "reviewed", "archive", "stage", "seal", "record", "publish", "upload"): command = commands.add_parser(name) if name == "record": command.add_argument("role", choices=("transfer", "publication")) - if name == "upload": + if name in {"publish", "upload"}: command.add_argument("tag") command.add_argument("owner_directory", nargs="?", default="") if name == "capture": @@ -860,9 +886,14 @@ def run_owner_operation(root: Path, options: argparse.Namespace) -> None: elif options.operation == "stage": print(stage(root, owner, options.selection, Path(options.target) if options.target else None)) elif options.operation == "seal": - print(seal(root, owner, options.selection)) + commit = resolve_revision(root, "HEAD") + final = final_directory(owner, commit, options.selection) + seal(root, final / "acceptance.json", commit) + print(final / "publication-transfer.json") elif options.operation == "record": print(record_path(root, owner, options.selection, options.role)) + elif options.operation == "publish": + publish_draft(root, owner, options.selection, options.tag) elif options.operation == "upload": upload_dispatch(root, owner, options.selection, options.tag) else: diff --git a/uv.lock b/uv.lock index 13365a2..d9c8a2a 100644 --- a/uv.lock +++ b/uv.lock @@ -492,12 +492,12 @@ build = [ dev = [ { name = "actionlint-py", specifier = "==1.7.12.25" }, { name = "pytest-xdist", specifier = "==3.8.0" }, - { name = "research-repo-tools", extras = ["python-tools", "semgrep"], marker = "python_full_version >= '3.15'", specifier = "==0.2.9" }, + { name = "research-repo-tools", extras = ["python-tools", "semgrep"], marker = "python_full_version >= '3.15'", specifier = "==0.3.0" }, { name = "shellcheck-py", specifier = "==0.11.0.1" }, { name = "shfmt-py", specifier = "==4.2.0" }, { name = "yamllint", specifier = "==1.38.0" }, ] -tooling = [{ name = "research-repo-tools", extras = ["python-tools", "semgrep"], marker = "python_full_version >= '3.15'", specifier = "==0.2.9" }] +tooling = [{ name = "research-repo-tools", extras = ["python-tools", "semgrep"], marker = "python_full_version >= '3.15'", specifier = "==0.3.0" }] [[package]] name = "markdown-it-py" @@ -958,16 +958,16 @@ wheels = [ [[package]] name = "research-repo-tools" -version = "0.2.9" +version = "0.3.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "packaging" }, { name = "pyyaml" }, { name = "rust-just" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/47/f7/9f382b8d14fa3d37be4f8323f32a7a0c5ecaa2094de65aa9b2477cde4c3d/research_repo_tools-0.2.9.tar.gz", hash = "sha256:e115f5425996337275345b9ddd117f82f5c179b3fcd2fcaf3aeb04650343e9c7", size = 1597302, upload-time = "2026-11-16T17:32:48.987Z" } +sdist = { url = "https://files.pythonhosted.org/packages/6d/fb/c94323c20809eec0cd945c07deb19eea0d59fda804de548ac9ee6b677fa6/research_repo_tools-0.3.0.tar.gz", hash = "sha256:43c64bc1b3c727914a98f0d86361805502d801bb15f63b9aec31a31c49ca565e", size = 1610073, upload-time = "2026-11-19T04:26:13.128Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/14/9b/8835593f20750ed4bc857ee0076297696cdd8772107beae4a5f9627e6943/research_repo_tools-0.2.9-py3-none-any.whl", hash = "sha256:6cc53318bf2cecafe2594993efa540d3e7f704d38e5a56e6e5d7f2e7e5103e5e", size = 676507, upload-time = "2026-11-16T17:32:47.313Z" }, + { url = "https://files.pythonhosted.org/packages/42/47/23198b9d0feed97902fea7fdc51bc19b5dd6e2d12222c0a8c3749c01709c/research_repo_tools-0.3.0-py3-none-any.whl", hash = "sha256:ef0691e0eb8009da2c0fc23990532ac9c8f16fd7451725011495b4d096663be3", size = 680413, upload-time = "2026-11-19T04:26:11.709Z" }, ] [package.optional-dependencies] @@ -978,7 +978,7 @@ python-tools = [ ] semgrep = [ { name = "semgrep", version = "1.182.1", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'x86_64' and sys_platform == 'darwin'" }, - { name = "semgrep", version = "1.185.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 'x86_64' or sys_platform != 'darwin'" }, + { name = "semgrep", version = "1.186.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 'x86_64' or sys_platform != 'darwin'" }, ] [[package]] @@ -1147,7 +1147,7 @@ wheels = [ [[package]] name = "semgrep" -version = "1.185.0" +version = "1.186.0" source = { registry = "https://pypi.org/simple" } resolution-markers = [ "platform_machine != 'x86_64' or sys_platform != 'darwin'", @@ -1183,14 +1183,14 @@ dependencies = [ { name = "urllib3" }, { name = "wcmatch" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/78/82/530228c094e10e658ba323852b169ce807f8ce826384095f89c5e5a34482/semgrep-1.185.0.tar.gz", hash = "sha256:e6fa06ae6262b13b6ef14dd634e2b7d97ccc51ff41b94da59b63862d0c8578af", size = 544995, upload-time = "2026-11-10T09:33:37.579Z" } +sdist = { url = "https://files.pythonhosted.org/packages/b6/5a/a69c0b96d98c6fdcfcfada401457156097e418a46648de3656900f96fb03/semgrep-1.186.0.tar.gz", hash = "sha256:378b67e7a6627749ad385f5d2e194ba456ece29f37462cd52d3b8897d58a4ea3", size = 546692, upload-time = "2026-11-18T00:23:16.759Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/63/8a/746b73f404709f89cecbd80f7dcd4e347b21353bfdea163cb23158d4593f/semgrep-1.185.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-macosx_11_0_arm64.whl", hash = "sha256:d54c7dc22f6f360e0f9f850b1ecdfe00ec755600f9cf2ec6be3928b42818f1b4", size = 51294733, upload-time = "2026-11-10T09:33:11.316Z" }, - { url = "https://files.pythonhosted.org/packages/ba/4e/cae05468e1b8c33a18bafb25539f845d6f35e6e58973ebdd2aafa6b387ed/semgrep-1.185.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-manylinux_2_34_aarch64.whl", hash = "sha256:8cffbaf80abb8e39abc6d7a86588dcf94b7ddc1f40e8e16e555a1116347be3ef", size = 74330399, upload-time = "2026-11-10T09:33:15.739Z" }, - { url = "https://files.pythonhosted.org/packages/f2/13/0d4dc8d124794105f300082c46e3d8ad45eac7af63113b57a5966629b5a3/semgrep-1.185.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-manylinux_2_34_x86_64.whl", hash = "sha256:0eb6aaadad5b957af96d1300487e10af1dc8016e8ef53072effb48cd4906c02b", size = 72302138, upload-time = "2026-11-10T09:33:20.37Z" }, - { url = "https://files.pythonhosted.org/packages/c6/4e/77b2128d3a7f2e1f9abbeb4b0d7f9f59957663b6aa01a9b2e0f4d1c1b915/semgrep-1.185.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-musllinux_1_2_aarch64.whl", hash = "sha256:99fde53fda44c25d8ab27424f421947b0a0186d86ce888c593a6da62b811d783", size = 81433630, upload-time = "2026-11-10T09:33:25.128Z" }, - { url = "https://files.pythonhosted.org/packages/fb/60/e0557977f9b0ae3a5158e2a311c35f8ed59359cac2788bb3c6dc461de3dc/semgrep-1.185.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-musllinux_1_2_x86_64.whl", hash = "sha256:f030c391af948b493ae2220a1b64372df5f18adf8e2dd909ab62035364c51890", size = 79028279, upload-time = "2026-11-10T09:33:30.073Z" }, - { url = "https://files.pythonhosted.org/packages/8e/8e/c8d5135ff77a60e825c08b68272a924572e59841d01beba29be7041d2c75/semgrep-1.185.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-win_amd64.whl", hash = "sha256:91812ac0856cfe5b6135a4dffde3052a04c36a46e4e82e78793e3a07e51d7894", size = 59558677, upload-time = "2026-11-10T09:33:34.366Z" }, + { url = "https://files.pythonhosted.org/packages/b6/07/6d2061ec44a06334aadee7d2b589f9bc24c141932412a0c6196381fd26ba/semgrep-1.186.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-macosx_11_0_arm64.whl", hash = "sha256:94b473227b1abe89d104bf87a50e257b3c47f0e09483e4290babc99c01e3aea8", size = 53681073, upload-time = "2026-11-18T00:22:47.885Z" }, + { url = "https://files.pythonhosted.org/packages/ef/fa/3fe2cef7a821992b0b1ac00a0d9acf3944fe2cf8ce5840ae6331e702b70a/semgrep-1.186.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-manylinux_2_34_aarch64.whl", hash = "sha256:bde206edcfa9ac2f5ed5e3fc58d1c675b4e9979a716ecb46b4e60e6bb6a035a4", size = 76910525, upload-time = "2026-11-18T00:22:52.307Z" }, + { url = "https://files.pythonhosted.org/packages/fd/8c/25b9b38199d0bb5ec2fb12dbea2a7172b6cd0672a1161e2e33dbf3029cd1/semgrep-1.186.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-manylinux_2_34_x86_64.whl", hash = "sha256:54ebaf79adf4e5855c54d5e4457d8d03f27cc6bf73d79642281790b833d92e4f", size = 74720010, upload-time = "2026-11-18T00:22:56.411Z" }, + { url = "https://files.pythonhosted.org/packages/54/4c/7b1200bcb69511861f9f804cf45b8460ebc0a486158c387a5f8bacca3a7a/semgrep-1.186.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-musllinux_1_2_aarch64.whl", hash = "sha256:efb8dde6c4041eeb51d001bc379f6860a403f2bbc351c001551439e2ce6f6320", size = 84145445, upload-time = "2026-11-18T00:23:00.65Z" }, + { url = "https://files.pythonhosted.org/packages/30/94/9f2ea086ec99eae0857ffb6fe88c8084efad85975e609f08fc245d772e87/semgrep-1.186.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-musllinux_1_2_x86_64.whl", hash = "sha256:bd0cfe78d0fab4da9a27e591c7dfde118757fba71e483b74bc2007ef695a1108", size = 81487846, upload-time = "2026-11-18T00:23:07.205Z" }, + { url = "https://files.pythonhosted.org/packages/0e/48/d1bd6afbcd9605894557092fe0ef32272fe2fc917c29eae301792528e276/semgrep-1.186.0-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-win_amd64.whl", hash = "sha256:6f776a581d2e6598d149b6f67e65accb8f9809218a9ab59515a2bd96d5029900", size = 61868647, upload-time = "2026-11-18T00:23:14.172Z" }, ] [[package]]