The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(release): a Store-only Windows build gets no signing vars; Store-plus-macOS smokes record only macOS
etherneta8cc19ebfdc2
diff --git a/.github/workflows/desktop-bundled-release.yml b/.github/workflows/desktop-bundled-release.ymlindex 6347dea02be..c9ad5fc18e6 100644--- a/.github/workflows/desktop-bundled-release.yml+++ b/.github/workflows/desktop-bundled-release.yml@@ -655,15 +655,17 @@ jobs:- name: Build and packageshell: powershelltimeout-minutes: 900+ # A Store-only build gets no signing vars: after-pack and electron-builder sign payload binaries+ # whenever they are set, and this job skips the Azure login that would let them.env:HERMES_BUNDLE_ENV_JSON: ${{ inputs.bundle_env }}PYTHONUTF8: '1'- AZURE_SIGN_ENDPOINT: ${{ vars.AZURE_SIGN_ENDPOINT }}- AZURE_SIGN_ACCOUNT: ${{ vars.AZURE_SIGN_ACCOUNT }}- AZURE_SIGN_PROFILE: ${{ vars.AZURE_SIGN_PROFILE }}- AZURE_SIGN_PUBLISHER: ${{ vars.AZURE_SIGN_PUBLISHER }}- AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}- AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }}+ AZURE_SIGN_ENDPOINT: ${{ inputs.skip-signed != true && vars.AZURE_SIGN_ENDPOINT || '' }}+ AZURE_SIGN_ACCOUNT: ${{ inputs.skip-signed != true && vars.AZURE_SIGN_ACCOUNT || '' }}+ AZURE_SIGN_PROFILE: ${{ inputs.skip-signed != true && vars.AZURE_SIGN_PROFILE || '' }}+ AZURE_SIGN_PUBLISHER: ${{ inputs.skip-signed != true && vars.AZURE_SIGN_PUBLISHER || '' }}+ AZURE_CLIENT_ID: ${{ inputs.skip-signed != true && vars.AZURE_CLIENT_ID || '' }}+ AZURE_TENANT_ID: ${{ inputs.skip-signed != true && vars.AZURE_TENANT_ID || '' }}AZURE_TOKEN_CREDENTIALS: prodSKIP_SIGNED: ${{ inputs.skip-signed }}SKIP_STORE: ${{ inputs.skip-store }}diff --git a/scripts/releases/stable.py b/scripts/releases/stable.pyindex 7dc75e657fe..ff49a37c388 100644--- a/scripts/releases/stable.py+++ b/scripts/releases/stable.py@@ -796,7 +796,9 @@ def candidate_manifest(env: dict) -> None:handoffs = lane_set.handoffs(lanes, CANDIDATE_HANDOFFS)# A call the claim did not build never ran, so it has no smoke to record.runs = lane_set.jobs_to_run(lanes)- calls = {call: job for call, job in CALL_SMOKE_JOBS.items() if runs[call]}+ # A call whose package is not a target (the Store variant is not install-smoked) has no smoke.+ built = lane_set.targets(lanes)+ calls = {call: job for call, job in CALL_SMOKE_JOBS.items() if runs[call] and SMOKE_TARGETS[job] in built}smoke = {job: {"result": "skipped"} for job in CALL_SMOKE_JOBS.values()}if lane_set.runs_smokes(lanes):ran = {job: {"result": (needs.get(call) or {}).get("result")} for call, job in calls.items()}diff --git a/tests/ci/test_stable_release_graph.py b/tests/ci/test_stable_release_graph.pyindex 0b8c20b8abb..d7f95acfc7e 100644--- a/tests/ci/test_stable_release_graph.py+++ b/tests/ci/test_stable_release_graph.py@@ -168,6 +168,18 @@ def test_lane_inputs_reach_the_workflows_they_configure():assert set(gated) <= set(direct_needs(jobs, name)), name+def test_a_store_only_build_is_handed_no_signing_variables():+ """after-pack and electron-builder sign whenever AZURE_SIGN_* are set; the Azure login is skipped+ with the signed lane, so the build step must see them empty."""+ jobs = workflow("desktop-bundled-release.yml")["jobs"]+ step = next(step for step in jobs["build-win32-x64-release"]["steps"] if step.get("name") == "Build and package")+ azure = {key: value for key, value in step["env"].items() if key.startswith("AZURE_") and key != "AZURE_TOKEN_CREDENTIALS"}+ assert set(azure) == {"AZURE_SIGN_ENDPOINT", "AZURE_SIGN_ACCOUNT", "AZURE_SIGN_PROFILE", "AZURE_SIGN_PUBLISHER",+ "AZURE_CLIENT_ID", "AZURE_TENANT_ID"}+ for key, value in azure.items():+ assert value == f"${{{{ inputs.skip-signed != true && vars.{key} || '' }}}}", key++def test_admit_emits_the_same_lanes_and_jobs_the_gate_reads(tmp_path):from scripts.releases import stablediff --git a/tests/scripts/test_stable_release.py b/tests/scripts/test_stable_release.pyindex dca189593dc..7a54101ddc6 100644--- a/tests/scripts/test_stable_release.py+++ b/tests/scripts/test_stable_release.py@@ -663,6 +663,35 @@ def test_a_store_only_claim_assembles_a_manifest_with_the_store_bundle_and_no_pastable.require_targets_match_claim(manifest, lanes)+def test_a_store_plus_macos_claim_records_only_the_macos_smoke(+ tmp_path, r2_server, https_origin, monkeypatch):+ """--without windows: the Windows candidate calls run for the Store bundle and succeed, but no+ Windows package is smoked, so their success is not a smoke result."""+ from scripts.releases import handoff, stable++ https_origin.store = r2_server.store+ built = tmp_path / "built"+ built.mkdir()+ _stage_darwin_handoff(built, "arm64")+ for arch in ("x64", "arm64"):+ (built / f"Store-Product-1.2.3-win-{arch}.msix").write_bytes(f"store msix: {arch}".encode())+ handoff.stage(ATTEMPT, RECEIPT_COMMIT, f"win32-{arch}", built, [f"Store-Product-1.2.3-win-{arch}.msix"])+ _stage_universal_bundle(built, signed=False)+ lanes = lane_set.select(without=["windows"])+ assert lane_set.runs_smokes(lanes) and "windows-store" in lanes+ monkeypatch.setattr(stable, "stable_context", _fake_stable_context(lanes=lanes))+ calls = _calls(lanes)+ assert calls["candidates-win32-x64"] == {"result": "success"}+ env = {**_receipt_env(tmp_path, https_origin.base), "RELEASE_NEEDS": json.dumps(calls)}+ stable.main(["candidate-manifest"], env)+ manifest = json.loads(r2_server.store[f"releases/tag/{ATTEMPT}/release-candidates.json"][0])+ assert {f"{row['platform']}/{row['arch']}" for row in manifest["packages"]} == {"macos/arm64"}+ assert manifest["smoke_results"]["smoke-darwin-arm64"] == {"result": "success"}+ assert manifest["smoke_results"]["smoke-win32-x64"] == {"result": "skipped"}+ stable.require_smokes_match_claim(manifest, lanes)+ stable.require_targets_match_claim(manifest, lanes)++def test_the_manifest_refuses_a_windows_bundle_the_claims_lanes_did_not_build(tmp_path, r2_server, https_origin, monkeypatch):"""A signed bundle under a Store-only claim, or a missing Store bundle under `windows` + `windows-store`."""