Skip to content

Commit b0d539e

Browse files
committed
TLS CI test failing - fixed
1 parent 4f92c68 commit b0d539e

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,7 @@ jobs:
206206
--headless &> ./devserver.log &
207207
208208
- name: Run Tests
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
209+
run: npm run test
219210
env:
220211
RUN_INTEGRATION_TESTS: true
221212
REUSE_V8_CONTEXT: ${{ matrix.reuse-v8-context }}
@@ -263,6 +254,9 @@ jobs:
263254
TEMPORAL_CLIENT_KEY: ${{ secrets.TEMPORAL_CLIENT_KEY }}
264255
TEMPORAL_TASK_QUEUE: ${{ format('tssdk-ci-{0}-{1}-sample-hello-world-mtls-{2}-{3}', matrix.platform, matrix.node, github.run_id, github.run_attempt) }}
265256

257+
TEMPORAL_CLIENT_CERT_PATH: ${{ steps.tmp-dir.outputs.dir }}/certs/client.pem
258+
TEMPORAL_CLIENT_KEY_PATH: ${{ steps.tmp-dir.outputs.dir }}/certs/client.key
259+
266260
- name: Destroy certs dir
267261
if: always()
268262
run: rm -rf ${{ steps.tmp-dir.outputs.dir }}/certs

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,23 +317,24 @@ jobs:
317317
if: matrix.server == 'cli'
318318

319319
- name: Test run a workflow (cloud)
320+
if: matrix.server == 'cloud'
320321
run: |
321322
# The required environment variables must be present for releases (this must be run from the official repo)
322323
node scripts/create-certs-dir.js ${{ steps.tmp-dir.outputs.dir }}/certs
323324
node scripts/test-example.js --work-dir "${{ runner.temp }}/example"
324-
if: matrix.server == 'cloud'
325+
shell: bash
325326
env:
326327
# These env vars are used by the hello-world-mtls sample
327328
TEMPORAL_ADDRESS: ${{ vars.TEMPORAL_CLIENT_NAMESPACE }}.tmprl.cloud:7233
328329
TEMPORAL_NAMESPACE: ${{ vars.TEMPORAL_CLIENT_NAMESPACE }}
329-
TEMPORAL_CLIENT_CERT: ${{ secrets.TEMPORAL_CLIENT_CERT }}
330-
TEMPORAL_CLIENT_KEY: ${{ secrets.TEMPORAL_CLIENT_KEY }}
330+
TEMPORAL_CLIENT_CERT_PATH: ${{ runner.temp }}/certs/client.pem
331+
TEMPORAL_CLIENT_KEY_PATH: ${{ runner.temp }}/certs/client.key
331332
TEMPORAL_TASK_QUEUE: ${{ format('tssdk-ci-{0}-{1}-sample-hello-world-mtls-{2}-{3}', matrix.platform, matrix.node, github.run_id, github.run_attempt) }}
332333

333334
- name: Destroy certs dir
334335
if: always()
335336
shell: bash
336-
run: rm -rf ${{ steps.tmp-dir.outputs.dir }}/certs
337+
run: rm -rf ${{ runner.temp }}/certs
337338
continue-on-error: true
338339

339340
conventions:

packages/test/src/test-temporal-cloud.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ test('Can connect to Temporal Cloud using mTLS', async (t) => {
1616
return;
1717
}
1818

19-
console.log(
20-
`Connecting to Temporal Cloud with mTLS: ${address}__${namespace}__${clientCert?.length}__${clientKey?.length}`
21-
);
22-
2319
const connection = await Connection.connect({
2420
address,
2521
tls: {
@@ -77,8 +73,6 @@ test('Can connect to Temporal Cloud using API Keys', async (t) => {
7773
return;
7874
}
7975

80-
console.log(`Connecting to Temporal Cloud with API Key: ${address}__${namespace}__${apiKey?.length}`);
81-
8276
const connection = await Connection.connect({
8377
address,
8478
apiKey,

0 commit comments

Comments
 (0)