Skip to content

fix: resolve buf lint violations and fix timed macro exit code#7230

Merged
SVilgelm merged 2 commits intov2from
svilgelm/fix-makefile-timed-exit-code
Apr 17, 2026
Merged

fix: resolve buf lint violations and fix timed macro exit code#7230
SVilgelm merged 2 commits intov2from
svilgelm/fix-makefile-timed-exit-code

Conversation

@SVilgelm
Copy link
Copy Markdown

@SVilgelm SVilgelm commented Apr 17, 2026

Summary

  • Fix timed Makefile macro: The macro previously swallowed the exit code of wrapped commands (e.g. buf lint) because semicolons chained commands — make always saw exit 0 from the final echo. Now captures the exit code, prints timing, then exits with the original code.
  • Fix all buf lint violations:
    • Remove unused imports (google/api/annotations.proto, flyteidl2/task/common.proto)
    • Fix package mismatch in settings protos: flyteidl2.orgflyteidl2.settings to match directory structure
    • Remove unused buf dependency buf.build/grpc-ecosystem/grpc-gateway
    • Regenerate all generated files (Go, Python, Rust, TypeScript)

Test plan

  • Verified make buf-lint fails when proto files have lint violations
  • Verified make buf-lint passes after fixing all violations
  • Timing output is printed on both success and failure

🤖 Generated with Claude Code

  • main
    • Flyte 2 #6583
      • fix: resolve buf lint violations and fix timed macro exit code 👈

Copilot AI review requested due to automatic review settings April 17, 2026 15:58
@SVilgelm SVilgelm changed the title fix(Makefile): preserve exit code in timed macro fix(Makefile): preserve exit code in timed macro and fix buf warnings Apr 17, 2026
@github-actions github-actions bot mentioned this pull request Apr 17, 2026
3 tasks
@SVilgelm SVilgelm changed the title fix(Makefile): preserve exit code in timed macro and fix buf warnings fix: resolve buf lint violations and fix timed macro exit code Apr 17, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the root Makefile’s timed macro so it reports elapsed time while correctly propagating the wrapped command’s exit status, ensuring CI/automation targets fail when the underlying step fails.

Changes:

  • Capture the wrapped command’s exit code (rc=$$?) immediately after execution.
  • Print timing output and then exit $$rc so Make observes the correct failure/success status.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

SVilgelm and others added 2 commits April 17, 2026 09:02
The timed macro previously lost the exit code of the wrapped command due to
chaining with semicolons — make always saw the exit code from the final echo
statement (0). Now the macro captures the command's exit code in a variable,
prints the timing, then exits with the original code, ensuring CI targets
like buf-lint properly fail when violations are detected.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Sergey Vilgelm <sergey@union.ai>
- Remove unused import of google/api/annotations.proto from cluster/service.proto
- Remove unused import of flyteidl2/task/common.proto from queue_service.proto
- Fix package mismatch in settings protos: change package from flyteidl2.org to
  flyteidl2.settings and update all field option references accordingly
- Remove unused buf dependency buf.build/grpc-ecosystem/grpc-gateway
- Regenerate all generated files (Go, Python, Rust, TypeScript)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Sergey Vilgelm <sergey@union.ai>
@SVilgelm SVilgelm force-pushed the svilgelm/fix-makefile-timed-exit-code branch from a8d1f74 to 4284524 Compare April 17, 2026 16:02
@SVilgelm SVilgelm merged commit 312ed4d into v2 Apr 17, 2026
29 of 30 checks passed
@SVilgelm SVilgelm deleted the svilgelm/fix-makefile-timed-exit-code branch April 17, 2026 17:22
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