prebuilt_common::prepare_command silently drops --offline from vendor/repair, so 49 "--offline" test calls actually run online against a fixture server
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start in crates/socket-patch-cli/tests/prebuilt_common/mod.rs around lines 606-616, where prepare_command filters out --offline for vendor and repair. Then check the call sites named in the issue: e2e_bun_lockb.rs (about lines 920-926 and 1042-1052) and e2e_composer_vendor_dir_hints.rs (about lines 96-100). Done means prepare_command asserts instead of filtering, the 49 literal --offline arguments are removed, the grep returns 0, and the affected suites still pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
[agent] Filed by the scheduled architecture audit (audit-cli-tests). Register: register comment.
Kind: refactor (test honesty). Register ID: T61.
Problem
prebuilt_common::prepare_command rewrites the arguments it receives. For vendor and for non-revert repair, it filters out --offline and points the command at a fixture download server (prebuilt_common/mod.rs L606-L616):``
let fixture = Server::project_with_env(root, env);
command.args(args.iter().copied().filter(|a| *a != "--offline"));
The fixture itself is deliberate: the doc comment says it downloads fixtures for lifecycle setup. The problem is that callers still write --offline, and their comments and doc strings describe offline behaviour that the binary never receives.
- On
cbbbdb9, 40 suites callprepare_command. 16 of them contain 49 literal["vendor", "--offline"…]/["repair", "--offline"…]calls, and none of those runs offline. - e2e_bun_lockb.rs L920-L926 says "the offline vendor proceeds". The calls at L1042-L1052 pass
--offlineand run online. - e2e_composer_vendor_dir_hints.rs L96-L100```` documents its helper as "Run
vendor --offline", but the flag is stripped there too. - A reader who sees
"--offline"in a test assumes that the offline vendor path is covered. In these suites, it is not.
Proposed change
- Make
prepare_commandassert thatargsdoes not contain--offlinefor the download commands, and panic with a message that points at the fixture server. Do not filter the flag. - Remove
"--offline"from the 49 call sites. Fix the comments and doc strings that claim an offline run (e2e_bun_lockb L920-L926 and L1097, dir_hints L96). - Wherever a test means to prove offline vendoring, run it explicitly without
prepare_command, throughhermetic::binary_commandwith--offline. A test that still passes that way does exercise the offline path.
Size
About 17 test files. Mostly one-token deletions, about −60 / +10 lines.
Acceptance criteria
- Every affected suite passes unchanged apart from the argument lists. These are nightly or toolchain legs, so run them through
e2e-*or locally with the toolchains. grep -rn '"vendor", "--offline"\|"repair", "--offline"'over the suites that useprepare_commandreturns 0.prepare_commandno longer rewrites its arguments.
- Ngôn ngữ chính
- Rust
- Star
- 9
- Fork
- 2
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 309
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của SocketDev/socket-patch
-
Windows unit tests fail on main: pnpm-registry-overrides fixtures are checked out as CRLF (mixes CRLF and LF line endings)Có thể đã có người làm @mikolalysenko đã nhận hôm nay. Đang mởagent:claimed agent:triaged ci-janitor priority:p1
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
SocketDev/socket-patch#2238 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent:triaged arch-audit priority:p3 refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
SocketDev/socket-patch#1860 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent:triaged arch-audit priority:p3 refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
SocketDev/socket-patch#1838 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Nightly: pnpm11_registry_route_is_cleaned_up_when_a_patch_is_not_needed fails on Windows (pnpm records the RUNNER~1 short path as a second importer)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởagent:triaged ci-janitor priority:p1
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 42/100
SocketDev/socket-patch#2235 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Agent mode reports a gem whose installed file was edited as "not installed on this host" / "not found on disk", `apply --check` says to run `apply`, and `rollback` exits 1 with "modified after patching" on every runCó thể đã có người làm @mikolalysenko đã nhận hôm nay. Đang mởagent:claimed agent:triaged bug bughunt pm:bundler priority:p1 ux
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
SocketDev/socket-patch#2231 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của SocketDev/socket-patch
Issue tương tự
-
area: cli good first issue type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
renaming a provider to a taken name fails with a raw sql errorCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea:storage kind:bug priority:p3 ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug bugfix
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
storytold/photocraft#16975 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
expo/exact#1716 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày