Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
cfefde9
feat(arty): integrate demand-driven runtime diagnostics
ralfbiedert Nov 9, 2026
530344c
Merge main into Arty runtime collection
ralfbiedert Nov 9, 2026
4cdc669
fix(arty): preserve task monitoring metadata across dispatch
ralfbiedert Nov 9, 2026
b2929a4
fix(arty): handle recording and blocking queue transitions
ralfbiedert Nov 9, 2026
6913497
test(arty): isolate monitoring dependencies and capture sequencing
ralfbiedert Nov 9, 2026
159a06d
refactor(arty): remove public monitoring test hooks
ralfbiedert Nov 9, 2026
0b6c56e
test(arty): serialize process-wide monitoring fixtures
ralfbiedert Nov 9, 2026
97c574e
fix(arty): repair monitoring CI boundaries
ralfbiedert Nov 10, 2026
cbbbe61
fix(arty): align monitoring tests with current CI
ralfbiedert Nov 11, 2026
57a36e3
fix(arty): reconcile monitoring with priority worker commands
ralfbiedert Nov 11, 2026
2271d86
test(arty): exclude approved non-progress mutations
ralfbiedert Nov 11, 2026
4246cdf
Merge origin/main into ralfbiedert-arty-runtime-collection
ralfbiedert Nov 11, 2026
d93dc3b
fix(arty): reconcile monitoring with task registration builder
ralfbiedert Nov 12, 2026
9f7aa48
fix(arty): reconcile monitoring with Anvil migration
ralfbiedert Nov 12, 2026
5755021
test(arty): cover abandoned collection and completion inspection
ralfbiedert Nov 13, 2026
38ab799
test(arty): verify monitored completion and parent forwarding
ralfbiedert Nov 13, 2026
ab0f5bc
perf(arty): streamline monitoring and blocking task execution
ralfbiedert Nov 16, 2026
b78f901
merge: integrate current main into runtime diagnostics
ralfbiedert Nov 16, 2026
83a65e2
test(arty): isolate enabled monitor macro execution
ralfbiedert Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 27 additions & 6 deletions crates/anyspawn/tests/arty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::time::Duration;

use anyspawn::{JoinHandle, Spawner};
use arty::runtime::hook::Panic;
use arty::runtime::{Runtime, WorkersPolicy};
use arty::runtime::{MonitorPolicy, Runtime, WorkersPolicy};
use futures::future::join_all;
use thread_aware::{Thread, ThreadAware};

Expand All @@ -31,7 +31,11 @@ impl ThreadAware for RelocationProbe {
}

fn runtime_and_spawner() -> (Runtime, Spawner) {
let runtime = Runtime::builder().workers(WorkersPolicy::exactly(1)).build().unwrap();
let runtime = Runtime::builder()
.monitor(MonitorPolicy::disabled())
.workers(WorkersPolicy::exactly(1))
.build()
.unwrap();
let scheduler = runtime.scheduler().block_on(async |cx| cx.scheduler().clone()).unwrap();
let spawner = Spawner::new_arty(scheduler);
(runtime, spawner)
Expand Down Expand Up @@ -83,7 +87,11 @@ fn arty_relocation_round_trip_rebinds_to_destination_worker() {
if many_cpus::SystemHardware::current().processors().len() < 2 {
return;
}
let runtime_a = Runtime::builder().workers(WorkersPolicy::exactly(2)).build().unwrap();
let runtime_a = Runtime::builder()
.monitor(MonitorPolicy::disabled())
.workers(WorkersPolicy::exactly(2))
.build()
.unwrap();
let (mut spawner, source, destination) = runtime_a
.scheduler()
.block_on(async |cx| {
Expand All @@ -97,7 +105,11 @@ fn arty_relocation_round_trip_rebinds_to_destination_worker() {
.unwrap();
let original = spawner.clone();

let runtime_b = Runtime::builder().workers(WorkersPolicy::exactly(1)).build().unwrap();
let runtime_b = Runtime::builder()
.monitor(MonitorPolicy::disabled())
.workers(WorkersPolicy::exactly(1))
.build()
.unwrap();
let foreign = runtime_b.scheduler().block_on(async |cx| cx.thread().clone()).unwrap();

spawner.relocate(Some(&source), &foreign);
Expand All @@ -112,7 +124,11 @@ fn arty_relocation_round_trip_rebinds_to_destination_worker() {

#[test]
fn arty_spawn_anywhere_relocates_payload_before_factory() {
let runtime = Runtime::builder().workers(WorkersPolicy::exactly(1)).build().unwrap();
let runtime = Runtime::builder()
.monitor(MonitorPolicy::disabled())
.workers(WorkersPolicy::exactly(1))
.build()
.unwrap();
let scheduler = runtime.scheduler().block_on(async |cx| cx.scheduler().clone()).unwrap();
let spawner = Spawner::new_arty(scheduler);

Expand All @@ -138,6 +154,7 @@ fn arty_spawn_blocking_returns_output() {
#[test]
fn arty_task_panics_return_join_errors() {
let runtime = Runtime::builder()
.monitor(MonitorPolicy::disabled())
.workers(WorkersPolicy::exactly(1))
.on(Panic::IGNORE)
.build()
Expand Down Expand Up @@ -209,7 +226,11 @@ fn arty_spawner_debug_names_the_runtime() {

#[test]
fn arty_builder_preserves_the_worker_association() {
let runtime = Runtime::builder().workers(WorkersPolicy::exactly(1)).build().unwrap();
let runtime = Runtime::builder()
.monitor(MonitorPolicy::disabled())
.workers(WorkersPolicy::exactly(1))
.build()
.unwrap();
let (scheduler, expected) = runtime
.scheduler()
.block_on(async |cx| (cx.scheduler().clone(), thread::current().id()))
Expand Down
2 changes: 2 additions & 0 deletions crates/anyspawn/tests/observed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ fn pending_task_does_not_leak_context_on_the_same_thread() {
#[test]
fn arty_transfers_context_for_all_spawn_methods() {
let runtime = arty::runtime::Runtime::builder()
.monitor(arty::runtime::MonitorPolicy::disabled())
.workers(arty::runtime::WorkersPolicy::exactly(1))
.build()
.unwrap();
Expand Down Expand Up @@ -229,6 +230,7 @@ fn arty_relocates_data_before_the_observed_factory() {
}

let runtime = arty::runtime::Runtime::builder()
.monitor(arty::runtime::MonitorPolicy::disabled())
.workers(arty::runtime::WorkersPolicy::exactly(1))
.build()
.unwrap();
Expand Down
23 changes: 21 additions & 2 deletions crates/arty/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ all-features = true
[features]
default = ["rt", "macros", "monitor"]
macros = ["rt", "dep:arty_macros"]
monitor = ["dep:seismograph", "seismograph/monitor", "performables?/seismograph"]
monitor = [
"dep:seismograph",
"dep:seismograph_runtime",
"arty_executor?/inspection",
"seismograph/monitor",
"performables?/seismograph",
]
rt = [
"dep:arty_executor",
"dep:arty_io_host",
Expand Down Expand Up @@ -73,12 +79,13 @@ pin-project = { workspace = true, optional = true }
plurality = { workspace = true, features = ["std"], optional = true }
scopeguard = { workspace = true }
seismograph = { workspace = true, optional = true }
seismograph_runtime = { workspace = true, optional = true }
thread_aware = { workspace = true, features = ["std", "derive"], optional = true }
thread_aware_core = { workspace = true, features = ["std"] }
tick = { workspace = true }

[dev-dependencies]
arty_executor = { path = "../arty_executor" }
arty_executor = { path = "../arty_executor", features = ["inspection"] }
arty_io_host = { path = "../arty_io_host" }
arty_macros = { path = "../arty_macros" }
bolero = { workspace = true, features = ["std"] }
Expand All @@ -98,6 +105,8 @@ performables = { path = "../performables", features = ["seismograph"] }
pin-project = { workspace = true }
plurality = { path = "../plurality", features = ["std"] }
seismograph = { path = "../seismograph", features = ["monitor"] }
seismograph_protocol = { path = "../seismograph_protocol", features = ["test-util"] }
seismograph_runtime = { path = "../seismograph_runtime", features = ["test-util"] }
static_assertions = { workspace = true }
testing_aids = { path = "../testing_aids" }
thread_aware = { path = "../thread_aware", features = ["std", "derive", "test-utils"] }
Expand All @@ -122,6 +131,16 @@ name = "arty_contention"
harness = false
required-features = ["rt"]

[[bench]]
name = "arty_inspection"
harness = false
required-features = ["rt"]

[[bench]]
name = "arty_spawn_allocations"
harness = false
required-features = ["rt"]

[[example]]
name = "arty_advanced"
required-features = ["rt"]
Expand Down
15 changes: 9 additions & 6 deletions crates/arty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ The default feature set enables `rt`, `macros`, and `monitor`.

* `rt`: Enables the runtime, task, and I/O APIs.
* `macros`: Enables [`main`][__link13] and [`test`][__link14]. It also enables `rt`.
* `monitor`: Enables the Seismograph monitor dependency. It forwards
monitoring support for `performables` when `performables` is enabled. It does
not start monitoring or emit new telemetry.
* `monitor`: Connects runtime workers and tasks to Seismograph. An enabled
[`MonitorPolicy`][__link15] starts a local connection for
the Seismograph CLI. Task collection runs on request. Event recording stays
off until an application or the CLI enables it. This feature also forwards
monitoring support for `performables` when `performables` is enabled.
* `test-util`: Enables testing utilities, including
[`ClockControl`][__link15].
[`ClockControl`][__link16].
Enable it in dev-dependencies, not production dependencies.


Expand All @@ -78,15 +80,16 @@ The default feature set enables `rt`, `macros`, and `monitor`.
This crate was developed as part of <a href="https://github.com/microsoft/oxidizer">The Oxidizer Project</a>. Browse this crate's <a href="https://github.com/microsoft/oxidizer/tree/main/crates/arty">source code</a>.
</sub>

[__cargo_doc2readme_dependencies_info]: ggGmYW0CYXZlMC43LjNhdIQborR2_k_xJd4bTcf2krrNPIcbP72Pw1UdRjkbim_eMDe2BBthYvRhcoQbQL336xbftBwb3WEJKMJ3SngbyR3bGBAhBb0b0RYBQT1d6EhhZIKCZGFydHllMC42LjGCa2FydHlfbWFjcm9zZTAuNi4x
[__cargo_doc2readme_dependencies_info]: ggGmYW0CYXZlMC43LjNhdIQborR2_k_xJd4bTcf2krrNPIcbP72Pw1UdRjkbim_eMDe2BBthYvRhcoQbpjTzkOovhJgb4j8Xd8b5dycb1Kf_wRXWtfYbr0QtKZVggRRhZIKCZGFydHllMC42LjGCa2FydHlfbWFjcm9zZTAuNi4x
[__link0]: https://doc.rust-lang.org/stable/std/marker/trait.Send.html
[__link1]: https://docs.rs/arty/0.6.1/arty/?search=core::ThreadAware
[__link10]: https://docs.rs/arty/0.6.1/arty/core/index.html
[__link11]: https://docs.rs/arty_macros/0.6.1/arty_macros/?search=main
[__link12]: https://docs.rs/arty_macros/0.6.1/arty_macros/?search=test
[__link13]: https://docs.rs/arty_macros/0.6.1/arty_macros/?search=main
[__link14]: https://docs.rs/arty_macros/0.6.1/arty_macros/?search=test
[__link15]: https://docs.rs/arty/0.6.1/arty/?search=time::ClockControl
[__link15]: https://docs.rs/arty/0.6.1/arty/?search=runtime::MonitorPolicy
[__link16]: https://docs.rs/arty/0.6.1/arty/?search=time::ClockControl
[__link2]: https://docs.rs/arty_macros/0.6.1/arty_macros/?search=main
[__link3]: https://docs.rs/arty/0.6.1/arty/?search=task::JoinError
[__link4]: https://docs.rs/arty/0.6.1/arty/?search=task::Scheduler::spawn
Expand Down
Loading
Loading