Repository navigation
rust: cli/env, cli/cli and tools/testing stop dropping fs errors (part of #13352) - #13409
Conversation
|
The red affected-test shards so far are not from this PR. Each of these fails locally on base
Generated by Claude Code |
|
Shard 12 is also red on base: Generated by Claude Code |
|
Shard 10 failed on Generated by Claude Code |
|
Shard 2 is red on Generated by Claude Code |
|
Shard 15 is red on five tests. Generated by Claude Code |
|
Shard 14 is red on 18 tests, mostly
Generated by Claude Code |
…t of #13352) Scratch removals go through dx_atomic_fs::discard_file / discard_dir. tools/testing propagates or reports the create, copy and permission errors it used to drop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyegjKSXyqfDEaFXtd
3d98025 to
37f2351
Compare
|
This pull request touched paths in |
Pull Request
Linked Issue
Part of #13352
Changes
dx_atomic_fs::discard_file/discard_dir.clean_stageis gone. Test cleanup uses the same helpers.update_outdated.rs,error_boundary_launcher_tests.rsandtests/agents/tests/dev_launcher.rsuses the helpers.dx_testinganddx_nesteduse the helpers.compare_or_updatereturns an error when it cannot create the parent directory. Hermetictimeline,copy_latest_profile,windows_envandcopy_test_logs, and nestedmake_file_writable, print the path and error to stderr instead of dropping it.dx_atomic_fsis now a dep ofdx_testing,dx_nestedanddev_launcher_test, and is visible to//tools/testingand//tools/testing/nested.Left for a follow-up with
dx_atomic_fs::write_hintonce #13403 merges (best-effort writes):tools/testing/process_probe/probe_test.rs:428drop(std::fs::write(&self.0, b""))tools/testing/hermetic/src/lib.rs:1696drop(std::fs::write(&target, &content))Verification
Run in a cloud container (as root):
tools/dx test //cli/env:dx_env_test //cli/cli/tests/agents:dev_launcher_test //tools/testing:dx_testing_test //tools/testing/nested:dx_nested_test //tools/testing/hermetic:hermetic_unit_test //cli/atomic_fs:dx_atomic_fs_test: 3 passed, 3 failed. All 6 failing cases fail the same way on the base commit: the read-only and undeletable-dir cases in atomic_fs and cli/env (root ignores the permissions), andthe_consumer_materializes_from_dx_initin hermetic.tools/dx test //cli/cli:dx_cli_test -- --test_filter=exec::: the update_outdated and error_boundary_launcher tests passed. The failing cases are read-only/unwritable cases that need a non-root user, plussync_prunes_the_superseded_setup, which failed in 1 of 7 identical runs.//tools/ci:lint_attributes_test:strict_tier_and_bazelrc_deny_the_same_rust_lintsfails on the base commit too.tools/dx check --applyon the touched files: the only finding is thedx_os_sysunused-crate warning indx_nested, which the base commit has too.--applyalso rewrote the deps of unrelated targets intools/testing/BUILD.bazelandtools/testing/hermetic/BUILD.bazel, addingall_crate_deps(...). The check-only run on base shows no drift there, so I left those rewrites out.Not run:
--affectedover the whole graph; CI is the gate.This touches
cli/atomic_fs/(a.github/review-paths.txtpath), so it needsneeds-reviewand a second-sessionReview:comment.Generated by Claude Code