Skip to content

Commit ba8fb2e

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 1667c2a commit ba8fb2e

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
@@ -994,18 +994,18 @@ jobs:
994994
working-directory: dev-packages/e2e-tests
995995

996996
- name: Copy to temp
997-
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ${{ runner.temp }}/test-application
997+
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ../tmp-test-application
998998
working-directory: dev-packages/e2e-tests
999999

10001000
- name: Build E2E app
1001-
working-directory: ${{ runner.temp }}/test-application
1001+
working-directory: dev-packages/tmp-test-application
10021002
timeout-minutes: 7
10031003
run: ${{ matrix.build-command || 'pnpm test:build' }}
10041004
env:
10051005
SENTRY_E2E_WORKSPACE_ROOT: ${{ github.workspace }}
10061006

10071007
- name: Run E2E test
1008-
working-directory: ${{ runner.temp }}/test-application
1008+
working-directory: dev-packages/tmp-test-application
10091009
timeout-minutes: 10
10101010
run: ${{ matrix.assert-command || 'pnpm test:assert' }}
10111011
env:
@@ -1106,16 +1106,16 @@ jobs:
11061106
working-directory: dev-packages/e2e-tests
11071107

11081108
- name: Copy to temp
1109-
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ${{ runner.temp }}/test-application
1109+
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ../tmp-test-application
11101110
working-directory: dev-packages/e2e-tests
11111111

11121112
- name: Build E2E app
1113-
working-directory: ${{ runner.temp }}/test-application
1113+
working-directory: dev-packages/tmp-test-application
11141114
timeout-minutes: 7
11151115
run: ${{ matrix.build-command || 'pnpm test:build' }}
11161116

11171117
- name: Run E2E test
1118-
working-directory: ${{ runner.temp }}/test-application
1118+
working-directory: dev-packages/tmp-test-application
11191119
timeout-minutes: 10
11201120
run: ${{ matrix.assert-command || 'pnpm test:assert' }}
11211121

.github/workflows/canary.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,16 @@ jobs:
173173
working-directory: dev-packages/e2e-tests
174174

175175
- name: Copy to temp
176-
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ${{ runner.temp }}/test-application
176+
run: yarn ci:copy-to-temp ./test-applications/${{ matrix.test-application }} ../tmp-test-application
177177
working-directory: dev-packages/e2e-tests
178178

179179
- name: Build E2E app
180-
working-directory: ${{ runner.temp }}/test-application
180+
working-directory: dev-packages/tmp-test-application
181181
timeout-minutes: 7
182182
run: yarn ${{ matrix.build-command }}
183183

184184
- name: Run E2E test
185-
working-directory: ${{ runner.temp }}/test-application
185+
working-directory: dev-packages/tmp-test-application
186186
timeout-minutes: 15
187187
run: yarn test:assert
188188

0 commit comments

Comments
 (0)