From a32219cccb9f15ce0a02cc3cb0435505b1a01fac Mon Sep 17 00:00:00 2001 From: mrkaye97 Date: Tue, 25 Nov 2025 11:48:23 -0500 Subject: [PATCH] Revert "debug: ci" This reverts commit 670016241388107a0b01c9c777eff9aca54123ac. --- .github/workflows/sdk-python.yml | 79 ++++++++++++++++---------------- 1 file changed, 39 insertions(+), 40 deletions(-) diff --git a/.github/workflows/sdk-python.yml b/.github/workflows/sdk-python.yml index ec0b2d1dc..bf893460f 100644 --- a/.github/workflows/sdk-python.yml +++ b/.github/workflows/sdk-python.yml @@ -67,50 +67,50 @@ jobs: steps: - uses: actions/checkout@v5 - # - name: Install Protoc - # uses: arduino/setup-protoc@v3 - # with: - # version: '25.1' - # repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Install Protoc + uses: arduino/setup-protoc@v3 + with: + version: '25.1' + repo-token: ${{ secrets.GITHUB_TOKEN }} - # - name: Install Task - # uses: arduino/setup-task@v2 - # with: - # repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Install Task + uses: arduino/setup-task@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - # - name: Setup Go - # uses: actions/setup-go@v6 - # with: - # go-version: '1.24' + - name: Setup Go + uses: actions/setup-go@v6 + with: + go-version: '1.24' - # - name: Start Docker dependencies - # working-directory: . - # run: docker compose up -d + - name: Start Docker dependencies + working-directory: . + run: docker compose up -d - # - name: Generate - # working-directory: . - # run: | - # export DATABASE_URL="postgresql://hatchet:hatchet@127.0.0.1:5431/hatchet" - # go run ./cmd/hatchet-migrate - # task generate-go + - name: Generate + working-directory: . + run: | + export DATABASE_URL="postgresql://hatchet:hatchet@127.0.0.1:5431/hatchet" + go run ./cmd/hatchet-migrate + task generate-go - # - name: Setup - # working-directory: . - # run: | - # export SEED_DEVELOPMENT=true - # export SERVER_PORT=8080 - # export SERVER_URL=http://localhost:8080 - # export SERVER_AUTH_COOKIE_DOMAIN=localhost - # export SERVER_AUTH_COOKIE_INSECURE=true - # export SERVER_DEFAULT_ENGINE_VERSION=V1 - # export SERVER_MSGQUEUE_RABBITMQ_URL="amqp://user:password@localhost:5672/" + - name: Setup + working-directory: . + run: | + export SEED_DEVELOPMENT=true + export SERVER_PORT=8080 + export SERVER_URL=http://localhost:8080 + export SERVER_AUTH_COOKIE_DOMAIN=localhost + export SERVER_AUTH_COOKIE_INSECURE=true + export SERVER_DEFAULT_ENGINE_VERSION=V1 + export SERVER_MSGQUEUE_RABBITMQ_URL="amqp://user:password@localhost:5672/" - # go run ./cmd/hatchet-admin quickstart + go run ./cmd/hatchet-admin quickstart - # go run ./cmd/hatchet-engine --config ./generated/ > engine.log 2>&1 & - # go run ./cmd/hatchet-api --config ./generated/ > api.log 2>&1 & + go run ./cmd/hatchet-engine --config ./generated/ > engine.log 2>&1 & + go run ./cmd/hatchet-api --config ./generated/ > api.log 2>&1 & - # sleep 30 + sleep 30 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6 with: @@ -131,10 +131,9 @@ jobs: - name: Generate Env File working-directory: . - env: - STAGING_TOKEN: ${{ secrets.CI_STAGING_TOKEN }} run: | - echo "HATCHET_CLIENT_TOKEN=$STAGING_TOKEN" >> $GITHUB_ENV + echo "HATCHET_CLIENT_TOKEN=$(go run ./cmd/hatchet-admin token create --config ./generated/ --tenant-id 707d0855-80ab-4e1f-a156-f1c4546cbf52)" >> $GITHUB_ENV + echo "HATCHET_CLIENT_TLS_ROOT_CA_FILE=../../certs/ca.cert" >> $GITHUB_ENV echo "HATCHET_CLIENT_WORKER_HEALTHCHECK_ENABLED=True" >> $GITHUB_ENV - name: Set HATCHET_CLIENT_NAMESPACE @@ -147,7 +146,7 @@ jobs: run: | echo "Using HATCHET_CLIENT_NAMESPACE: $HATCHET_CLIENT_NAMESPACE" - poetry run pytest -s -vvv --maxfail=5 --capture=no --retries 3 --retry-delay 2 + poetry run pytest -s -vvv --maxfail=5 --capture=no --retries 3 --retry-delay 2 -n auto - name: Upload engine logs if: always()