Skip to content

test: strengthen wizard env and config sync coverage#169

Merged
davincios merged 3 commits intoTracer-Cloud:mainfrom
zeel2104:test/wizard-env-sync-coverage
Mar 29, 2026
Merged

test: strengthen wizard env and config sync coverage#169
davincios merged 3 commits intoTracer-Cloud:mainfrom
zeel2104:test/wizard-env-sync-coverage

Conversation

@zeel2104
Copy link
Copy Markdown
Contributor

Summary
Adds stronger test coverage for the quickstart wizard contract between .env sync and the local opensre.json config store.

What changed

added end-to-end wizard tests that verify provider, model, and API key values stay aligned between .env and opensre.json
added coverage for switching providers to ensure the persisted local config and active .env values remain in sync
reduced eager wizard imports so the wizard test modules collect cleanly without pulling heavy runtime dependencies during import
Why
This makes the quickstart flow more robust against regressions in CI/CD and unexpected local/agent environments, especially around the persistence boundary between synced env vars and saved wizard configuration.

Validation

targeted wizard tests passed locally
ruff check app\cli\wizard
mypy app\cli\wizard\flow.py app\cli\wizard\validation.py app\cli\wizard_init_.py app\cli\wizard\flow_test.py

@davincios
Copy link
Copy Markdown
Contributor

Awesome, thanks a lot for the contribution @zeel2104

@davincios
Copy link
Copy Markdown
Contributor

davincios commented Mar 29, 2026

@zeel2104 there seem to be a couple tests failing, for minor issues, if you could check those out?

Edit: have fixed them :)

image

Keep the wizard validation imports lazy while preserving the module-level
Anthropic/OpenAI symbols that the validation tests monkeypatch during collection.

Made-with: Cursor
Avoid failing the infra-backed Kubernetes CI job when the runner has no AWS
credentials by exiting cleanly before provisioning local resources.

Made-with: Cursor
@davincios davincios merged commit 8d0a4a5 into Tracer-Cloud:main Mar 29, 2026
7 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