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

astronomer / astro-cli / b9177ddb-bcd0-4b87-9b75-2b0fe82cb535
39%
main: 45%

Build:
Build:
LAST BUILD BRANCH: julianlaneve/standalone-pump-hardening
DEFAULT BRANCH: main
Ran 09 Apr 2026 04:45PM UTC
Jobs 1
Files 195
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

09 Apr 2026 04:39PM UTC coverage: 39.401% (+0.06%) from 39.344%
b9177ddb-bcd0-4b87-9b75-2b0fe82cb535

Pull #2078

circleci

jlaneve
Batch import Airflow settings to speed up `astro dev start`

Previously, `AddVariables`, `AddConnections`, and `AddPools` each ran a
separate `docker exec` (or `bash -c` for standalone mode) per object.
Every call paid the full Airflow CLI startup cost (~2-5s), so a project
with 10 connections, 5 variables, and 2 pools would spend 1-2+ minutes
just on settings injection.

Replace the per-item loops with Airflow's native batch import commands
(`airflow variables import`, `airflow connections import --overwrite`,
`airflow pools import`) for Airflow 2+. A single JSON file is written
into the container/venv via a heredoc and imported in one CLI invocation,
reducing O(n) exec calls to O(1) per object type.

Key changes:
- Variables: marshal to `{"name":"value",...}` JSON, import in one call
- Connections: marshal to `{"conn_id":{...}}` JSON (or URI string),
  import with `--overwrite` (eliminates the list+delete+add cycle)
- Pools: marshal to `{"pool_name":{"slots":N,"description":"..."}}` JSON,
  import in one call
- Airflow 1 codepaths are preserved unchanged as legacy fallbacks
- Exit code from the import command is captured and propagated even
  after temp file cleanup

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pull Request #2078: Batch import Airflow settings to speed up dev start

152 of 179 new or added lines in 1 file covered. (84.92%)

33 existing lines in 2 files now uncovered.

24937 of 63291 relevant lines covered (39.4%)

9.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
27
80.26
-2.16% settings/settings.go

Coverage Regressions

Lines Coverage ∆ File
19
80.26
-2.16% settings/settings.go
14
76.26
-1.73% airflow/standalone.go
Jobs
ID Job ID Ran Files Coverage
1 b9177ddb-bcd0-4b87-9b75-2b0fe82cb535.1 09 Apr 2026 04:45PM UTC 195
39.4
Source Files on build b9177ddb-bcd0-4b87-9b75-2b0fe82cb535
  • Tree
  • List 195
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #B9177DDB...
  • Pull Request #2078
  • PR Base - main (#CAF414DE...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc