-
Notifications
You must be signed in to change notification settings - Fork 0
fix(supply-chain): restore simple-path authority and lock policy text #887
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
cursor
wants to merge
14
commits into
develop
from
cursor/bc-6dbd0942-8a74-46e0-a2af-6e82a66f2dd3-8c34
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5b71eb0
perf: optimize supply chain check graph traversal memory usage
seonghobae 3f94b21
test(supply-chain): preserve simple dependency path semantics
seonghobae 28c61cd
fix(supply-chain): preserve simple path cycle semantics
seonghobae 913e7c7
perf: optimize supply chain check graph traversal memory usage
seonghobae fca0bb7
⚡ Bolt: [성능 개선] 의존성 그래프 탐색 메모리 최적화
seonghobae b6690c6
test(supply-chain): reproduce cyclic owner-chain false positive
seonghobae bbf46a3
fix(supply-chain): restore simple dependency-path semantics
seonghobae 3ac96dd
docs(supply-chain): preserve simple-path authority
seonghobae a88b213
⚡ Bolt: [성능 개선] 의존성 그래프 탐색 메모리 최적화
seonghobae f4a6053
fix(supply-chain): restore simple dependency-path cycle semantics
cursoragent 4881dba
revert(supply-chain): restore validated simple-path semantics after d…
seonghobae dbcbe6d
merge(supply-chain): consolidate cycle regression authority into #867
seonghobae bcf22ee
⚡ Bolt: [성능 개선] 의존성 그래프 탐색 메모리 최적화 내 사이클 버그 수정
seonghobae 593b6fe
fix(supply-chain): restore simple-path authority and lock policy text
cursoragent 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
44 changes: 44 additions & 0 deletions
44
services/analysis-engine/tests/test_supply_chain_dependency_path_cycles.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,44 @@ | ||
| """Regression tests for Cargo dependency-path cycle handling.""" | ||
|
|
||
| from conftest import load_module | ||
|
|
||
|
|
||
| def test_dependency_path_does_not_reuse_a_package_key_through_a_cycle() -> None: | ||
| """Ensure a cycle cannot make one package instance satisfy two path positions.""" | ||
| supply_chain = load_module( | ||
| "scripts/checks/verify_supply_chain.py", | ||
| "verify_supply_chain_dependency_path_cycle_regression", | ||
| ) | ||
| package_dependencies = { | ||
| "root 1.0.0": ["alpha 1.0.0"], | ||
| "alpha 1.0.0": ["beta 1.0.0", "charlie 1.0.0"], | ||
| "beta 1.0.0": ["alpha 1.0.0"], | ||
| "charlie 1.0.0": [], | ||
| } | ||
|
|
||
| assert not supply_chain.cargo_lock_has_named_dependency_path( | ||
| package_dependencies, | ||
| "root 1.0.0", | ||
| ("alpha", "alpha", "charlie"), | ||
| ) | ||
|
|
||
|
|
||
| def test_dependency_path_can_match_same_name_on_distinct_package_keys() -> None: | ||
| """Ensure distinct package instances may legitimately satisfy repeated names.""" | ||
| supply_chain = load_module( | ||
| "scripts/checks/verify_supply_chain.py", | ||
| "verify_supply_chain_dependency_path_distinct_instances", | ||
| ) | ||
| package_dependencies = { | ||
| "root 1.0.0": ["alpha 1.0.0"], | ||
| "alpha 1.0.0": ["beta 1.0.0"], | ||
| "beta 1.0.0": ["alpha 2.0.0"], | ||
| "alpha 2.0.0": ["charlie 1.0.0"], | ||
| "charlie 1.0.0": [], | ||
| } | ||
|
|
||
| assert supply_chain.cargo_lock_has_named_dependency_path( | ||
| package_dependencies, | ||
| "root 1.0.0", | ||
| ("alpha", "alpha", "charlie"), | ||
| ) | ||
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
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.