Skip to content

refactor(lading): annotate intentional-panic file_gen sites#1898

Draft
goxberry wants to merge 1 commit into
goxberry/expect-cleanup-lading-blackholefrom
goxberry/expect-cleanup-lading-file-gen
Draft

refactor(lading): annotate intentional-panic file_gen sites#1898
goxberry wants to merge 1 commit into
goxberry/expect-cleanup-lading-blackholefrom
goxberry/expect-cleanup-lading-file-gen

Conversation

@goxberry
Copy link
Copy Markdown
Contributor

@goxberry goxberry commented May 23, 2026

Summary

Annotate intentional-panic .expect() sites in generator/file_gen/* with fn-level #[expect(clippy::expect_used, reason = "...")]. These are FUSE/logrotate-fs entry points where panicking on an internal invariant violation is the appropriate failure mode for a load-generation harness.

Sites annotated:

  • `generator/file_gen/logrotate.rs` — file rotation primitives
  • `generator/file_gen/logrotate_fs.rs::{lookup,getattr,read,release,readdir,open}` — FUSE callback methods
  • `generator/file_gen/logrotate_fs/model.rs::advance_time_inner`
  • `generator/file_gen/logrotate_fs/model.rs::read`

Stacked on #1897. Part of the broader push toward enforcing clippy::expect_used = "deny" workspace-wide.

Test plan

  • `./ci/validate` passes
  • CI green on this PR

Attach fn-level #[expect(clippy::expect_used, reason = "...")] to the
logrotate generator and the logrotate_fs FUSE filesystem callbacks. The
FUSE state mutex is held only briefly inside each callback so a poisoned
mutex is unrecoverable; the model itself maintains the parent/file-type/
name invariants used inside `readdir`.

- generator/file_gen/logrotate.rs::Child::spin (non-empty names invariant)
- generator/file_gen/logrotate_fs.rs::Server::new (FIXME: fuse_mount2 spawn)
- generator/file_gen/logrotate_fs.rs::{lookup,getattr,read,release,readdir,open}
- generator/file_gen/logrotate_fs/model.rs::advance_time_inner
- generator/file_gen/logrotate_fs/model.rs::read

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor Author

goxberry commented May 23, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@datadog-prod-us1-6
Copy link
Copy Markdown

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

Changelog Check | changelog-check   View in Datadog   GitHub Actions

🛟 This job is unlikely to succeed on retry. Please review your pipeline configuration. No changes to CHANGELOG.md detected. Add 'no-changelog' label if this is intentional.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: e24474b | Docs | Datadog PR Page | Give us feedback!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant