Skip to content

Fix process list to report process status#2027

Merged
hulto merged 8 commits intomainfrom
fix-process-list-status-12297551028211506192
Mar 8, 2026
Merged

Fix process list to report process status#2027
hulto merged 8 commits intomainfrom
fix-process-list-status-12297551028211506192

Conversation

@hulto
Copy link
Collaborator

@hulto hulto commented Mar 6, 2026

Fix process list to report process status

Mapped the string process statuses back to their eldritch::process::Status enum values in implants/lib/eldritch/stdlib/eldritch-libreport/src/std/process_list_impl.rs so that they get properly reported to the C2.


PR created automatically by Jules for task 12297551028211506192 started by @hulto

Mapped the string process statuses back to their `eldritch::process::Status` enum values in `implants/lib/eldritch/stdlib/eldritch-libreport/src/std/process_list_impl.rs` so that they get properly reported to the C2.

Co-authored-by: hulto <7121375+hulto@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 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 Mar 6, 2026

Summary

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

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#1552 2746 2746 0 0 0 0 38.9s

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
2746 0 0 6.1s

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
TestDockerExecutor_Build_ContextCancellation 1 6.1s 6.1s
eldritch-libsys: std::dll_inject_impl::tests::test_dll_inject_simple 1 5.1s 5.1s
TestInteractiveShell 1 5.0s 5.0s
TestOtherStreamOutput 1 5.0s 5.0s
imix::bin/imix: install::tests::test_install_execution 3 1.7s 4.8s
imix::bin/imix: install::tests::test_install_execution 3 1.7s 4.8s
imix::bin/imix: install::tests::test_install_execution 3 1.7s 4.8s
TestDockerExecutor_Build_SimpleEcho 1 4.7s 4.7s
imix::bin/imix: tests::task_tests::test_task_streaming_output 3 3.0s 3.0s
imix::bin/imix: tests::task_tests::test_task_streaming_output 3 3.0s 3.0s

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

Github Test Reporter by CTRF 💚

🔄 This comment has been updated

google-labs-jules bot and others added 5 commits March 6, 2026 04:14
- Removed `.to_string()` which wraps `Value::String` into extra quotes.
- Mapped string versions of process statuses back to the enum.
- Accounted for possible typo variants `Wakekill` and `UninterruptibleDiskSleep`.
- Formatted properly via `cargo fmt`.

Co-authored-by: hulto <7121375+hulto@users.noreply.github.com>
- Mapped string versions of process statuses back to the enum.
- Add inline tests to verify proper mapping of process status values across environments.
- Formatted via cargo fmt.

Co-authored-by: hulto <7121375+hulto@users.noreply.github.com>
- Mapped string versions of process statuses back to the enum.
- Add inline integration tests to verify proper mapping of process status values across environments using sysinfo process spawned.
- Removed usage of `.to_string()` for string extracting inside map to fix JSON serialization quotes.
- Formatted via cargo fmt.

Co-authored-by: hulto <7121375+hulto@users.noreply.github.com>
- Mapped string versions of process statuses back to the enum in `implants/lib/eldritch/stdlib/eldritch-libreport/src/std/process_list_impl.rs`.
- Added inline integration test `test_process_list_status_mapping_integration` to verify process status mappings by spawning an actual process using `std::process::Command` across Windows, Mac, and Linux without relying on MockAgent logic.
- Included `eldritch-libprocess` to the dev dependencies of `eldritch-libreport`.

Co-authored-by: hulto <7121375+hulto@users.noreply.github.com>
- Added `"Runnable"` state to the `map_status` arm handling the `"Run"` logic, as `sysinfo` emits `"Runnable"` dynamically on Windows and macOS.

Co-authored-by: hulto <7121375+hulto@users.noreply.github.com>
@hulto hulto marked this pull request as ready for review March 7, 2026 03:48
google-labs-jules bot and others added 2 commits March 7, 2026 03:53
- Added a short comment explicitly noting why `Runnable` is handled along with `Run` and `Running`, for future clarity.

Co-authored-by: hulto <7121375+hulto@users.noreply.github.com>
@hulto hulto merged commit 08809fe into main Mar 8, 2026
8 checks passed
@hulto hulto deleted the fix-process-list-status-12297551028211506192 branch March 8, 2026 04:15
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.

1 participant