Skip to content

Conversation

@bmanan7
Copy link
Contributor

@bmanan7 bmanan7 commented Oct 29, 2025

Description

  • Ignore benign stderr produced by Podman’s docker shim when reading the runtime label so astro deploy no longer aborts for valid runtime images.
  • Update the warning copy to reference supported Astronomer runtime registries.

🎟 Issue(s)

Related #1975

🧪 Functional Testing

  • Configure docker to print the Podman compatibility banner (shim wraps the real Docker binary).
  • Run astro deploy -n <deployment name> with a Dockerfile using FROM astrocrpublic.azurecr.io/runtime:3.1-2; deployment now proceeds past the runtime check.
  • Run astro deploy with a non-runtime base image (FROM python:3.11-slim); warning still fires and deploy cancels (confirming real failures remain intact).

📸 Screenshots

Add screenshots to illustrate the validity of these changes.

📋 Checklist

  • Rebased from the main (or release if patching) branch (before testing)
  • Ran make test before taking out of draft
  • Ran make lint before taking out of draft
  • Added/updated applicable tests
  • Tested against Astro-API (if necessary).
  • Tested against Houston-API and Astronomer (if necessary).
  • Communicated to/tagged owners of respective clients potentially impacted by these changes.
  • Updated any related documentation

@coveralls-official
Copy link

Pull Request Test Coverage Report for Build f28c061d-31b9-44a0-82df-9b4effda4bef

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 38.571%

Totals Coverage Status
Change from base Build 81faee59-a52f-4df7-ba5a-9ff72ec0e630: 0.0%
Covered Lines: 24198
Relevant Lines: 62736

💛 - Coveralls

Copy link

@karankhanchandani karankhanchandani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. LGTM. Need additional review from astro team as this will affect their functionality as well.

Comment on lines +521 to +522
if execWarn := strings.TrimSpace(stderr.String()); execWarn != "" {
logger.Debugf("container runtime stderr while inspecting %s: %s", imageName, execWarn)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we ignoring this? It's still not clear to me 🤔. The image that is mentioned in the issue description astrocrpublic.azurecr.io/astronomer/astro-runtime:3.1-2 is invalid, and thus the get label fails at this point, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I didn’t update the issue description correctly before - that's on me. The screenshot was still accurate. I've now updated the description; please take another look and let me know if it makes sense.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we then specifically ignore when stderr has the string Emulate Docker CLI using podman, so that we still catch other issues?

@bmanan7 bmanan7 requested a review from neel-astro November 10, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants