Skip to content

Make an emulator channel include the more stable channels - #417

Merged
jpcottin merged 2 commits into
google:masterfrom
jpcottin:fix/emulator-channel-includes-more-stable
Oct 4, 2026
Merged

jpcottin merged 2 commits into
google:masterfrom
jpcottin:fix/emulator-channel-includes-more-stable

Conversation

@jpcottin

@jpcottin jpcottin commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

What

emu-docker create canary <image> currently fails with
"No emulator found in channel canary".

find_emulator only matched packages tagged with exactly the requested
channel. The pre-release emulator is published on channel-2 ("dev" in
the repository XML) and nothing is published on channel-3, so canary
matched nothing.

Change

sdkmanager treats a channel as including the more stable channels below
it, and lists that same emulator as canary. find_emulator now does the
same: a channel name gives the newest emulator published on that channel
or a more stable one.

  • canary resolves to 37.3.2 today (it found nothing before)
  • stable is unchanged (37.2.12 today)
  • all still returns every published emulator

Testing

  • New tests/test_find_emulator.py (10 tests).
  • pytest tests/ --ignore=tests/e2e: 52 passed.
  • Checked stable, canary and all against the live repository.

`emu-docker create canary <image>` failed with "No emulator found in
channel canary": find_emulator only matched packages tagged with exactly
that channel, and the pre-release emulator is published on channel-2
("dev" in the repository XML), with nothing on channel-3.

sdkmanager treats a channel as including the more stable ones below it,
and lists that same emulator as canary. Do the same: a channel name now
gives the newest emulator published on that channel or a more stable
one. "all" still returns every published emulator.
The fixtures used versions that look like current releases, which reads
as if the tests depended on what is published. Only the order of the
versions and their channel matter.
@jpcottin
jpcottin merged commit b05fdcf into google:master Oct 4, 2026
11 checks passed
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