The GitHub Actions job "mainline-only" on tvm-ffi.git/main has failed. Run started by GitHub user tqchen (triggered by tqchen).
Head commit for run: 62df2f579567802cef3cba0126ac2aea299169ef / Linzhang Li <[email protected]> [STUBGEN] Add a `--check` mode that reports stale stub files (#746) ## Summary `tvm-ffi-stubgen` updates generated blocks in place, but always exited 0, so CI could not tell whether a tree was up to date. `--check` writes nothing, prints `[Stale] <file>` for every file whose blocks would change, and exits 1 if there is any; a file that fails to process exits 2 (in every mode; it used to exit 0). This is the CI half of the in-place / `--check` pair, like `ruff format --check`. `--check` is `--dry-run` plus the report: it sets `dry_run` at parse time, and `_stage_3` returns the changed flag `FileInfo.update` already computes. It refuses `--init-*`, since `--init` scaffolds files on disk regardless of `dry_run`. ## Changes - `stub/cli.py`: `--check` flag, `_stage_3` returns changed, `__main__` returns `2 if failed else 1 if stale else 0`. - `stub/utils.py`: `Options.check`. - `docs/packaging/stubgen.rst`: the option and its exit codes. - `tests/python/test_stubgen_rust.py`: stale round trip, failure exits 2, `--check` + `--init-*` rejected. ## Testing `test_stubgen_rust.py` + `test_stubgen.py`: 102 passed; pre-commit lint clean. Signed-off-by: yuchuan <[email protected]> Report URL: https://github.com/apache/tvm-ffi/actions/runs/33978243775 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
