Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

Updated report.file() to include file metadata (owner, group, permissions) by refactoring and reusing logic from eldritch-libfile.


PR created automatically by Jules for task 12087409698623923300 started by @KCarretto

- Extracted file metadata logic from `eldritch-libfile` into a reusable `metadata_impl` module.
- Exposed `get_file_info` in `eldritch-libfile`.
- Updated `eldritch-libreport` to depend on `eldritch-libfile`.
- Updated `report.file()` to populate `owner`, `group`, and `permissions` in `FileMetadata` using the shared logic.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 10, 2026

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
2968    ±0 2968    ±0 0    ±0 0    ±0 0    ±0 0    ±0 1ms    ±0

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#425 2968 2968 0 0 0 0 31.6s

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
2968 0 0 50.0s

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
eldritch: random::string_impl::tests::test_string_uniform 3 44.5s 50.0s
eldritch: random::string_impl::tests::test_string_uniform 3 44.5s 50.0s
eldritch: random::string_impl::tests::test_string_uniform 3 44.5s 50.0s
eldritch: random::int_impl::tests::test_random_int_uniform_average 3 3.9s 7.5s
eldritch: random::int_impl::tests::test_random_int_uniform_average 3 3.9s 7.5s
eldritch: random::int_impl::tests::test_random_int_uniform_average 3 3.9s 7.5s
eldritch: random::int_impl::tests::test_random_int_uniform_chi_square 3 4.0s 7.5s
eldritch: random::int_impl::tests::test_random_int_uniform_chi_square 3 4.0s 7.5s
eldritch: random::int_impl::tests::test_random_int_uniform_chi_square 3 4.0s 7.5s
eldritch: process::kill_impl::tests::test_process_kill 3 2.4s 6.9s

🎉 No failed tests in this run. | 🍂 No flaky tests in this run.

Github Test Reporter by CTRF 💚

🔄 This comment has been updated

…port

- Refactor file metadata extraction into a reusable `metadata_impl` module in `eldritch-libfile`.
- Implement robust Unix/BSD ownership and permission retrieval using `nix`.
- Provide safe Windows fallbacks for metadata retrieval to ensure cross-platform compatibility.
- Update `report.file()` in `eldritch-libreport` to utilize the new metadata logic for populating `owner`, `group`, and `permissions`.
@KCarretto
Copy link
Collaborator

jules run cargo fmt

@google-labs-jules
Copy link
Contributor Author

jules run cargo fmt

Ran cargo fmt.

…port

- Refactored file metadata extraction into a reusable `metadata_impl` module within `eldritch-libfile`, accessible to other libraries.
- Implemented robust Unix/BSD ownership and permission retrieval using `nix` and `std::os::unix`, with `as _` casting for broad platform support.
- Provided safe fallbacks for Windows systems to ensure cross-platform compatibility.
- Updated `report.file()` in `eldritch-libreport` to utilize the new shared logic for populating `owner`, `group`, and `permissions`.
- Updated dependencies in `eldritch-libreport` to include `eldritch-libfile`.
@KCarretto KCarretto marked this pull request as ready for review January 13, 2026 04:31
@KCarretto KCarretto requested a review from hulto January 13, 2026 04:31
use anyhow::Result as AnyhowResult;
#[cfg(feature = "stdlib")]
use std::path::Path;

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since the metadata functions aren't actual eldritch impls I think this is confusing.

I'd move theses to mod.rs.

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