The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(release): a Store submission failure never blocks publishing
Tekniumddfe1d76629a
diff --git a/.github/workflows/desktop-bundled-release.yml b/.github/workflows/desktop-bundled-release.ymlindex 6fcb0691dd5..e1b279c7723 100644--- a/.github/workflows/desktop-bundled-release.yml+++ b/.github/workflows/desktop-bundled-release.yml@@ -2426,6 +2426,9 @@ jobs:name: Submit the verified Store packageneeds: [validate, stable-publish]if: inputs.release-phase == 'publish'+ # The Store is not a release gate: a failed submission leaves the release publishable+ # and the summary names the Store package for a manual Partner Center upload.+ continue-on-error: trueruns-on: windows-latest-32-coreenvironment: release-signingtimeout-minutes: 60@@ -2461,6 +2464,16 @@ jobs:# Auto-publish stays off: the submission is committed with# targetPublishMode Manual and is released by the publication pass.python -m scripts.releases.store submit "${files[0]}"+ - name: Name the Store package for a manual upload+ if: failure()+ shell: bash+ run: |+ name=$(cd verified 2>/dev/null && ls Store-*.msixbundle 2>/dev/null | head -1)+ base="${CLOUDFLARE_R2_PUBLIC_URL%/}/releases/tag/$HERMES_ARCHIVE_TAG"+ url="$base/${name:-handoff-windows-universal.json}"+ msg="Store submission failed; the release is still publishable. Upload this package in Partner Center: $url"+ echo "::warning title=Microsoft Store::$msg"+ { echo "## Microsoft Store: manual upload needed"; echo; echo "$msg"; } >> "$GITHUB_STEP_SUMMARY"stable-phase-result:name: Stable bundle phase completeddiff --git a/scripts/releases/job_groups.py b/scripts/releases/job_groups.pyindex 3952ebfdd35..0d921c79b62 100644--- a/scripts/releases/job_groups.py+++ b/scripts/releases/job_groups.py@@ -72,7 +72,8 @@ def phase_jobs(selected: dict[str, bool], phase: str, *, skip_tests: bool = Fals"""required = ["validate"]if phase == "publish":- return required + ["stable-publish", "stable-store"]+ # stable-store is not required: a Store failure never blocks publication.+ return required + ["stable-publish"]if phase != "candidate":raise ValueError(f"Unknown release phase: {phase}")for group, jobs in GROUP_JOBS.items():diff --git a/scripts/releases/sequencer.py b/scripts/releases/sequencer.pyindex b7b499ef4a0..f6de857d1a7 100644--- a/scripts/releases/sequencer.py+++ b/scripts/releases/sequencer.py@@ -389,8 +389,13 @@ def reconcile(env: dict, *, run=output, read_head=None, advance_head=None,if not record["skip_bundles"]:# The Store check joins the pass here (after the feeds and aliases# move). It never releases the held submission: the API cannot,- # so it prints the Publish now step. A failed submission is red.- store.check_from_env(env)+ # so it prints the Publish now step. The Store never blocks a+ # release: a failed or unreadable submission becomes a warning.+ try:+ store.check_from_env(env)+ except store.StoreError as error:+ print(f"::warning title=Microsoft Store::{error}. The release is published; "+ "upload the Store package from the release run's summary in Partner Center.")advance_head = production_advancefor step in steps:diff --git a/tests/scripts/test_job_groups.py b/tests/scripts/test_job_groups.pyindex 01d4810aed9..06c21a456f7 100644--- a/tests/scripts/test_job_groups.py+++ b/tests/scripts/test_job_groups.py@@ -60,7 +60,7 @@ def test_phase_jobs_judge_only_the_selected_groups():# A claim that skipped tests still judges every build, and no smoke.untested = phase_jobs(every, "candidate", skip_tests=True)assert untested == [job for job in candidate if not job.startswith("smoke-")]- assert phase_jobs(every, "publish") == ["validate", "stable-publish", "stable-store"]+ assert phase_jobs(every, "publish") == ["validate", "stable-publish"]with pytest.raises(ValueError, match="Unknown release phase"):phase_jobs(every, "promote")diff --git a/tests/scripts/test_release_store.py b/tests/scripts/test_release_store.pyindex b41aa36600e..13344260812 100644--- a/tests/scripts/test_release_store.py+++ b/tests/scripts/test_release_store.py@@ -239,3 +239,21 @@ def test_check_from_env_passes_the_configured_credentials():token = next(r for r in api.requests if r["url"].endswith("/token"))assert token["form"]["client_id"] == "CLIENT"assert token["form"]["client_secret"] == "SECRET"+++def test_submit_reads_and_writes_the_keys_as_the_submission_spells_them():+ """The CLI emits PascalCase; a camelCase (REST-shaped) submission keeps its own keys."""+ from scripts.releases.store import submit++ class _CamelCli(_Cli):+ def __call__(self, argv):+ out = super().__call__(argv)+ if argv[:3] == ["msstore", "submission", "get"]:+ data = json.loads(out)+ return json.dumps({k[0].lower() + k[1:]: v for k, v in data.items()})+ return out++ cli = _CamelCli(pending=True)+ submit("verified/Store-1.2.3.msixbundle", product_id="9NTEST", run=cli)+ assert any(name.startswith("msstore submission delete") for name in cli.names())+ assert cli.updated["targetPublishMode"] == "Manual" and "TargetPublishMode" not in cli.updated