Skip to content

fix(ci): skip tidy-check in nightly FSC update workflow - #2004

Open
adecaro wants to merge 1 commit into
mainfrom
nightly-fsc-update-fix
Open

fix(ci): skip tidy-check in nightly FSC update workflow#2004
adecaro wants to merge 1 commit into
mainfrom
nightly-fsc-update-fix

Conversation

@adecaro

@adecaro adecaro commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • tidy-check flags any uncommitted go.mod/go.sum change as untidy by diffing against git HEAD. The nightly FSC bump workflow deliberately rewrites those files to a new fabric-smart-client version (and already runs make tidy itself via update-dep) before make checks runs, so the git-diff heuristic fails unconditionally on every nightly run even though the modules are genuinely tidy.
  • Add a checks-no-tidy target to checks.mk (same check list as checks, minus tidy-check) and switch nightly-fsc.yml's "Run checks" step to use it. tidy-check and the regular checks target are unchanged for normal PR/local usage.

Fixes #2003

Test plan

  • make checks-no-tidy exits 0 and skips the tidy-check section entirely
  • make checks still exits 0 and prints "✓ All Go modules are tidy." (no regression for normal usage)
  • make lint-auto-fix — 0 issues in every module

@adecaro adecaro added this to the Q3/26 milestone Jul 27, 2026
@adecaro adecaro added bug Something isn't working dep update ci labels Jul 27, 2026
@adecaro adecaro self-assigned this Jul 27, 2026
@adecaro
adecaro force-pushed the nightly-fsc-update-fix branch from b648971 to bf33e1e Compare July 27, 2026 16:53

@AkramBitar AkramBitar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adecaro
adecaro force-pushed the nightly-fsc-update-fix branch from bf33e1e to 50fa724 Compare July 28, 2026 08:51
tidy-check flags any uncommitted go.mod/go.sum change as untidy via
git diff against HEAD. The nightly FSC bump workflow deliberately
rewrites go.mod/go.sum to a new fabric-smart-client version (and
already runs 'make tidy' via update-dep) before make checks runs, so
the git-diff heuristic always fails there even though the modules are
genuinely tidy. Add a checks-no-tidy target that runs every other
check and switch the nightly workflow to use it, leaving tidy-check
and the regular checks target unchanged for normal PR usage.

Fixes #2003

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
@adecaro
adecaro force-pushed the nightly-fsc-update-fix branch from 50fa724 to ddacd38 Compare July 28, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci dep update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nightly FSC Update workflow: checks job fails at tidy-check after every dependency bump

2 participants