t1mato opened a new pull request, #832:
URL: https://github.com/apache/burr/pull/832

   ## Summary
   
   Implements all remaining sub-items from #747, covering four areas:
   
   **Files & Scripts** — Rename `examples/deep-researcher/utils.py` to 
`deep_researcher_utils.py`
   to avoid a RAT basename collision with four other ASF-owned `utils.py` 
files. Thread
   `--skip-signing` through `cmd_verify` so CI can verify artifacts without GPG 
keys. Extend
   Apache RAT scanning to `.whl` artifacts in addition to source and sdist 
tarballs.
   
   **Smoke Test** — Replace the hardcoded `time.sleep(2)` with a polling loop on
   `/api/v0/projects` that fails fast if the server exits. Launch the server in 
its own
   process group and send SIGTERM to the whole group on teardown to prevent 
orphaned uvicorn
   processes. Add a `GET /` check to verify the UI is served. Add 
`--cleanup`/`--no-cleanup`
   flag (auto-disabled in `GITHUB_ACTIONS` so workspaces survive for artifact 
upload).
   
   **CI Coverage Gaps** — Add a `bare-install` job that installs the wheel 
without optional
   extras and imports core symbols, catching accidental leakage of optional 
dependencies. Add
   an `sdist-wheel-equivalence` job that rebuilds the wheel from the sdist 
tarball and
   compares file content hashes against the CI-built wheel, catching missing 
sdist files. Pin
   the Apache RAT JAR download with a SHA256 checksum.
   
   **Hygiene** — Add `scripts/check_asf_headers.py` and wire it as a pre-commit 
hook that
   checks Python, YAML, and shell files for the ASF license header, reading 
`.rat-excludes`
   at runtime to stay in sync with RAT automatically. Add a weekly cron 
(Mondays 09:00 UTC)
   to the release validation workflow to catch dependency drift between 
releases.
   
   ## Files
   
   - `.rat-excludes`, `examples/deep-researcher/` — rename and exclusion update
   - `scripts/apache_release.py` — `--skip-signing` in `cmd_verify`
   - `scripts/verify_apache_artifacts.py` — RAT on wheels, `compare-wheels` 
subcommand
   - `scripts/ci_smoke_server.py` — polling, process group, cleanup flag, GET /
   - `scripts/check_asf_headers.py` — new ASF header checker
   - `.pre-commit-config.yaml` — new `check-asf-headers` hook
   - `.github/workflows/release-validation.yml` — SHA256 pin, `bare-install`, 
`sdist-wheel-equivalence`, weekly cron
   - `tests/test_apache_release.py`, `tests/test_verify_apache_artifacts.py`, 
`tests/test_ci_smoke_server.py`, `tests/test_check_asf_headers.py` — test 
coverage for all of the above
   
   ## Test Plan
   
   - [ ] Run `pytest tests/test_apache_release.py 
tests/test_verify_apache_artifacts.py tests/test_ci_smoke_server.py 
tests/test_check_asf_headers.py` — all 54 tests pass
   - [ ] Release Validation workflow runs clean on this PR, including the new 
`bare-install` and `sdist-wheel-equivalence` jobs
   - [ ] Pre-commit hook fires on a staged Python file missing the ASF header
   
   Closes #747


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to