Repository navigation
test(integration): exercise PanMedia against Astrologically Intelligent - #3
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 484f8b1375
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| from http.server import ThreadingHTTPServer | ||
| from pathlib import Path | ||
|
|
||
| AI_ROOT = Path(os.getenv("ASTRO_AI_REPO_PATH", "")).expanduser() |
There was a problem hiding this comment.
Skip integration tests when the backend path is unset
When ASTRO_AI_REPO_PATH is unset, Path("") becomes Path("."), which exists in a normal checkout. The skip in setUp is therefore bypassed, and the tests fail because the external package cannot be imported. This makes the documented python -m unittest discover -s tests -v fail for local runs without the optional backend checkout.
Useful? React with 👍 / 👎.
Summary
Add a cross-repository integration test that starts the real Astrologically Intelligent HTTP API with a deterministic model provider, then sends PanMedia's existing server-side proxy requests through it. The test covers agent registration, listing, lookup, pause/reactivate, heartbeat, execution, run retrieval, goals, approvals, plus budgets.
The test also verifies that the backend control plane rejects requests when its server-side bearer token is absent. The CI workflow checks out the public Astrologically Intelligent repository and runs this integration test alongside PanMedia's existing proxy tests.
Validation boundaries
This is a local in-process integration test using the real code from both repositories. It does not claim a public deployment, production endpoint, or live model-provider connection.
How to Test
ASTRO_AI_REPO_PATHto a checkout ofJAPStudios/Astrologically-Intelligent.python -m unittest tests.test_live_backend_integration -v.python -m unittest discover -s tests -v.CI clones the public Astrologically Intelligent
mainbranch before running the suite.