Skip to content

fix(tests): do not construct GuestDistro for docker-popular#5867

Merged
Manciukic merged 4 commits into
firecracker-microvm:mainfrom
JamesC1305:fix-docker-popular-guest-distro
May 12, 2026
Merged

fix(tests): do not construct GuestDistro for docker-popular#5867
Manciukic merged 4 commits into
firecracker-microvm:mainfrom
JamesC1305:fix-docker-popular-guest-distro

Conversation

@JamesC1305
Copy link
Copy Markdown
Contributor

@JamesC1305 JamesC1305 commented May 7, 2026

We saw failures on the docker popular tests because it was trying to create a GuestDistro instance but could not find a matching entry. In reality, we don't need this object for the docker popular tests, so just return None if it's not AL2023 or Ubuntu.

Changes

  • If rootfs is neither Ubuntu or AL2023, return None for GuestDistro

Reason

Docker popular tests were trying to construct GuestDistro dataclasses for the test rootfs'. GuestDistro itself is never accessed during the tests, so we can just return None to fix this.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md.

PR Checklist

  • I have read and understand CONTRIBUTING.md.
  • I have run tools/devtool checkbuild --all to verify that the PR passes
    build checks on all supported architectures.
  • I have run tools/devtool checkstyle to verify that the PR passes the
    automated style checks.
  • I have described what is done in these changes, why they are needed, and
    how they are solving the problem in a clear and encompassing way.
  • I have updated any relevant documentation (both in code and in the docs)
    in the PR.
  • I have mentioned all user-facing changes in CHANGELOG.md.
  • If a specific issue led to this PR, this PR closes the issue.
  • When making API changes, I have followed the
    Runbook for Firecracker API changes.
  • I have tested all new and changed functionalities in unit tests and/or
    integration tests.
  • I have linked an issue to every new TODO.

  • This functionality cannot be added in rust-vmm.

We saw failures on the docker popular tests because it was trying to
create a GuestDistro instance but could not find a matching entry. In
reality, we don't need this object for the docker popular tests, so
just return None if it's not AL2023 or Ubuntu.

Signed-off-by: James Curtis <jxcurtis@amazon.co.uk>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.80%. Comparing base (1ab82e3) to head (c36c534).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5867   +/-   ##
=======================================
  Coverage   82.80%   82.80%           
=======================================
  Files         277      277           
  Lines       29892    29892           
=======================================
  Hits        24753    24753           
  Misses       5139     5139           
Flag Coverage Δ
5.10-m5n.metal 83.10% <ø> (+<0.01%) ⬆️
5.10-m6a.metal 82.43% <ø> (+<0.01%) ⬆️
5.10-m6g.metal 79.73% <ø> (-0.01%) ⬇️
5.10-m6i.metal 83.10% <ø> (+<0.01%) ⬆️
5.10-m7a.metal-48xl 82.42% <ø> (-0.01%) ⬇️
5.10-m7g.metal 79.73% <ø> (ø)
5.10-m7i.metal-24xl 83.07% <ø> (+<0.01%) ⬆️
5.10-m7i.metal-48xl 83.07% <ø> (+<0.01%) ⬆️
5.10-m8g.metal-24xl 79.72% <ø> (-0.01%) ⬇️
5.10-m8g.metal-48xl 79.73% <ø> (ø)
5.10-m8i.metal-48xl 83.07% <ø> (ø)
5.10-m8i.metal-96xl 83.07% <ø> (-0.01%) ⬇️
6.1-m5n.metal 83.13% <ø> (+<0.01%) ⬆️
6.1-m6a.metal 82.45% <ø> (+<0.01%) ⬆️
6.1-m6g.metal 79.73% <ø> (ø)
6.1-m6i.metal 83.12% <ø> (+<0.01%) ⬆️
6.1-m7a.metal-48xl 82.44% <ø> (ø)
6.1-m7g.metal 79.73% <ø> (ø)
6.1-m7i.metal-24xl 83.14% <ø> (+<0.01%) ⬆️
6.1-m7i.metal-48xl 83.14% <ø> (+<0.01%) ⬆️
6.1-m8g.metal-24xl 79.73% <ø> (ø)
6.1-m8g.metal-48xl 79.73% <ø> (ø)
6.1-m8i.metal-48xl 83.14% <ø> (+<0.01%) ⬆️
6.1-m8i.metal-96xl 83.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JamesC1305 JamesC1305 added Status: Awaiting author Indicates that an issue or pull request requires author action Status: Awaiting review Indicates that a pull request is ready to be reviewed and removed Status: Awaiting author Indicates that an issue or pull request requires author action labels May 7, 2026
@Manciukic Manciukic enabled auto-merge (rebase) May 12, 2026 08:43
@Manciukic Manciukic merged commit 6ec5511 into firecracker-microvm:main May 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Awaiting review Indicates that a pull request is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants