Skip to content

Commit de0a363

Browse files
fix(ci): allow the system temp dir in release-gate index roots
The release workflow's ENGRAPHIS_INDEX_ROOTS omitted tempfile.gettempdir(), which ci.yml has included since #159. Two suites seed fixtures under the system temp dir and call index_repo against them: - eval/code_arm.py (via test_eval_code_arm.py) - tests/test_documents.py XML/container attack fixtures Both failed on every Python leg of the v1.6 release run (run 32852978103), blocking the PyPI publish. Same root cause silently blocked the Aug 15 v1.7/v1.6.1 tag runs. Ported the third approved root to all five pytest invocations that run the full suite or fixture-dependent modules; the encryption job keeps the narrower two-root set, matching ci.yml. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
1 parent 68dcc3a commit de0a363

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ jobs:
6565
ruff check .
6666
pyright
6767
python -c "import fastapi, httpx, mcp, multipart, pydantic, uvicorn"
68-
ENGRAPHIS_INDEX_ROOTS="${GITHUB_WORKSPACE}:${RUNNER_TEMP}" python -m pytest -o addopts="" tests/ -q -rs --basetemp="${RUNNER_TEMP}/engraphis-pytest"
69-
ENGRAPHIS_INDEX_ROOTS="${GITHUB_WORKSPACE}:${RUNNER_TEMP}" python -m pytest -o addopts="" tests/test_public_research_boundary.py -q --basetemp="${RUNNER_TEMP}/engraphis-pytest"
70-
ENGRAPHIS_INDEX_ROOTS="${GITHUB_WORKSPACE}:${RUNNER_TEMP}" python -m pytest -o addopts="" tests/test_compact_recall.py tests/test_eval_performance.py -q --basetemp="${RUNNER_TEMP}/engraphis-pytest"
71-
ENGRAPHIS_INDEX_ROOTS="${GITHUB_WORKSPACE}:${RUNNER_TEMP}" python -m pytest -o addopts="" tests/test_eval_harness.py tests/test_benchmark_evidence.py -q --basetemp="${RUNNER_TEMP}/engraphis-pytest"
68+
ENGRAPHIS_INDEX_ROOTS="${GITHUB_WORKSPACE}:${RUNNER_TEMP}:$(python -c 'import tempfile; print(tempfile.gettempdir())')" python -m pytest -o addopts="" tests/ -q -rs --basetemp="${RUNNER_TEMP}/engraphis-pytest"
69+
ENGRAPHIS_INDEX_ROOTS="${GITHUB_WORKSPACE}:${RUNNER_TEMP}:$(python -c 'import tempfile; print(tempfile.gettempdir())')" python -m pytest -o addopts="" tests/test_public_research_boundary.py -q --basetemp="${RUNNER_TEMP}/engraphis-pytest"
70+
ENGRAPHIS_INDEX_ROOTS="${GITHUB_WORKSPACE}:${RUNNER_TEMP}:$(python -c 'import tempfile; print(tempfile.gettempdir())')" python -m pytest -o addopts="" tests/test_compact_recall.py tests/test_eval_performance.py -q --basetemp="${RUNNER_TEMP}/engraphis-pytest"
71+
ENGRAPHIS_INDEX_ROOTS="${GITHUB_WORKSPACE}:${RUNNER_TEMP}:$(python -c 'import tempfile; print(tempfile.gettempdir())')" python -m pytest -o addopts="" tests/test_eval_harness.py tests/test_benchmark_evidence.py -q --basetemp="${RUNNER_TEMP}/engraphis-pytest"
7272
python -m eval.harness --dataset eval/datasets/sample.jsonl --k 5
7373
python -m eval.harness --dataset eval/datasets/codemem.jsonl --k 5
7474
python -m eval.ablation
@@ -306,7 +306,7 @@ jobs:
306306
if [ "${{ matrix.python-version }}" != "3.9" ]; then
307307
python -c "import fastapi, httpx, mcp, multipart, pydantic, uvicorn"
308308
fi
309-
ENGRAPHIS_INDEX_ROOTS="${GITHUB_WORKSPACE}:${RUNNER_TEMP}" python -m pytest -o addopts="" tests/ -q -rs --basetemp="${RUNNER_TEMP}/engraphis-pytest"
309+
ENGRAPHIS_INDEX_ROOTS="${GITHUB_WORKSPACE}:${RUNNER_TEMP}:$(python -c 'import tempfile; print(tempfile.gettempdir())')" python -m pytest -o addopts="" tests/ -q -rs --basetemp="${RUNNER_TEMP}/engraphis-pytest"
310310
python -m eval.harness --dataset eval/datasets/sample.jsonl --k 5
311311
python -m eval.harness --dataset eval/datasets/codemem.jsonl --k 5
312312
python -m eval.ablation

0 commit comments

Comments
 (0)