Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test file_gets_cleans_up_on_cache_eviction failed #1376

Open
aaronmondal opened this issue Sep 29, 2024 · 4 comments
Open

Test file_gets_cleans_up_on_cache_eviction failed #1376

aaronmondal opened this issue Sep 29, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@aaronmondal
Copy link
Member

Observed in https://github.com/TraceMachina/nativelink/actions/runs/11096476887/job/30826349710?pr=1375

test file_gets_cleans_up_on_cache_eviction ... FAILED

  2024-09-29T22:41:58.120112Z ERROR nativelink_store::filesystem_store: Failed to rename file, err: Error { code: NotFound, messages: ["No such file or directory (os error 2)", "Failed to rename temp file to final path \"/home/runner/.bazel/sandbox/linux-sandbox/670/execroot/_main/_tmp/4570b71ef2441e1548bbbb5c539c5a14/5005206170696388994/content_path/0123456789abcdef000000000000000000010000000000000123456789abcdef-10\""] }, from_path: "/home/runner/.bazel/sandbox/linux-sandbox/670/execroot/_main/_tmp/4570b71ef2441e1548bbbb5c539c5a14/1788747981940690587/temp_path/0123456789abcdef000000000000000000010000000000001200000000000000-10", final_path: "/home/runner/.bazel/sandbox/linux-sandbox/670/execroot/_main/_tmp/4570b71ef2441e1548bbbb5c539c5a14/5005206170696388994/content_path/0123456789abcdef000000000000000000010000000000000123456789abcdef-10"
    at nativelink-store/src/filesystem_store.rs:701
    in nativelink_store::filesystem_store::filesystem_store_emplace_file

test rename_on_insert_fails_due_to_filesystem_error_proper_cleanup_happens ... ok
test get_file_size_uses_block_size ... ok
  2024-09-29T22:41:58.149180Z  WARN nativelink_store::filesystem_store: Failed to delete file, path: "/home/runner/.bazel/sandbox/linux-sandbox/670/execroot/_main/_tmp/4570b71ef2441e1548bbbb5c539c5a14/16993639508665717028/temp_path/0123456789abcdef000000000000000000020000000000001500000000000000-10", err: Error { code: NotFound, messages: ["No such file or directory (os error 2)"] }
    at nativelink-store/src/filesystem_store.rs:516

failures:

---- file_gets_cleans_up_on_cache_eviction stdout ----
Error: Error { code: Internal, messages: ["Sender dropped before sending EOF", "During first read of buf_channel::take()", "Error reading remaining bytes"] }


failures:
    file_gets_cleans_up_on_cache_eviction

test result: FAILED. 18 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.77s

cc @allada @blakehatch Could this be the cause of the cache issue we recently observed?

@aaronmondal aaronmondal added the bug Something isn't working label Sep 29, 2024
@MarcusSorealheis
Copy link
Collaborator

@aaronmondal are we sure this is a bug?

@aaronmondal
Copy link
Member Author

Yeah, it's a flaky test which most likely means that there is some (rare?) case in which the filesystem store doesn't behave as intended.

@SchahinRohani
Copy link
Contributor

@PaddyMasum393
Copy link

I will solve this one, @MarcusSorealheis, @aaronmondal, @SchahinRohani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants