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

astronomer / astro-cli / 39068171925
45%

Build:
DEFAULT BRANCH: main
Ran 17 Oct 2026 08:48PM 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

17 Oct 2026 08:46PM UTC coverage: 45.205% (+0.05%) from 45.154%
39068171925

push

github

web-flow
Stop standalone Airflow's whole process group, sign with a random secret, and warn when it's open to the network (#2222)

* Bind standalone Airflow to loopback and stop the whole process group

Standalone mode sets SIMPLE_AUTH_MANAGER_ALL_ADMINS=True while Airflow's
api-server/webserver default to binding 0.0.0.0, so a local dev instance
was reachable from other machines on the network. BuildEnv now defaults
AIRFLOW__API__HOST (Airflow 3) and AIRFLOW__WEBSERVER__WEB_SERVER_HOST
(Airflow 2) to 127.0.0.1. A user's own setting, from .env or the
inherited environment, still wins; only the default changed.

StopProcess polled the master PID, which often exits on SIGTERM before
its scheduler/api-server/triggerer children, so those children survived
astro dev stop. It now polls the process group and only returns once the
whole group is gone, escalating to SIGKILL on timeout as before.

The signal helpers are now vars so tests can stub them; the stop path is
covered without real processes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P6DEdUpFBFaAiPKEu81Wti

* Apply the loopback and process-group fixes to the live standalone paths

Review found that airflowrt.BuildEnv and airflowrt.StopProcess have no
production callers: astro dev start/stop run (*Standalone).buildEnv and
(*Standalone).Stop in airflow/standalone.go, which still bound 0.0.0.0
and still polled only the master PID. This wires the fixes into those
paths.

airflowrt now exports ApplyLoopbackDefaults, which both its own BuildEnv
and standalone.go's buildEnv call, so the two host keys are defined once.
It also exports ProcessGroupAlive; standalone.go's Stop polls it instead
of re-reading the master PID. The master is the group leader (Start sets
Setpgid), so kill(-pid, 0) is a valid group probe.

Live-path tests: buildEnv loopback defaults plus .env and inherited-env
overrides, and a Stop test that starts a real process group whose master
di... (continued)

98 of 113 new or added lines in 1 file covered. (86.73%)

1 existing line in 1 file now uncovered.

27341 of 60482 relevant lines covered (45.21%)

9.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
74.97
0.96% airflow/standalone.go

Coverage Regressions

Lines Coverage ∆ File
1
74.97
0.96% airflow/standalone.go
Jobs
ID Job ID Ran Files Coverage
1 39068171925.1 17 Oct 2026 08:48PM UTC 218
45.21
GitHub Action Run
Source Files on build 39068171925
  • Tree
  • List 218
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39068171925
  • 2ea17a2f on github
  • Prev Build on main (#39062578433)
  • Next Build on main (#39077154563)
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