Repository navigation
Conversation
Signed-off-by: minyanyi <109479933+minyanyi@users.noreply.github.com>
|
Welcome to RustChain! Thanks for your first pull request. Before we review, please make sure:
Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150) A maintainer will review your PR soon. Thanks for contributing! |
|
CI note: the current red
That is the earlier dependency collection blocker covered by #5587. The focused validation for this PR passes locally:
|
kekehanshujun
left a comment
There was a problem hiding this comment.
Approved current head d04c8eacd22173c2522290d2d922732bc75307af.
This is a focused portability fix for tests/test_issue2310_package_validation.py. The old subprocess calls used the literal Windows path bounties\issue-2310, which is the reason the test can pass on Windows while Linux interprets the path as a single filename component. The PR switches both subprocess entry points to Path-built absolute paths under REPO_ROOT, while preserving the existing import assertion and cp1252 stdout validation.
Validation I ran locally after applying the PR hunk to a RustChain worktree:
python -B -m pytest -q tests/test_issue2310_package_validation.py --tb=short -p no:cacheprovider
# 2 passed
python -B -m py_compile tests/test_issue2310_package_validation.py
# passed
git diff --check -- tests/test_issue2310_package_validation.py
# passed
I also checked the PR comments about broader CI: the currently red collection failures are for missing base-branch dependencies (aiohttp, flask_cors, matplotlib) before this focused test is reached, so they are separate from this path portability change. I do not see a blocker in this PR.
jaxint
left a comment
There was a problem hiding this comment.
LGTM! Great work on this PR. 🚀
TJCurnutte
left a comment
There was a problem hiding this comment.
Approved. This makes the issue-2310 validation tests portable instead of asking POSIX runners to resolve bounties\\issue-2310 as a literal backslash path.
Validation I ran against head d04c8eacd22173c2522290d2d922732bc75307af:
git diff --check origin/main...HEAD -- tests/test_issue2310_package_validation.py
python3 -B -m py_compile tests/test_issue2310_package_validation.py
PYTHONPATH=. python3 -B -m pytest -q tests/test_issue2310_package_validation.py --noconftest -o addopts=''Result: 2 passed in 0.23s.
I also ran that same focused pytest on a clean origin/main worktree for comparison. Both tests failed there: the import path resolved the wrong src module (AttributeError: module 'src' has no attribute 'CRTPatternGenerator') and the validator subprocess could not open bounties\\issue-2310\\validate_bounty_2310.py. This PR removes that platform-path failure without changing the validator package itself.
|
Closing as stale branch — would cause destructive deletions if merged. Your branch was filed roughly 155 commits behind current main. Since then, many overlapping fixes from other contributors have landed via parallel PRs. GitHub's Bounty credit acknowledgedIf your fix addressed a real bug, the canonical version has very likely already shipped via a parallel contributor's PR over the past two weeks. Specific cases covered by today's audit:
If you want fresh reviewRebase against current main and verify your diff shows roughly the size of the changes you originally made: If the deletion count is significantly higher than what you added, the branch is still picking up stale assumptions — recreate from a fresh main. Thanks for the contribution work this week. |
Summary
bounties\issue-2310subprocess paths withpathlib-built absolute pathsWhy
The broad CI
testjob currently reportstests/test_issue2310_package_validation.pyfailures on Linux because the test subprocess uses Windows backslash paths. On Windows this passes, but on Linux it can import the wrongsrcmodule and cannot openbounties\issue-2310\validate_bounty_2310.py.Validation
python -B -m pytest -q tests/test_issue2310_package_validation.py --tb=short -p no:cacheprovider-> 2 passedpython -B -m py_compile tests/test_issue2310_package_validation.pygit diff --checkThis is one focused follow-up for the repo-wide CI failure currently blocking otherwise approved PRs.