Fix the e2e_removes test data to use REPOS replacement #13

Merged
adamwill merged 1 commit from fix-e2eremoves-repos into main 2026-03-17 19:34:14 +00:00
Owner

Whoops, it was very specific to my system without this.

Signed-off-by: Adam Williamson awilliam@redhat.com

Whoops, it was very specific to my system without this. Signed-off-by: Adam Williamson <awilliam@redhat.com>
Fix the e2e_removes test data to use REPOS replacement
Some checks failed
CI via Tox / tox (pull_request) Failing after 1m18s
AI Code Review / ai-review (pull_request_target) Successful in 9s
AI Code Review / remove-label (pull_request_target) Successful in 2s
55e2132685
Whoops, it was very specific to my system without this.

Signed-off-by: Adam Williamson <awilliam@redhat.com>

AI Code Review

📋 MR Summary

Fixes a test data file by replacing an absolute, user-specific file path with a {REPOS} placeholder.

  • Key Changes:
    • Replaced /var/home/adamw/local/rmdepcheck/tests/testdata/repos/base with {REPOS}/base in tests/testdata/test_e2e_removes.txt.
  • Impact: tests/testdata
  • Risk Level: 🟢 Low - The change is strictly confined to test data files and only standardizes file paths to avoid breaking tests on different environments.

Detailed Code Review

The change correctly addresses a common issue where hardcoded local paths leak into test expectations. By using the {REPOS} template, tests will reliably pass across different developers' machines and CI environments. No logic or security issues are introduced.

📂 File Reviews

📄 `tests/testdata/test_e2e_removes.txt` - Updated test expectation data to use templated repository paths.
  • Suggestion [Testing]: The change effectively replaces the hardcoded path. Ensure that the test runner correctly substitutes the {REPOS} placeholder when comparing outputs.

Summary

  • Overall Assessment: The review identified no issues. The change is safe and improves test portability.

🤖 AI Code Review | Generated with ai-code-review
Platform: Forgejo | AI Provider: gemini | Model: gemini-3-pro-preview

## AI Code Review ### 📋 MR Summary Fixes a test data file by replacing an absolute, user-specific file path with a `{REPOS}` placeholder. - **Key Changes:** - Replaced `/var/home/adamw/local/rmdepcheck/tests/testdata/repos/base` with `{REPOS}/base` in `tests/testdata/test_e2e_removes.txt`. - **Impact:** tests/testdata - **Risk Level:** 🟢 Low - The change is strictly confined to test data files and only standardizes file paths to avoid breaking tests on different environments. ### Detailed Code Review The change correctly addresses a common issue where hardcoded local paths leak into test expectations. By using the `{REPOS}` template, tests will reliably pass across different developers' machines and CI environments. No logic or security issues are introduced. #### 📂 File Reviews <details> <summary><strong>📄 `tests/testdata/test_e2e_removes.txt`</strong> - Updated test expectation data to use templated repository paths.</summary> - **Suggestion** [Testing]: The change effectively replaces the hardcoded path. Ensure that the test runner correctly substitutes the `{REPOS}` placeholder when comparing outputs. </details> ### ✅ Summary - **Overall Assessment:** The review identified no issues. The change is safe and improves test portability. --- 🤖 **AI Code Review** | Generated with [ai-code-review](https://gitlab.com/redhat/edge/ci-cd/ai-code-review) **Platform:** Forgejo | **AI Provider:** gemini | **Model:** gemini-3-pro-preview
adamwill force-pushed fix-e2eremoves-repos from 55e2132685
Some checks failed
CI via Tox / tox (pull_request) Failing after 1m18s
AI Code Review / ai-review (pull_request_target) Successful in 9s
AI Code Review / remove-label (pull_request_target) Successful in 2s
to be15cb02b5
All checks were successful
CI via Tox / tox (pull_request) Successful in 1m19s
2026-03-17 19:32:40 +00:00
Compare
adamwill deleted branch fix-e2eremoves-repos 2026-03-17 19:34:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quality/rmdepcheck!13
No description provided.