Skip to content

Conversation

@NicoHinderling
Copy link

@NicoHinderling NicoHinderling commented Sep 24, 2025

I and some other coworkers had an issue where colima was using port 50051, which is the port that taskbroker also wants to use. Changing the port that taskbroker uses caused tasks to start flowing again

This is an attempt to use port 50055 solely in the devservices/local development environment

corresponding sentry PR: getsentry/sentry#100231

@NicoHinderling NicoHinderling requested a review from a team as a code owner September 24, 2025 20:24
@NicoHinderling NicoHinderling marked this pull request as draft September 24, 2025 20:31
@NicoHinderling NicoHinderling force-pushed the allow-for-local-dev-grpc-port-value branch 2 times, most recently from 56c8921 to c37ec26 Compare September 24, 2025 20:53
@codecov
Copy link

codecov bot commented Sep 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.55%. Comparing base (36ceb56) to head (b1bb914).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #492   +/-   ##
=======================================
  Coverage   88.55%   88.55%           
=======================================
  Files          20       20           
  Lines        5559     5559           
=======================================
  Hits         4923     4923           
  Misses        636      636           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@NicoHinderling NicoHinderling force-pushed the allow-for-local-dev-grpc-port-value branch from c37ec26 to b1bb914 Compare September 24, 2025 21:07
environment:
TASKBROKER_KAFKA_CLUSTER: "kafka-kafka-1:9093"
TASKBROKER_CREATE_MISSING_TOPICS: "true"
TASKBROKER_GRPC_PORT: "50055"
Copy link
Author

Choose a reason for hiding this comment

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

the only problem is getting the port to be set to 50055 for local development when running taskbroker standalone. Putting an EXPORT TASKBROKER_GRPC_PORT=50055 in either .envrc or a new .env file did not work

I think the current approach should work for the docker container served from devservices, but I think this needs to still work for local taskbroker running side by side without requiring manual intervention from the dev

not sure the best way to accomplish that

Copy link
Member

Choose a reason for hiding this comment

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

Changing the default port for locally run taskbroker would require a config file, or environment vars. We might want to try making all of these changes locally and seeing how colima handles the new port mapping. I suspect that ssh process we saw is how colima implements port forwarding and that getting the connections working can be attributed to running taskbroker outside of colima at the time.

RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl-dev libsqlite3-dev libsqlite3-0 openssl ca-certificates

EXPOSE 50051
EXPOSE 50055
Copy link
Author

Choose a reason for hiding this comment

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

expose both since IIRC the docker image is used for both cloudbuild (prod) and GHCR (devservices aka local)

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