Skip to content

src: check mtime seconds for file-backed blobs - #67302

Open
fatihguzeldev wants to merge 1 commit into
nodejs:mainfrom
fatihguzeldev:blob-mtime-seconds
Open

fatihguzeldev wants to merge 1 commit into
nodejs:mainfrom
fatihguzeldev:blob-mtime-seconds

Conversation

@fatihguzeldev

Copy link
Copy Markdown
Contributor

same-size edits can go undetected because file-backed blobs only check
the nanosecond part of mtime. this checks the seconds part too and adds
regression coverage for both file-backed blob apis.

Fixes: #67283

compare the seconds part of mtime as well as nanoseconds. otherwise,
same-size edits can go unnoticed on filesystems with coarse timestamps.

add regression coverage for both file-backed blob apis.

Fixes: nodejs#67283
Signed-off-by: Fatih Güzel <fatihguzeldev@gmail.com>
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Nov 6, 2026
@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.67%. Comparing base (be6f8f8) to head (f403537).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #67302   +/-   ##
=======================================
  Coverage   90.67%   90.67%           
=======================================
  Files         797      797           
  Lines      279607   279612    +5     
  Branches    53782    53790    +8     
=======================================
+ Hits       253526   253545   +19     
+ Misses      16359    16357    -2     
+ Partials     9722     9710   -12     
Files with missing lines Coverage Δ
src/dataqueue/queue.cc 66.04% <100.00%> (+0.06%) ⬆️

... and 28 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openAsBlob only looks at nanoseconds part of mtime to detect modifications

2 participants