fix(ipc): Fallback to ftruncate if fallocate gets EPERM#1938
fix(ipc): Fallback to ftruncate if fallocate gets EPERM#1938gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 00b9d8d24f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
00b9d8d to
a70521b
Compare
Clippy Allow Annotation ReportComparing clippy allow annotations between branches:
Summary by Rule
Annotation Counts by File
Annotation Stats by Crate
About This ReportThis report tracks Clippy allow annotations for specific rules, showing how they've changed in this PR. Decreasing the number of these annotations generally improves code quality. |
a70521b to
65e0028
Compare
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: d2bd8fd | Docs | Datadog PR Page | Give us feedback! |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1938 +/- ##
==========================================
- Coverage 71.72% 71.70% -0.02%
==========================================
Files 434 434
Lines 70379 70384 +5
==========================================
- Hits 50480 50471 -9
- Misses 19899 19913 +14
🚀 New features to boost your workflow:
|
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-unknown-linux-gnu
|
0e72b16 to
d34a83c
Compare
morrisonlevi
left a comment
There was a problem hiding this comment.
BTW, we think this happens because of seccomp. Patch looks good, have some very minor suggestions.
| // Use fallocate on Linux to eagerly commit the new pages: ENOSPC at resize time is | ||
| // recoverable; a later SIGBUS mid-execution is not. |
| new_size, | ||
| )?; | ||
| ) { | ||
| Err(nix::Error::EPERM | nix::Error::ENOSYS) => nix::unistd::ftruncate(fd, new_size)?, |
There was a problem hiding this comment.
Maybe EOPNOTSUPP? If this uses a file-based fallback then it might conceivably return that?
I have no idea how fallocate is ever returning EPERM here, but apparently it is for some users. So, ... falling back it is.
d34a83c to
d2bd8fd
Compare
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
The expected merge time in
|
I have no idea how fallocate is ever returning EPERM here, but apparently it is for some users. So, ... falling back it is.