Repository navigation
fix(remote): drop a remote artifact whose name cannot be a file name - #4718
Conversation
e99e7fe to
16c7e5e
Compare
|
At 16c7e5e, the change still has two delivery defects and needs live verification. The destination check rejects NUL but accepts a peer-selected fallback name longer than the filesystem component limit. Opening it fails with ENAMETOOLONG and loses the answered action. Please apply a host-kit name admission rule to every peer-selected entry before filesystem work, disclose invalid names, and cover overlong names and the platform cases in its table. The dropped reason exists only on an untyped remote response; screenshot normalization discards it. Node and default screenshot JSON consumers cannot reliably identify the dropped artifact by its typed reason, and the daemon path can still appear as successful output. Please own the disclosure in the shared response contract and carry it through client normalizers and machine output, preserving the warning and identifying unavailable paths. The remote capture delivery change has no live verification at this head. Please run a remote device capture through the daemon client and a public output surface, including a malformed artifact response, and show successful action data, the typed dropped reason and warning, and no dropped file. Not blocking: the regression could use a remote request with a malformed response through the daemon client and a public surface, asserting the kept action, typed disclosure and no artifact write; you can take or leave this suggestion. Could a single host-kit peer-entry admission rule and shared typed delivery disclosure be used at materialization? The host-kit owner would first need to agree on the name policy and platform case table, since issue #4669 defers the broader write policy. Coverage failed; please check its log for the failing assertion or threshold and compare it with main. The PR body describes validation at e99e7fe, not at this head. No conflicts are known. Before merge, please repair name admission and disclosure, provide live evidence at this head, and diagnose Coverage. |
|
This branch now conflicts with |
16c7e5e to
4b76187
Compare
|
Rebased onto Coverage failed on wire declaration drift, stale compatibility acknowledgments, and the missing The earlier review remains open. Overlong names and platform-specific cases need the host-kit owner's agreement on name admission. Shared typed disclosure, warning and unavailable-path handling through Node and default screenshot JSON, and live remote device capture evidence also remain open at this head. |
|
Thanks for the update. The earlier conflict at 16c7e5e is resolved, and coverage, which failed there, is green at 4b76187. Three code issues and one missing validation remain. The extracted A second independent pass found a likely defect at daemon-artifacts.ts:745. A successful remote snapshot can list an artifact with A second independent pass found a likely defect at daemon-artifacts.ts:752. With a Windows client, a working directory on Not blocking: The two failing checks are both 'Body rules'. That gate grades only the PR title and body, so the code diff does not touch it. The likely cause is the Before / after section, which shows no base and head calls with differing output. Please edit the body to fix it. Not verified here: the focused tests and the released-wire check were not rerun, and the Body rules failure excerpt was not inspected. The earlier points on overlong names and typed disclosure through client normalizers fall outside this round's invariant and fit follow-up issues. The live remote capture evidence and a PR body that passes the Body rules gate are needed before merge. |
|
Pushed
|
|
Thanks for the update. The findings from the earlier review are addressed, but three gaps remain at dea29a6, so this needs changes before merge. A second independent pass found that a successful remote snapshot with no registered destination can return a A second independent pass found that an unnamed remote record stop can return an A second independent pass found that the drive-prefix check drops valid POSIX names (daemon-artifacts.ts:752). On a POSIX client, a successful capture with no registered destination and Not blocking, and these can be taken or left: the explicit-null row in Not verified here: the focused tests, the wire-compat check and the loopback probe were not rerun, and the win32 behavior of the drive check comes from Node Only Body rules is not passing, and it shows as cancelled rather than failed. That gate grades the PR title and body, which this diff does not touch, so it looks unrelated and needs a rerun after the body edit. The other 15 checks pass at this head, including those covering |
Drop capture artifacts with an unusable destination before making filesystem calls. Keep the action outcome and attach a local dropped-artifact reason and warning. Record stop retains its generated filename fallback. Fixes callstack#4661
dea29a6 to
192b54f
Compare
|
Pushed
The same loopback suite went from 6 failures at |
|
Thanks for the quick follow-up. All three problems from the earlier review (#4718 (comment)) are fixed at 192b54f, and the code looks good to merge. All 16 checks pass at this commit, including the packages/remote unit lanes that cover daemon-artifacts.ts and the wire-compat gate for the ledger and surface edits. There are no conflicts. Not verified here: the focused tests, the mutation table and the loopback probe were not rerun, and the Windows drop behavior comes from Node path.win32 semantics and a mocked-platform test, not a Windows run. The live Chromium run in the PR body is from dea29a6; this change only touches client path selection, which the loopback tests cover, so a new live run is not needed. |
Summary
Drop raw NUL names for ordinary capture fallbacks and unnamed record stops before download. Preserve caller-authorized destinations and the action result. Ordinary capture fallbacks keep valid POSIX colon names and reject drive-qualified basenames under Windows path rules. Dropped artifacts report
artifact_name_invalidand a warning.Fixes #4661. Host-kit name policy and typed public disclosure remain follow-ups.
Before / after
The same loopback tests exercise raw fallback names, all three recording fields, and POSIX response and generated names.
Earlier explicit-null snapshot probe.
Validation
192b54f64dbc6ad92b89abe156f232a8a33e43acpassed all 343 focused remote and offline wire tests. Released-wire compatibility passed againstv0.21.42at protocol 3.dea29a6a1acfc0ddd9643bcf83fa63e5acffacf4. Verified the PNG signature and both playable WebMs. Native iOS and Android targets were unavailable. Measured run.Isolated loopback tests detected all 11 mutations.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.