mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 19:59:26 +00:00
ci: pytest runs with the hunt and semantic extras kept; sandbox tests skip by cause where no bwrap exists
CI's first full pytest run since 2836b78 showed 65 failures in three classes. uv run re-synced the environment
to the lockfile's default extras before pytest, removing dspy again (UV_NO_SYNC=1 now). The learn slice, pair
corpus and hunt producer tests need tree-sitter (semantic extra installed). Thirty-two tests need bubblewrap
isolation, which CI's container cannot provide: they carry a sandbox marker and skip where the isolation
preflight fails, with the cause's type in the reason; proven locally by hiding bwrap (7 skipped, 23 passed).
The partial-clone extraction test now probes one lazy fetch through git itself first, so git's own stderr
reaches the next CI log instead of git_exit_128.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
b35137ed1b
commit
17194b3df9
+4
-1
@@ -45,7 +45,10 @@ async def _run_checks() -> None:
|
||||
.with_directory("/src", source)
|
||||
.with_workdir("/src")
|
||||
.with_exec(["python", "-m", "pip", "install", "uv"])
|
||||
.with_exec(["uv", "sync", "--group", "dev", "--extra", "hunt"])
|
||||
# uv run re-syncs the environment to the lockfile's default extras unless told not to, which silently
|
||||
# removed the extras below before pytest ran.
|
||||
.with_env_variable("UV_NO_SYNC", "1")
|
||||
.with_exec(["uv", "sync", "--group", "dev", "--extra", "hunt", "--extra", "semantic"])
|
||||
.with_exec(["uv", "run", "ruff", "format", "--check", "."])
|
||||
.with_exec(["uv", "run", "ruff", "check", "."])
|
||||
.with_exec(["uv", "run", "mypy", "src/openultrasast"])
|
||||
|
||||
Reference in New Issue
Block a user