Repository navigation
test(post-fix): isolate HOME for the entire test suite - #1905
Conversation
PR Summary by QodoIsolate post-fix tests from host tools and share Python test dependencies
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
|
🤖 Finished Review · ✅ Success · Started 5:26 PM UTC · Completed 5:32 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.11 |
|
Risk Assessment: elevated (3/5) DetailsScore maintained at 3 (elevated) due to CI workflow changes and multiple protected paths with high churn and regression history, balanced by a small blast radius. Previous runRisk Assessment: elevated (3/5) DetailsScore maintained at 3 (elevated) as CI workflow changes and multiple protected path modifications with high churn and regression history remain, despite narrowing from 5 to 4 files. Previous run (2)Risk Assessment: elevated (3/5) DetailsScore increased from 2 to 3 because the PR expanded from 1 file to 5 files, adding CI workflow and dependency changes across multiple protected paths with high churn and contention. Previous run (3)Risk Assessment: moderate (2/5) DetailsSmall test-only change of 29 lines across one file by an established author, with moderate risk driven by touching a protected test script with high recent churn and multi-author contention. Previous run (4)Risk Assessment: moderate (2/5) DetailsSmall test-only change of 25 lines across one file by an established author, with moderate risk driven by touching a protected test script with high recent churn and multi-author contention. |
ReviewFindingsHigh
Next steps:
1 finding(s) below the Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJpbmZvIiwiY2F0ZWdvcnkiOiJtaXNzaW5nLWF1dGhvcml6YXRpb24iLCJmaWxlIjoic2NyaXB0cy9wb3N0LWZpeC10ZXN0LnNoIiwiaWQiOiJmXzVjZDU3NzQ4OWMwNjNlOTciLCJsaW5lIjoxOSwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImludGVudC1jb2hlcmVuY2UifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzY29wZS1jcmVlcCIsImZpbGUiOiJNYWtlZmlsZSIsImlkIjoiZl9mOWJmYjRhNjQwMWQ0M2VhIiwibGluZSI6NzksImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn1dLCJkaXNwb3NpdGlvbnMiOlt7ImlkIjoiZl81Y2Q1Nzc0ODljMDYzZTk3Iiwic3RhdHVzIjoicmVjbGFzc2lmaWVkIn0seyJpZCI6ImZfZjliZmI0YTY0MDFkNDNlYSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= --> ReviewFindingsHigh
Earlier findings
Next steps:
1 finding(s) below the Previous run (2)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6Im1pc3NpbmctYXV0aG9yaXphdGlvbiIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtZml4LXRlc3Quc2giLCJpZCI6ImZfNWNkNTc3NDg5YzA2M2U5NyIsImxpbmUiOjE5LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiaW50ZW50LWNvaGVyZW5jZSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InNjb3BlLWNyZWVwIiwiZmlsZSI6Ik1ha2VmaWxlIiwiaWQiOiJmX2Y5YmZiNGE2NDAxZDQzZWEiLCJsaW5lIjo3OSwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImludGVudC1jb2hlcmVuY2UifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzVjZDU3NzQ4OWMwNjNlOTciLCJzdGF0dXMiOiJvcGVuIn1dfQ== --> ReviewFindingsHigh
Low
Next steps:
Previous run (3)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6Im1pc3NpbmctYXV0aG9yaXphdGlvbiIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtZml4LXRlc3Quc2giLCJpZCI6ImZfNWNkNTc3NDg5YzA2M2U5NyIsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn1dfQ== --> ReviewFindingsHigh
Low
Next steps:
Previous run (4)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W119 --> ReviewFindingsHigh
Next steps:
|
waynesun09
left a comment
There was a problem hiding this comment.
Review-only pass: one MEDIUM finding, inline below.
|
🤖 Review · Commit: This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging. |
e8e3890 to
dcec13b
Compare
|
🤖 Review · Commit: This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging. |
|
🤖 Finished Review · ✅ Success · Started 6:07 PM UTC · Completed 6:14 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.46 |
jflowers
left a comment
There was a problem hiding this comment.
Council Review: APPROVE WITH ADVISORIES
Reviewers: divisor-adversary (APPROVE WITH ADVISORIES), divisor-guard (APPROVE) · CI: 12/12 checks passing
The suite-level HOME isolation reads clean. One temp home per run, EXIT trap cleanup, and the PYTHONUSERBASE capture resolves the dev-machine metadata failures from the earlier round; production post-fix.sh stays untouched.
One low-severity advisory stands, posted inline on the PYTHONUSERBASE capture (scripts/post-fix-test.sh:21). The preserved value leaves a latent path where pip's user-site fallback would write outside the temp home. No current test reaches that path.
This review was generated by /uf.review-pr (AI-assisted).
|
🤖 Finished Review · ✅ Success · Started 7:17 PM UTC · Completed 7:27 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.00 |
|
🤖 Finished Review · Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.04 This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging. |
762141d to
a8434bb
Compare
|
🤖 Review · Commit: Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment |
|
Code review by qodo was updated up to the latest commit a8434bb |
|
🤖 Finished Review · Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.24 Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment |
|
🤖 Finished Review · ✅ Success · Started 7:54 PM UTC · Completed 8:02 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.62 |
Signed-off-by: Ravelle Kelley <rkelley@redhat.com>
Signed-off-by: Ravelle Kelley <rkelley@redhat.com>
Signed-off-by: Ravelle Kelley <rkelley@redhat.com>
a8434bb to
e02f812
Compare
|
🤖 Finished Review · ✅ Success · Started 8:13 PM UTC · Completed 8:21 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.50 |
Summary
post-fix-test.shsuite, with cleanup on exit, and remove redundant helper-level setup.pyproject.tomltest group.uv pip install --system --group test..venvsetup. The Makefile remains unchanged and does not install dependencies or modify PATH.Why
Tests using
run_prm_testexposed installed tools shadowing mocks when production prepends${HOME}/.local/binto PATH. Suite-wide HOME isolation fixes this centrally rather than continuing to update individual helpers.An active local
.venvkeeps Python dependencies available independently of HOME. CI uses its existing system-install approach, with the dependency list shared throughpyproject.toml.Validation
.venvsucceeds with the expected package versions.bash -n scripts/post-fix-test.sh,git diff --check,pre-commit run --all-files, andmake lintpass.Related
#1897