mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-07 03:00:29 +00:00
parent
98eee7feaa
commit
48dd28176f
5 changed files with 62 additions and 8 deletions
File diff suppressed because one or more lines are too long
24
nodes/simplify_gpt/diff.patch
Normal file
24
nodes/simplify_gpt/diff.patch
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
diff --git a/lib/crates/fabro-util/src/telemetry/panic.rs b/lib/crates/fabro-util/src/telemetry/panic.rs
|
||||
index 2cad1c3..2503d33 100644
|
||||
--- a/lib/crates/fabro-util/src/telemetry/panic.rs
|
||||
+++ b/lib/crates/fabro-util/src/telemetry/panic.rs
|
||||
@@ -76,6 +76,10 @@ fn is_broken_pipe(message: &str) -> bool {
|
||||
|
||||
/// Report a panic to Sentry. Called from the panic hook.
|
||||
fn report_panic(info: &PanicHookInfo<'_>) {
|
||||
+ if SENTRY_DSN.is_none() {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
let level = super::telemetry_level();
|
||||
if level == TelemetryLevel::Off {
|
||||
return;
|
||||
@@ -103,7 +107,7 @@ fn spawn_panic_sender(event: Event<'static>) {
|
||||
|
||||
/// Send a serialized Sentry panic event. Called by the `__send_panic` subcommand.
|
||||
///
|
||||
-/// Reads the JSON event from `path`, sends it to Sentry, then deletes the file.
|
||||
+/// Reads the JSON event from `path` and sends it to Sentry.
|
||||
/// No-ops if `SENTRY_DSN` was not set at compile time.
|
||||
pub async fn send_panic_to_sentry(path: &Path) -> anyhow::Result<()> {
|
||||
let dsn = SENTRY_DSN.ok_or_else(|| anyhow::anyhow!("SENTRY_DSN not set at compile time"))?;
|
||||
5
nodes/verify/script_invocation.json
Normal file
5
nodes/verify/script_invocation.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"command": "cargo clippy -q --workspace -- -D warnings 2>&1 && cargo nextest run --cargo-quiet --workspace --status-level fail 2>&1",
|
||||
"language": "shell",
|
||||
"timeout_ms": null
|
||||
}
|
||||
5
nodes/verify/script_timing.json
Normal file
5
nodes/verify/script_timing.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"duration_ms": 74685,
|
||||
"exit_code": 0,
|
||||
"timed_out": false
|
||||
}
|
||||
6
nodes/verify/status.json
Normal file
6
nodes/verify/status.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"status": "success",
|
||||
"notes": "Script completed: cargo clippy -q --workspace -- -D warnings 2>&1 && cargo nextest run --cargo-quiet --workspace --status-level fail 2>&1",
|
||||
"failure_reason": null,
|
||||
"timestamp": "2026-03-16T05:37:58.742185+00:00"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue