checkpoint

⚒️ Generated with [Fabro](https://fabro.sh)
This commit is contained in:
Fabro 2026-03-15 13:06:43 -04:00
parent f2f1f6ad4e
commit 3c83b9f207
5 changed files with 111 additions and 8 deletions

File diff suppressed because one or more lines are too long

73
nodes/simplify/diff.patch Normal file
View file

@ -0,0 +1,73 @@
diff --git a/lib/crates/fabro-cli/src/main.rs b/lib/crates/fabro-cli/src/main.rs
index 7c2c9a1..ff2adae 100644
--- a/lib/crates/fabro-cli/src/main.rs
+++ b/lib/crates/fabro-cli/src/main.rs
@@ -751,4 +751,4 @@ async fn main_inner() -> (String, Result<()>) {
.await;
(command_name, result)
-}
\ No newline at end of file
+}
diff --git a/lib/crates/fabro-workflows/src/cli/progress.rs b/lib/crates/fabro-workflows/src/cli/progress.rs
index 39c904b..cee2207 100644
--- a/lib/crates/fabro-workflows/src/cli/progress.rs
+++ b/lib/crates/fabro-workflows/src/cli/progress.rs
@@ -73,7 +73,7 @@ pub(crate) fn format_duration_short(d: Duration) -> String {
}
}
-fn format_duration_ms(ms: u64) -> String {
+pub(crate) fn format_duration_ms(ms: u64) -> String {
format_duration_short(Duration::from_millis(ms))
}
diff --git a/lib/crates/fabro-workflows/src/cli/runs.rs b/lib/crates/fabro-workflows/src/cli/runs.rs
index 9e2ffb7..0f73817 100644
--- a/lib/crates/fabro-workflows/src/cli/runs.rs
+++ b/lib/crates/fabro-workflows/src/cli/runs.rs
@@ -1,7 +1,6 @@
use std::collections::HashMap;
use std::fmt;
use std::path::{Path, PathBuf};
-use std::time::Duration;
use anyhow::{bail, Context, Result};
use chrono::{DateTime, Utc};
@@ -387,9 +386,6 @@ fn format_relative_time(dt: &DateTime<Utc>) -> String {
let now = Utc::now();
let dur = now.signed_duration_since(*dt);
let secs = dur.num_seconds();
- if secs < 0 {
- return "just now".to_string();
- }
if secs < 60 {
return "just now".to_string();
}
@@ -405,7 +401,7 @@ fn format_relative_time(dt: &DateTime<Utc>) -> String {
format!("{days}d ago")
}
-fn style_status<'a>(status: &'a RunStatus, styles: &'a Styles) -> String {
+fn style_status(status: &RunStatus, styles: &Styles) -> String {
let text = status.to_string();
match status {
RunStatus::Concluded(StageStatus::Success | StageStatus::PartialSuccess) => {
@@ -451,7 +447,7 @@ pub fn list_command(args: &RunsListArgs, styles: &Styles) -> Result<()> {
"RUN ID", "WORKFLOW", "STATUS", "STARTED", "DURATION", "COST"
);
println!("{}", styles.bold.apply_to(&header));
- println!("{}", styles.dim.apply_to("-".repeat(110)));
+ println!("{}", styles.dim.apply_to("-".repeat(header.len())));
for run in &display_runs {
let labels_str = run
@@ -472,7 +468,7 @@ pub fn list_command(args: &RunsListArgs, styles: &Styles) -> Result<()> {
.unwrap_or_else(|| "-".to_string());
let duration_display = run
.duration_ms
- .map(|ms| super::progress::format_duration_short(Duration::from_millis(ms)))
+ .map(super::progress::format_duration_ms)
.unwrap_or_else(|| "-".to_string());
let cost_display = run
.total_cost

View file

@ -0,0 +1,5 @@
{
"command": "cargo clippy -- -D warnings 2>&1 && cargo test 2>&1",
"language": "shell",
"timeout_ms": null
}

View file

@ -0,0 +1,5 @@
{
"duration_ms": 64843,
"exit_code": 0,
"timed_out": false
}

6
nodes/verify/status.json Normal file
View file

@ -0,0 +1,6 @@
{
"status": "success",
"notes": "Script completed: cargo clippy -- -D warnings 2>&1 && cargo test 2>&1",
"failure_reason": null,
"timestamp": "2026-03-15T17:06:43.364066+00:00"
}