Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjoyo committed Feb 2, 2024
1 parent 2e64f7f commit 1e6195d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
run: poetry install --only main
-
name: Build
run: poetry install
run: poetry build
-
name: Upload Artifact
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -124,7 +124,8 @@ jobs:
run: |
brew config
brew install docker colima
colima start debug --arch aarch64
colima delete
colima start debug --arch aarch64 --ssh-agent
# For testcontainers to find the Colima socket
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
Expand Down
2 changes: 2 additions & 0 deletions bpm-ai-connectors-c8/bpm_ai_connectors_c8/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ async def create_channel(host=None, port=None):
os.environ.get("ZEEBE_CLIENT_CLOUD_CLUSTER-ID"),
os.environ.get("ZEEBE_CLIENT_CLOUD_REGION")
)
logger.info(f"Created channel to cloud cluster {os.environ.get('ZEEBE_CLIENT_CLOUD_CLUSTER-ID')}")
else:
if os.environ.get("ZEEBE_CLIENT_BROKER_GATEWAY-ADDRESS"):
host, port = os.environ.get("ZEEBE_CLIENT_BROKER_GATEWAY-ADDRESS").split(":")
channel = create_insecure_channel(
hostname=host,
port=port
)
logger.info(f"Created channel to local broker {host}:{port}")
return channel


Expand Down
2 changes: 1 addition & 1 deletion bpm-ai-connectors-c8/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def docker_runtime(zeebe_test_engine):
Runtime based on actual docker image with connectors and real feel engine wrapper.
"""
container = DockerContainer(DOCKER_IMAGE)
container.with_env("ZEEBE_CLIENT_BROKER_GATEWAY-ADDRESS", f"host.docker.internal:{zeebe_test_engine.engine_port}")
container.with_env("ZEEBE_CLIENT_BROKER_GATEWAY-ADDRESS", f"172.17.0.1:{zeebe_test_engine.engine_port}")
container.with_env("OPENAI_API_KEY", ensure_openai_key())
container.start()
wait_for_logs(container, "Starting connector worker.")
Expand Down

0 comments on commit 1e6195d

Please sign in to comment.