Skip to content

fix(storage): should flush writer when flushing file mtime#10143

Merged
LingyuCoder merged 1 commit intomainfrom
fix/storage-mtime-flush
Apr 23, 2025
Merged

fix(storage): should flush writer when flushing file mtime#10143
LingyuCoder merged 1 commit intomainfrom
fix/storage-mtime-flush

Conversation

@LingyuCoder
Copy link
Contributor

Summary

Should flush the file writer when testing rspack_storage otherwise the files will not be found

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@LingyuCoder LingyuCoder requested a review from Copilot April 23, 2025 10:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses the file not found issue by ensuring the file writer is flushed after writing, thereby updating the file mtime correctly.

  • Added a flush call after writing file content.
  • Modified writer handling in the flush_file_mtime function.

@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Apr 23, 2025
@netlify
Copy link

netlify bot commented Apr 23, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 8a5c22b
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/6808be6d1dc3eb000816a890

@codspeed-hq
Copy link

codspeed-hq bot commented Apr 23, 2025

CodSpeed Performance Report

Merging #10143 will not alter performance

Comparing fix/storage-mtime-flush (8a5c22b) with main (cc20f1a)

Summary

✅ 11 untouched benchmarks

@LingyuCoder LingyuCoder enabled auto-merge (squash) April 23, 2025 11:54
@LingyuCoder LingyuCoder merged commit b95f428 into main Apr 23, 2025
34 checks passed
@LingyuCoder LingyuCoder deleted the fix/storage-mtime-flush branch April 23, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants