Commit 1862c71
Kowser
Add agent import smoke test and [agents]-extra test job to PR CI
Extends the existing single unit-test job (rather than adding a new
job) to match its established pattern: per-step continue-on-error +
a final aggregating "Check test results" gate.
- "Verify agents import without extras installed" runs right after the
existing base `pip install -e .` step (already extras-free) and
before any agents-specific install, so it genuinely exercises the
no-extras case -- this is the regression class the Stage 1 langchain.py
fix addressed.
- "Install agents extra" + "Run agent tests" run after the three
existing suites, installing `.[agents]` plus pytest-asyncio.
pytest-asyncio is required explicitly here: it's declared in
[tool.poetry.group.dev.dependencies], but this workflow installs via
plain pip (not `poetry install`), which never sees poetry dependency
groups -- confirmed by simulating the exact CI command sequence in a
fresh venv, which reproduced 30 async-test failures
("async def functions are not natively supported") until
pytest-asyncio was installed explicitly. pytest-xdist and
pytest-rerunfailures (also dev-group-only) are not added since
nothing in tests/ai depends on either.
- Both new steps feed the existing coverage-file-per-suite +
`coverage combine` pattern automatically (the combine step already
globs `.coverage.*`), and both are added to the final
"Check test results" gate.
Verified by replicating this exact install/test sequence end-to-end in
a throwaway venv: base install + smoke test, all three existing suites,
agents-extra install, agent suite, coverage combine across all 4 files
-- all green (1683 agent tests passed, existing suites unaffected).
e2e/ is intentionally not wired in here (still-open item: what server
these hit once Agentspan's own is discarded).1 parent dc6415f commit 1862c71
1 file changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
67 | 86 | | |
68 | 87 | | |
69 | 88 | | |
| |||
91 | 110 | | |
92 | 111 | | |
93 | 112 | | |
94 | | - | |
| 113 | + | |
95 | 114 | | |
0 commit comments