-
Notifications
You must be signed in to change notification settings - Fork 0
fix(review): Rust coverage toolchain, offline crate cache, and foreign-interpreter base-lock tolerance #650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
5f8c67c
fix(review): Rust coverage toolchain and offline crate cache for the …
claude 5c5d0e1
chore: retry review dispatch after single-cycle free-model miss
claude 4f501c9
chore: retry review dispatch, model-pool cycle attempt 3
claude 2efd782
fix(review): isolate cargo prefetch from PR-tree config and disable r…
claude 4676665
chore: retry review dispatch, model-pool cycle attempt 4
claude 2a77129
chore: merge main (Zen DeepSeek reviewer, content-based coverage locks)
claude 35db759
fix(review): tolerate foreign-interpreter base locks in the trusted i…
claude 6b24d84
Merge branch 'main' into claude/fast-mlsirm-pr-review-mt2e1z
opencode-agent[bot] 1c64ae0
fix(review): keep the runner rustup toolchain resolvable from the iso…
claude 233197d
fix(review): discover compiled locks inside requirements/ directories
claude 10f4493
Merge branch 'main' into claude/fast-mlsirm-pr-review-mt2e1z
opencode-agent[bot] 07ed460
Merge main (#661 base-lock closure preflight; supersedes inline best-…
claude 41e3d67
Merge branch 'main' into claude/fast-mlsirm-pr-review-mt2e1z
opencode-agent[bot] fa5f93b
test(security): reject hash-directive-only requirements
seonghobae ffdd3d7
fix(security): require actual hashes on package lines
seonghobae a4d7e29
test(security): align lock regression with fail-closed hashes
seonghobae 0cb5aa0
Resolve merge conflicts in 1 file(s)
coderabbitai[bot] 75f5fac
chore(ci): bootstrap PR 650 review repair
seonghobae 2f3ef34
chore(ci): remove inactive PR 650 bootstrap workflow
seonghobae ade1643
fix(ci): retry PR 650 review repair
seonghobae 38fe03f
chore(ci): trigger PR 650 review repair
seonghobae f24d579
fix(ci): repair PR 650 with least-privilege workflow
seonghobae e380706
fix(ci): trigger bounded PR 650 repair on synchronization
seonghobae 776a1ba
chore(ci): remove completed PR 650 repair scaffold
seonghobae 2cb9fa8
chore(ci): remove PR 650 repair trigger
seonghobae 8cc18b0
chore(ci): run bounded PR 650 review repair
seonghobae ea8ac9b
chore(ci): remove temporary PR 650 repair scaffold
seonghobae d022929
chore(ci): execute PR 650 review repair through existing SBOM workflow
seonghobae 7b8a031
fix(ci): correct bounded PR 650 repair workflow syntax
seonghobae e128116
fix(ci): simplify valid PR 650 repair workflow
seonghobae d8ea1d2
chore(ci): restore canonical SBOM workflow while repair remains queued
seonghobae 146d23d
Merge branch 'main' into claude/fast-mlsirm-pr-review-mt2e1z
opencode-agent[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tests/test_materialize_base_python_requirements_security.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| """Security regressions for trusted Python requirements lock materialization.""" | ||
|
|
||
| from scripts.ci import materialize_base_python_requirements as materializer | ||
|
|
||
|
|
||
| def test_require_hashes_directive_does_not_replace_per_requirement_hashes() -> None: | ||
| """A directive alone cannot authorize an unpinned package requirement.""" | ||
| assert not materializer._is_hash_pinned( | ||
| b"--require-hashes\nrequests==2.31.0\n" | ||
| ) | ||
|
|
||
|
|
||
| def test_require_hashes_directive_accepts_an_actually_hashed_requirement() -> None: | ||
| """Resolver metadata may accompany a package line carrying an actual hash.""" | ||
| assert materializer._is_hash_pinned( | ||
| b"--require-hashes\n" | ||
| b"--index-url https://pypi.org/simple\n" | ||
| b"requests==2.31.0 --hash=sha256:" | ||
| + b"a" * 64 | ||
| + b"\n" | ||
| ) | ||
|
|
||
|
|
||
| def test_directives_without_an_install_target_are_not_materialized() -> None: | ||
| """An option-only file carries no dependency closure and remains excluded.""" | ||
| assert not materializer._is_hash_pinned( | ||
| b"--require-hashes\n--no-index\n--prefer-binary\n" | ||
| ) | ||
|
|
||
|
|
||
| def test_unhashed_editable_requirement_remains_rejected() -> None: | ||
| """Install-target options cannot be mistaken for harmless resolver metadata.""" | ||
| assert not materializer._is_hash_pinned(b"--require-hashes\n--editable .\n") |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.