Skip to content

Conversation

@nullmonk
Copy link
Collaborator

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add Golemv2 for use with eldritchv2

@nullmonk
Copy link
Collaborator Author

image

This test fails bc the FakeLibrary doesnt actually execute the command. Should I update the test to just check that the eldritch is evaluating or update the FakeLib to run commands?

Link to the problem line:

map.insert("stdout".into(), Value::String(format!("Executed: {}", cmd)));

@KCarretto KCarretto self-requested a review December 24, 2025 17:41
@KCarretto
Copy link
Collaborator

image This test fails bc the FakeLibrary doesnt actually execute the command. Should I update the test to just check that the eldritch is evaluating or update the FakeLib to run commands?

Link to the problem line:

map.insert("stdout".into(), Value::String(format!("Executed: {}", cmd)));

I would update the test with the info that the command will not actually be executed.

Copy link
Collaborator

@KCarretto KCarretto left a comment

Choose a reason for hiding this comment

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

Fix tests and then lgtm. Be sure the regular assets lib still works with imixv2

@github-actions
Copy link
Contributor

github-actions bot commented Dec 24, 2025

Summary

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

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#365 2959 2959 0 0 0 0 29.4s

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
2959 0 0 46.4s

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
eldritch: random::string_impl::tests::test_string_uniform 3 43.0s 46.4s
eldritch: random::string_impl::tests::test_string_uniform 3 43.0s 46.4s
eldritch: random::string_impl::tests::test_string_uniform 3 43.0s 46.4s
eldritch: pivot::port_scan_impl::tests::test_portscan_return_type_starlark_dict_from_interpreter 3 2.7s 8.1s
eldritch: pivot::port_scan_impl::tests::test_portscan_return_type_starlark_dict_from_interpreter 3 2.7s 8.1s
eldritch: pivot::port_scan_impl::tests::test_portscan_return_type_starlark_dict_from_interpreter 3 2.7s 8.1s
eldritch: pivot::ssh_copy_impl::tests::test_pivot_ssh_copy 3 4.0s 8.0s
eldritch: pivot::ssh_copy_impl::tests::test_pivot_ssh_copy 3 4.0s 8.0s
eldritch: pivot::ssh_copy_impl::tests::test_pivot_ssh_copy 3 4.0s 8.0s
eldritch: process::info_impl::tests::test_info_default 3 2.8s 8.0s

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

Github Test Reporter by CTRF 💚

🔄 This comment has been updated

@nullmonk nullmonk force-pushed the golemv2 branch 2 times, most recently from 9067368 to 654f9e3 Compare January 7, 2026 21:41
KCarretto
KCarretto previously approved these changes Jan 9, 2026
use alloc::vec::Vec;
use anyhow::anyhow;
use core::fmt::Debug;
use eldritch_libassets::std::AssetBackend;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should re-export this in eldritchv2 instead of requiring callers to import specific standard libraries on top of eldritchv2

use std::fs;
use std::path::PathBuf;

const MAX_RECURSION_DEPTH: usize = 10;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can probably safely make this higher?

use std::io::{self, Write};
use std::time::Duration;

pub fn repl(mut inter: Interpreter) -> io::Result<()> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should definitely move this to the repl crate since it's used by 3+ clients now

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

can we do that in a separate PR?

@nullmonk nullmonk enabled auto-merge January 9, 2026 07:51
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.

4 participants