Skip to content

Commit 9ad5f70

Browse files
mydeaclaude
andcommitted
fix(ci): Use workspace-relative path for E2E temp directory
runner.temp resolves to the host path (/home/runner/work/_temp) but inside a container the equivalent path is /__w/_temp. The copy step writes to the host path which doesn't exist inside the container. Use a workspace-relative path (dev-packages/tmp-test-application) instead, which is inside the mounted workspace volume and accessible from both host and container. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fb7a83b commit 9ad5f70

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,18 +1001,18 @@ jobs:
10011001
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION: ${{ steps.versions.outputs.node }}
10021002

10031003
- name: Copy to temp
1004-
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ${{ runner.temp }}/test-application
1004+
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ../tmp-test-application
10051005
working-directory: dev-packages/e2e-tests
10061006

10071007
- name: Build E2E app
1008-
working-directory: ${{ runner.temp }}/test-application
1008+
working-directory: dev-packages/tmp-test-application
10091009
timeout-minutes: 7
10101010
run: ${{ matrix.build-command || 'pnpm test:build' }}
10111011
env:
10121012
SENTRY_E2E_WORKSPACE_ROOT: ${{ github.workspace }}
10131013

10141014
- name: Run E2E test
1015-
working-directory: ${{ runner.temp }}/test-application
1015+
working-directory: dev-packages/tmp-test-application
10161016
timeout-minutes: 10
10171017
run: ${{ matrix.assert-command || 'pnpm test:assert' }}
10181018
env:
@@ -1120,16 +1120,16 @@ jobs:
11201120
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION: ${{ steps.versions.outputs.node }}
11211121

11221122
- name: Copy to temp
1123-
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ${{ runner.temp }}/test-application
1123+
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ../tmp-test-application
11241124
working-directory: dev-packages/e2e-tests
11251125

11261126
- name: Build E2E app
1127-
working-directory: ${{ runner.temp }}/test-application
1127+
working-directory: dev-packages/tmp-test-application
11281128
timeout-minutes: 7
11291129
run: ${{ matrix.build-command || 'pnpm test:build' }}
11301130

11311131
- name: Run E2E test
1132-
working-directory: ${{ runner.temp }}/test-application
1132+
working-directory: dev-packages/tmp-test-application
11331133
timeout-minutes: 10
11341134
run: ${{ matrix.assert-command || 'pnpm test:assert' }}
11351135

.github/workflows/canary.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,16 +180,16 @@ jobs:
180180
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION: ${{ steps.versions.outputs.node }}
181181

182182
- name: Copy to temp
183-
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ${{ runner.temp }}/test-application
183+
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ../tmp-test-application
184184
working-directory: dev-packages/e2e-tests
185185

186186
- name: Build E2E app
187-
working-directory: ${{ runner.temp }}/test-application
187+
working-directory: dev-packages/tmp-test-application
188188
timeout-minutes: 7
189189
run: yarn ${{ matrix.build-command }}
190190

191191
- name: Run E2E test
192-
working-directory: ${{ runner.temp }}/test-application
192+
working-directory: dev-packages/tmp-test-application
193193
timeout-minutes: 15
194194
run: yarn test:assert
195195

0 commit comments

Comments
 (0)