Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ For report releases, open success and failure details, evidence dialogs and retu
<details>
<summary>What the package gate tests</summary>

The gate builds a source archive, then a wheel from that archive. It compares installed modules and resources byte for byte and exercises TypeScript tool bridges, synthetic TEDS revisions, LangChain extraction and Crawl4AI downloads against local HTTP fixtures, including HTTP failures. Missing, stale or extra installed files fail the gate. Node tests use `node:module.stripTypeScriptTypes`.
The gate builds a source archive, then a wheel from that archive. Standard `python -m pip` installs both formats in a clean virtual environment outside the checkout, checks dependencies with `pip check`, and runs the installed command before the wheel smoke tests. It compares installed modules and resources byte for byte and exercises TypeScript tool bridges, synthetic TEDS revisions, LangChain extraction and Crawl4AI downloads against local HTTP fixtures, including HTTP failures. Missing, stale or extra installed files fail the gate. Node tests use `node:module.stripTypeScriptTypes`.

</details>

Expand Down
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,15 @@ package-check: runtime-check
test "$$#" -eq 1; test -f "$$1"; \
wheel="$$1"; \
cd "$$package_run"; \
$(UV) run --no-project --isolated --python 3.11 --with "$$wheel" \
python "$$project_root/tests/package_smoke.py" --source-root "$$project_root" \
$(UV) venv --seed --python 3.11 "$$package_run/pip-venv"; \
pip_python="$$package_run/pip-venv/bin/python"; \
set -- "$$package_build"/*.tar.gz; test "$$#" -eq 1; \
"$$pip_python" -m pip install "$$1"; \
"$$pip_python" -m pip check; \
"$$package_run/pip-venv/bin/browser-harness-eval" validate; \
"$$pip_python" -m pip install --force-reinstall --no-deps "$$wheel"; \
"$$pip_python" -m pip check; \
"$$pip_python" "$$project_root/tests/package_smoke.py" --source-root "$$project_root" \
--node-html-markdown-path "$$project_root/node_modules/node-html-markdown"; \
$(UV) run --no-project --isolated --python 3.11 --with "$${wheel}[webmainbench-eval]" \
python "$$project_root/tests/package_smoke.py" --source-root "$$project_root" \
Expand Down
Loading