test: strengthen wizard env and config sync coverage#169
Merged
davincios merged 3 commits intoTracer-Cloud:mainfrom Mar 29, 2026
Merged
test: strengthen wizard env and config sync coverage#169davincios merged 3 commits intoTracer-Cloud:mainfrom
davincios merged 3 commits intoTracer-Cloud:mainfrom
Conversation
Contributor
|
Awesome, thanks a lot for the contribution @zeel2104 |
Contributor
|
@zeel2104 there seem to be a couple tests failing, for minor issues, if you could check those out? Edit: have fixed them :)
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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