Skip to content

Commit 2a868f3

Browse files
committed
TLS CI test failing - debugging
1 parent 5d14ef7 commit 2a868f3

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,16 @@ jobs:
206206
--headless &> ./devserver.log &
207207
208208
- name: Run Tests
209-
run: npm run test
209+
run: |
210+
mkdir /tmp/temporal-certs &&
211+
echo "$TEMPORAL_CLOUD_MTLS_TEST_CLIENT_CERT" > /tmp/temporal-certs/client.pem &&
212+
echo "$TEMPORAL_CLOUD_MTLS_TEST_CLIENT_KEY" > /tmp/temporal-certs/client.key &&
213+
wc /tmp/temporal-certs/client.pem /tmp/temporal-certs/client.key
214+
215+
echo $TEMPORAL_CLOUD_MTLS_TEST_TARGET_HOST
216+
echo $TEMPORAL_CLOUD_MTLS_TEST_NAMESPACE
217+
218+
npm run test
210219
env:
211220
RUN_INTEGRATION_TESTS: true
212221
REUSE_V8_CONTEXT: ${{ matrix.reuse-v8-context }}
@@ -254,10 +263,6 @@ jobs:
254263
TEMPORAL_CLIENT_KEY: ${{ secrets.TEMPORAL_CLIENT_KEY }}
255264
TEMPORAL_TASK_QUEUE: ${{ format('tssdk-ci-{0}-{1}-sample-hello-world-mtls-{2}-{3}', matrix.platform, matrix.node, github.run_id, github.run_attempt) }}
256265

257-
# We write the certs to disk because it serves the sample. Written into /tmp/temporal-certs
258-
TEMPORAL_CLIENT_CERT_PATH: ${{ steps.tmp-dir.outputs.dir }}/certs/client.pem
259-
TEMPORAL_CLIENT_KEY_PATH: ${{ steps.tmp-dir.outputs.dir }}/certs/client.key
260-
261266
- name: Destroy certs dir
262267
if: always()
263268
run: rm -rf ${{ steps.tmp-dir.outputs.dir }}/certs

.github/workflows/release.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,6 @@ jobs:
311311
TEMPORAL_CLIENT_CERT: ${{ secrets.TEMPORAL_CLIENT_CERT }}
312312
TEMPORAL_CLIENT_KEY: ${{ secrets.TEMPORAL_CLIENT_KEY }}
313313

314-
# We write the certs to disk because it serves the sample. Written into /tmp/temporal-certs
315-
TEMPORAL_CLIENT_CERT_PATH: ${{ steps.tmp-dir.outputs.dir }}/certs/client.pem
316-
TEMPORAL_CLIENT_KEY_PATH: ${{ steps.tmp-dir.outputs.dir }}/certs/client.key
317-
318314
- name: Test run a workflow (non-cloud)
319315
run: node scripts/test-example.js --work-dir "${{ runner.temp }}/example"
320316
shell: bash
@@ -334,10 +330,6 @@ jobs:
334330
TEMPORAL_CLIENT_KEY: ${{ secrets.TEMPORAL_CLIENT_KEY }}
335331
TEMPORAL_TASK_QUEUE: ${{ format('tssdk-ci-{0}-{1}-sample-hello-world-mtls-{2}-{3}', matrix.platform, matrix.node, github.run_id, github.run_attempt) }}
336332

337-
# We write the certs to disk because it serves the sample. Written into /tmp/temporal-certs
338-
TEMPORAL_CLIENT_CERT_PATH: ${{ steps.tmp-dir.outputs.dir }}/certs/client.pem
339-
TEMPORAL_CLIENT_KEY_PATH: ${{ steps.tmp-dir.outputs.dir }}/certs/client.key
340-
341333
- name: Destroy certs dir
342334
if: always()
343335
shell: bash

0 commit comments

Comments
 (0)