Skip to content

fix: Fix taskbroker CI issues#640

Merged
untitaker merged 2 commits into
mainfrom
fix/precommit-all-files-on-main
May 26, 2026
Merged

fix: Fix taskbroker CI issues#640
untitaker merged 2 commits into
mainfrom
fix/precommit-all-files-on-main

Conversation

@untitaker
Copy link
Copy Markdown
Member

@untitaker untitaker commented May 18, 2026

Summary

Fixes several CI issues in taskbroker:

  1. Pre-commit on all files for main - Update CI workflow to run pre-commit on all files when pushing to main branch (not just changed files), preventing formatting drift

  2. Fix existing formatting - Fix isort/black formatting in devenv/sync.py and integration tests

  3. Fix flaky rebalancing test - Make gRPC server optional (grpc_port=0 disables it). The rebalancing test only tests Kafka→SQLite deduplication and doesn't need gRPC, but was failing with AddrInUse errors when trying to bind ports

Fixes STREAM-1004

Test plan

  • CI Lint check passes
  • Python Client Lint/Tests pass
  • Rust code compiles
  • Rebalancing test passes consistently (will verify with multiple CI runs)

🤖 Generated with Claude Code

@untitaker untitaker requested a review from a team as a code owner May 18, 2026 15:39
@untitaker untitaker force-pushed the fix/precommit-all-files-on-main branch from fd28b1b to a18d52f Compare May 18, 2026 15:46
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a18d52f. Configure here.

Comment thread clients/python/src/taskbroker_client/worker/client.py Outdated
@untitaker untitaker force-pushed the fix/precommit-all-files-on-main branch from a18d52f to 1102b94 Compare May 18, 2026 15:53
- Update CI workflow to run pre-commit on all files when pushing to main,
  while still running only on changed files for PRs
- Fix isort imports in devenv/sync.py
- Fix black formatting in integration tests

This prevents formatting drift when commits bypass pre-commit hooks locally.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@untitaker untitaker force-pushed the fix/precommit-all-files-on-main branch from 1102b94 to bfd2fc3 Compare May 18, 2026 15:58
@untitaker
Copy link
Copy Markdown
Member Author

This PR had to reformat integration tests after touching them: #639

trying to prevent that by making main run the formatter on all files.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 18, 2026

STREAM-1004

- gRPC server now only starts when grpc_port > 0
- Setting grpc_port=0 disables the gRPC server entirely
- Update rebalancing test to disable gRPC since it's not needed

The rebalancing test only verifies Kafka→SQLite deduplication during
consumer rebalancing. It doesn't use workers, so the gRPC server is
unnecessary and was causing flaky AddrInUse failures.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@untitaker untitaker changed the title fix: Run pre-commit on all files on main branch fix: Fix taskbroker CI issues May 18, 2026
Copy link
Copy Markdown
Member

@george-sentry george-sentry left a comment

Choose a reason for hiding this comment

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

Looks good to me if that flaky test passes a few times in a row.

@untitaker untitaker merged commit dd4ce78 into main May 26, 2026
102 checks passed
@untitaker untitaker deleted the fix/precommit-all-files-on-main branch May 26, 2026 16:19
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.

4 participants