Skip to content

The agent that grows with you

test(release): promotion refuses a corrupt feed leg, not a package it no longer downloads

ethernet7c6b8a048ec7
diff --git a/tests/scripts/test_release_artifacts.py b/tests/scripts/test_release_artifacts.py
index 26cecbf8672..c42d4e9e066 100644
--- a/tests/scripts/test_release_artifacts.py
+++ b/tests/scripts/test_release_artifacts.py
@@ -237,7 +237,9 @@ def test_candidate_publication_and_store_selection(tmp_path, monkeypatch, r2_ser
r2_server.corrupt_put = None
r2_server.store[pointer] = original
before = dict(r2_server.store)
- r2_server.store[f"releases/tag/{manifest['archive']}/Product-win.msixbundle"] = (b'corrupt', '"e"')
+ # Packages are receipt-bound and never re-downloaded here; a corrupt file that
+ # promotion does materialize (a feed leg) is still refused before any write.
+ r2_server.store[f"releases/tag/{manifest['archive']}/arm64-stable-mac.yml"] = (b'corrupt', '"e"')
r2_server.requests.clear()
with pytest.raises(ValueError, match='digest mismatch'):
artifacts.promote(manifest, tmp_path / 'broken', base)