Skip to content

tough: flush file explicitly in cache#874

Merged
sam-berning merged 1 commit into
awslabs:developfrom
sam-berning:tokio-flush
Apr 21, 2025
Merged

tough: flush file explicitly in cache#874
sam-berning merged 1 commit into
awslabs:developfrom
sam-berning:tokio-flush

Conversation

@sam-berning

Copy link
Copy Markdown
Contributor

Issue #, if available:

#872

Description of changes:

While tracking down the issues in Github actions observed in #872, @jmt-lab pointed out that a tokio::fs::File should be flushed after writing, or the file may not close on exit. See tokio's docs on this.

This might be causing the test failures that we're seeing, as after the tuftool clone command exits, the write may not have finished for 1.root.json as it's the last file that we copy.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Signed-off-by: Sam Berning <bernings@amazon.com>
@sam-berning sam-berning merged commit a4a2d49 into awslabs:develop Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants