Skip to content

ci: add zero-config smoke test for planoai up with no args#919

Merged
adilhafeez merged 1 commit intomainfrom
adil/ci-zero-config-smoke-test
Apr 25, 2026
Merged

ci: add zero-config smoke test for planoai up with no args#919
adilhafeez merged 1 commit intomainfrom
adil/ci-zero-config-smoke-test

Conversation

@adilhafeez
Copy link
Copy Markdown
Contributor

Summary

  • The existing native-smoke-test only ever runs planoai up <file>, which skips the synthesize_default_config branch in cli/planoai/main.py. That branch is the path users hit when they run planoai up with no args in a directory that has no plano.yaml, and it was the source of the recent UnboundLocalError: cannot access local variable 'yaml' (fixed in fix(cli): drop function-local import yaml shadowing module global in up #916).
  • Add a follow-up step in the same job that cds into an empty temp directory, runs planoai up, asserts ~/.plano/default_config.yaml was written, performs a healthz check on :12000, and shuts down.
  • Reuses the binaries already built earlier in the job, so CI runtime is essentially unchanged.

Test plan

Made with Cursor

The existing native-smoke-test always passes a config file, so the
`synthesize_default_config` branch in `cli/planoai/main.py` is never
exercised in CI. That branch was the source of a recent UnboundLocalError
that only reproduced when invoking `planoai up` with no args in a
directory without a `plano.yaml` (fixed in #916).

Add a follow-up step in the same job that runs `planoai up` from an
empty temp directory, asserts `~/.plano/default_config.yaml` is written,
performs a healthz check, and shuts down. Reuses the binaries already
built earlier in the job to keep CI time flat.

Made-with: Cursor
@adilhafeez adilhafeez force-pushed the adil/ci-zero-config-smoke-test branch from 156b893 to fe5371a Compare April 25, 2026 00:24
@adilhafeez adilhafeez merged commit 938f9c4 into main Apr 25, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants