Commit 42555f55 authored by Konstantinos Togias's avatar Konstantinos Togias
Browse files

ci: force SDK candidate replacement even when its version matches the baseline

parent a1da640e
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for ci/sdk-consumer.md: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ The `sdk-consumer` job accepts candidates only in a downstream pipeline from
TF-SDK project 396. CI_JOB_TOKEN downloads a single build job's artifact;
source SHA, manifest membership and wheel SHA-256 must match the request.
The normal locked environment is prepared without installing SRM's distribution;
the candidate wheel replaces the baseline SDK and installs its declared runtime
the candidate wheel forcibly replaces the baseline SDK, including same-version rebuilds and installs its declared runtime
dependencies. `uv pip check` must pass. Source imports use SRM's src directory.
The normal lock pins the published 2.0.0rc2 candidate. New SDK candidates can
be overlaid for qualification before their own registry publication.
+13 −1
Changes for ci/sdk_consumer.py: 13 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -56,7 +56,19 @@ def main():
    if not any(x == {"name": wheel_name, "sha256": expected_hash} for x in manifest["artifacts"]):
        raise ValueError("Wheel is absent from the build manifest")
    python = ROOT / ".venv/bin/python"
    subprocess.run(["uv", "pip", "install", "--python", str(python), str(wheel)], check=True)
    subprocess.run(
        [
            "uv",
            "pip",
            "install",
            "--reinstall-package",
            "openop-tfsdk",
            "--python",
            str(python),
            str(wheel),
        ],
        check=True,
    )
    subprocess.run(["uv", "pip", "check", "--python", str(python)], check=True)
    environment = dict(os.environ, PYTHONPATH=str(ROOT / "src"))
    report = OUT / "junit.xml"