Skip to content

fix: handle archived Emulator beta superseded by stable - #91

Merged
inferjay merged 1 commit into
masterfrom
fix/emulator-beta-superseded-by-stable
Oct 3, 2026
Merged

inferjay merged 1 commit into
masterfrom
fix/emulator-beta-superseded-by-stable

Conversation

@inferjay

@inferjay inferjay commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Fix the missing beta cross-check in schedule run #15 when a newer stable release supersedes an archived beta and the repository feed removes its dedicated beta package.

Evidence

Targeted official-source snapshot retrieved on 2026-10-03 at approximately 03:51 UTC:

  • The official Emulator archive lists stable 37.2.12 and beta 37.2.11, both dated 2026-10-01.
  • repository2-3.xml contains Emulator stable 37.2.12 (channel-0) and dev 37.3.2 (channel-2), with no Emulator channel-1 package. Its Last-Modified header is 2026-10-01 14:57:05 UTC.
  • All four stable archive filenames and byte sizes match the XML. The existing master script reproduces the exact missing beta 37.2.11 error with this snapshot.
  • The official SDK channel rules include stable packages when selecting beta.

These sources support beta supersession by stable. No generic archive-newer rollout-lag exception is introduced.

Change and boundaries

Report beta-superseded-by-stable only when the XML has no dedicated beta package and the latest archive stable release has already passed exact version, filename, and size cross-validation. The matched stable must be strictly newer than the archived beta and dated on or after it.

The report warning explicitly states that the historical beta download metadata was not matched against XML. The existing Actions summary also displays this warning on no-change runs. Reject incomplete Emulator XML entries so malformed beta data cannot masquerade as an absent channel.

A present older beta, equal/older stable, later beta date, missing or unverified stable, wrong channel, filename/size mismatch, malformed XML, and invalid archive download metadata remain fail-closed. Existing exact matches, repository-newer behavior and staleness warnings remain intact. The workflow, published pages, download validation rules, and generated-update PR flow are unchanged.

Validation

  • python3 -m unittest discover -s tests -v: 20 tests passed (original baseline: 13).
  • Targeted cross-validation against the retrieved official Emulator snapshot: stable 37.2.12 matched; beta 37.2.11 beta-superseded-by-stable.
  • Regression coverage includes the failure boundaries above, allowed page updates, warning persistence on no-change runs, and no partial page writes after validation failure.
  • git diff --check passed.

Scope is limited to the updater and regression tests; PR #89's full release-content audit was not repeated.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T04:03:06.880667Z 0e5fa9c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@inferjay
inferjay merged commit 369625d into master Oct 3, 2026
1 check passed
@inferjay
inferjay deleted the fix/emulator-beta-superseded-by-stable branch October 9, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant