• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

astronomer / astro-cli / 39081543172
45%

Build:
DEFAULT BRANCH: main
Ran 18 Oct 2026 12:09AM UTC
Jobs 1
Files 218
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Oct 2026 12:06AM UTC coverage: 45.273% (+0.03%) from 45.244%
39081543172

push

github

web-flow
Refuse a Remote Execution agent image on astro deploy, and warn when astro remote deploy gets something else (#2226)

* Warn/cancel when a Dockerfile's base image flavor doesn't match the deploy path

astro deploy (hosted) and astro remote deploy (Remote Execution) expect
structurally different images. Add a best-effort check, at both pre-build
(inspects the Dockerfile's FROM image directly, skips silently on
unresolvable ARG-templated FROM lines) and post-build (inspects the actual
built image -- no ambiguity, so this one cancels the deploy rather than
just warning, mirroring the existing ValidRuntimeVersion cancel-on-mismatch
convention) stages.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Narrow the env var check to never expose values, only a boolean

Replace ImageHandler.GetEnvVars() (returned the full "KEY=VALUE" list,
including any values baked into the image) with
HasEnvVarWithPrefix(altImageName, prefix) (bool, error). The raw env
list is now parsed and discarded entirely within a single function in
docker_image.go; nothing outside that function -- not the interface,
not cloud/deploy, not any log line -- ever sees a variable's value or
even the full list of variable names. Callers only ever learn whether
a given name prefix is present.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Fix lint: reduce buildImage cognitive complexity, drop unused param

Extract the pre-build and post-build agent-flavor check call sites
in buildImage/DeployClientImage into small dedicated helper
functions (warnIfPreBuildAgentFlavorMismatch,
cancelIfAgentFlavorImageHosted) -- gocognit flagged buildImage at 31
(> 30) after the checks were inlined there. Also rename
hasEnvVarWithPrefix to isAgentFlavorImage and drop its now-constant
prefix parameter (unparam: every call site passed agentEnvVarPrefix).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Keep only the post-build agent image check, and never block on a failed inspect
... (continued)

52 of 77 new or added lines in 3 files covered. (67.53%)

27437 of 60603 relevant lines covered (45.27%)

9.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
0.0
0.0% airflow/mocks/ImageHandler.go
4
80.62
0.28% airflow/docker_image.go
Jobs
ID Job ID Ran Files Coverage
1 39081543172.1 18 Oct 2026 12:09AM UTC 218
45.27
GitHub Action Run
Source Files on build 39081543172
  • Tree
  • List 218
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39081543172
  • 3dc5fa39 on github
  • Prev Build on main (#39078688035)
  • Next Build on main (#39082423874)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc