Skip to content

Add pre-push checklist to CLAUDE.md#5083

Closed
vara2504 wants to merge 3 commits into
tigera:masterfrom
vara2504:vara-claude-md-pre-push-checklist
Closed

Add pre-push checklist to CLAUDE.md#5083
vara2504 wants to merge 3 commits into
tigera:masterfrom
vara2504:vara-claude-md-pre-push-checklist

Conversation

@vara2504

@vara2504 vara2504 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a Pre-push Checklist section to .claude/CLAUDE.md with the minimum commands to run before pushing: gen-files, fix, dirty-check, static-checks

Release Note

None

🤖 Generated with Claude Code

@vara2504
vara2504 requested a review from a team as a code owner July 21, 2026 23:40
@marvin-tigera marvin-tigera added this to the v1.44.0 milestone Jul 21, 2026
@vara2504
vara2504 force-pushed the vara-claude-md-pre-push-checklist branch from 71b979f to dbeb5d0 Compare July 21, 2026 23:42
Comment thread .claude/CLAUDE.md Outdated
```

### Pre-push Checklist
After making changes, run these before pushing to avoid CI failures:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we should be having Claude run these command unconditionally - many changes don't need these, and it's going to add extra time to each push.

At a minimum we should be a bit smarter about explaining what sort of changes should trigger running which commands.

@vara2504 vara2504 Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@caseydavenport updated so each command is gated by change type rather than run unconditionally:

  • static-checks (the slow golangci-lint container pass) now only runs after Go code changes, not on every push.
  • dirty-check moved next to gen-files, where it just confirms regenerated files are committed.
  • gen-files stays scoped to API/CRD/config changes.

@vara2504
vara2504 force-pushed the vara-claude-md-pre-push-checklist branch 2 times, most recently from 37143db to 7e9fcd6 Compare July 21, 2026 23:58
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vara2504
vara2504 force-pushed the vara-claude-md-pre-push-checklist branch from 7e9fcd6 to 305cf6b Compare July 22, 2026 00:04
vara2504 and others added 2 commits July 22, 2026 10:58
Address review feedback: each pre-push command now runs only for the
change type that needs it, so a docs/YAML/comment-only push runs none.
static-checks (golangci-lint) and dirty-check no longer run
unconditionally on every push.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants