From a7fde7e2bf49dc094e5912d1fc46c2c29b2badfa Mon Sep 17 00:00:00 2001 From: Bitcoin Tools <156422466+bitcoin-tools@users.noreply.github.com> Date: Sun, 5 Oct 2025 15:24:52 -0400 Subject: [PATCH 1/7] ci: rerun failed binary with backtrace and vv --- .github/workflows/validation.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validation.yaml b/.github/workflows/validation.yaml index 6004cf734..1e74a82ba 100644 --- a/.github/workflows/validation.yaml +++ b/.github/workflows/validation.yaml @@ -273,7 +273,14 @@ jobs: - name: Update data run: python src/util/update_data.py - name: Run binary - run: cargo run --verbose + run: | + cargo run + if [ "$@" -ne 0 ]; then + echo 'DEBUG: Binary failed to execute' + RUST_BACKTRACE=1 cargo run --verbose --verbose + echo 'DEBUG: Exiting the workflow' + exit 1 + fi - name: Hash output run: sha256sum output/* - name: Upload output artifact From 6bcd14e144df182f6e0c687a6775e83cc1759221 Mon Sep 17 00:00:00 2001 From: Bitcoin Tools <156422466+bitcoin-tools@users.noreply.github.com> Date: Sun, 5 Oct 2025 15:28:18 -0400 Subject: [PATCH 2/7] test a panic --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 9ebf6aea1..e95b32369 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1076,5 +1076,7 @@ fn main() -> Result<(), Box> { ); write(output_html_path, html_content)?; + panic!("PANIC!!!!!!!!!!!!!!!!!!!!!!"); + Ok(()) } From 01c8e92246f1574602caccdb5fdc90a2df892a50 Mon Sep 17 00:00:00 2001 From: Bitcoin Tools <156422466+bitcoin-tools@users.noreply.github.com> Date: Sun, 5 Oct 2025 15:42:40 -0400 Subject: [PATCH 3/7] fix shell syntax --- .github/workflows/validation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validation.yaml b/.github/workflows/validation.yaml index 1e74a82ba..8c8d2458a 100644 --- a/.github/workflows/validation.yaml +++ b/.github/workflows/validation.yaml @@ -275,7 +275,7 @@ jobs: - name: Run binary run: | cargo run - if [ "$@" -ne 0 ]; then + if [ "$?" -ne 0 ]; then echo 'DEBUG: Binary failed to execute' RUST_BACKTRACE=1 cargo run --verbose --verbose echo 'DEBUG: Exiting the workflow' From 1c3e005584b286edd6a4a558f58e934614d0384f Mon Sep 17 00:00:00 2001 From: Bitcoin Tools <156422466+bitcoin-tools@users.noreply.github.com> Date: Sun, 5 Oct 2025 15:43:24 -0400 Subject: [PATCH 4/7] Update main.rs --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e95b32369..4d984736d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1078,5 +1078,5 @@ fn main() -> Result<(), Box> { panic!("PANIC!!!!!!!!!!!!!!!!!!!!!!"); - Ok(()) + //Ok(()) } From 590545c1993ac9c71f7f7817dffd6e8dd3cf7488 Mon Sep 17 00:00:00 2001 From: Bitcoin Tools <156422466+bitcoin-tools@users.noreply.github.com> Date: Sun, 5 Oct 2025 15:46:58 -0400 Subject: [PATCH 5/7] improve the syntax --- .github/workflows/validation.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/validation.yaml b/.github/workflows/validation.yaml index 8c8d2458a..463307baa 100644 --- a/.github/workflows/validation.yaml +++ b/.github/workflows/validation.yaml @@ -274,13 +274,12 @@ jobs: run: python src/util/update_data.py - name: Run binary run: | - cargo run - if [ "$?" -ne 0 ]; then - echo 'DEBUG: Binary failed to execute' + cargo run || { + echo 'DEBUG: binary failed to execute' RUST_BACKTRACE=1 cargo run --verbose --verbose - echo 'DEBUG: Exiting the workflow' + echo 'DEBUG: exiting the workflow' exit 1 - fi + } - name: Hash output run: sha256sum output/* - name: Upload output artifact From 978c14b8d2368b06313b92f6d75e7ead916b951b Mon Sep 17 00:00:00 2001 From: Bitcoin Tools <156422466+bitcoin-tools@users.noreply.github.com> Date: Sun, 5 Oct 2025 15:53:19 -0400 Subject: [PATCH 6/7] remove panic --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4d984736d..9ebf6aea1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1076,7 +1076,5 @@ fn main() -> Result<(), Box> { ); write(output_html_path, html_content)?; - panic!("PANIC!!!!!!!!!!!!!!!!!!!!!!"); - - //Ok(()) + Ok(()) } From d9fb47daf0d25e56fa9cb97eba09aad5924f8940 Mon Sep 17 00:00:00 2001 From: Bitcoin Tools <156422466+bitcoin-tools@users.noreply.github.com> Date: Sun, 5 Oct 2025 15:58:56 -0400 Subject: [PATCH 7/7] run failed binary twice more --- .github/workflows/validation.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/validation.yaml b/.github/workflows/validation.yaml index 463307baa..a4d5db2c5 100644 --- a/.github/workflows/validation.yaml +++ b/.github/workflows/validation.yaml @@ -276,6 +276,9 @@ jobs: run: | cargo run || { echo 'DEBUG: binary failed to execute' + echo 'DEBUG: re-running in verbose mode' + RUST_BACKTRACE=1 cargo run --verbose + echo 'DEBUG: re-running in verbose-verbose mode' RUST_BACKTRACE=1 cargo run --verbose --verbose echo 'DEBUG: exiting the workflow' exit 1