From a32217fac8de03e540b2ab0036f22adb49a32668 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 14 May 2024 15:53:08 +0300 Subject: [PATCH 1/2] scripts: fix linting Should be a part of #3435. Signed-off-by: Anna Shaleva --- scripts/compare-states/compare-states.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/compare-states/compare-states.go b/scripts/compare-states/compare-states.go index ec95d3fdf..515afc0ce 100644 --- a/scripts/compare-states/compare-states.go +++ b/scripts/compare-states/compare-states.go @@ -118,9 +118,15 @@ func cliMain(c *cli.Context) error { return err } fmt.Printf("state differs at %d, block %s\n", h, blk.Hash().StringLE()) - dumpApplogDiff(true, blk.Hash(), a, b, ca, cb) + err = dumpApplogDiff(true, blk.Hash(), a, b, ca, cb) + if err != nil { + return fmt.Errorf("failed to dump block application log: %w", err) + } for _, t := range blk.Transactions { - dumpApplogDiff(false, t.Hash(), a, b, ca, cb) + err = dumpApplogDiff(false, t.Hash(), a, b, ca, cb) + if err != nil { + return fmt.Errorf("failed to dump application log for tx %s: %w", t.Hash().StringLE(), err) + } } return errors.New("different state found") } From 244ca6f4387d5addbe44910fe7e6d909b12a988b Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 14 May 2024 15:55:23 +0300 Subject: [PATCH 2/2] workflows: enable testing jobs for go scripts Signed-off-by: Anna Shaleva --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 33fe64ba0..3abfa5975 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ on: - master types: [opened, synchronize] paths-ignore: - - 'scripts/**' + - 'scripts/*.sh' - '**/*.md' workflow_dispatch: