Skip to content

Commit 02f8962

Browse files
committed
tmp: test logging timed out deploys
1 parent d3d353d commit 02f8962

File tree

3 files changed

+13
-289
lines changed

3 files changed

+13
-289
lines changed

.github/workflows/run-tests.yml

Lines changed: 0 additions & 281 deletions
This file was deleted.

.github/workflows/test-e2e.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ env:
2828
DATADOG_TRACE_NEXTJS_TEST: true
2929
DATADOG_API_KEY: foo
3030
TEST_CONCURRENCY: 2
31-
NEXT_E2E_TEST_TIMEOUT: 300000
31+
NEXT_E2E_TEST_TIMEOUT: 120000
3232
NEXT_TELEMETRY_DISABLED: 1
3333
NEXT_SKIP_NATIVE_POSTINSTALL: 1
3434
TURBO_API: ${{ secrets.TURBO_API }}
@@ -56,16 +56,16 @@ jobs:
5656
run: |
5757
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
5858
VERSION_SELECTORS=[${{ github.event.inputs.versions }}]
59-
echo "group=[1, 2, 3, 4, 5, 6, 7, 8]" >> $GITHUB_OUTPUT
60-
echo "total=8" >> $GITHUB_OUTPUT
59+
echo "group=[1]" >> $GITHUB_OUTPUT
60+
echo "total=1" >> $GITHUB_OUTPUT
6161
elif [ "${{ github.event_name }}" == "pull_request" ]; then
6262
VERSION_SELECTORS=[\"latest\"]
63-
echo "group=[1, 2, 3, 4, 5, 6, 7, 8]" >> $GITHUB_OUTPUT
64-
echo "total=8" >> $GITHUB_OUTPUT
63+
echo "group=[1]" >> $GITHUB_OUTPUT
64+
echo "total=1" >> $GITHUB_OUTPUT
6565
else
6666
VERSION_SELECTORS=[\"latest\",\"canary\"]
67-
echo "group=[1, 2, 3, 4, 5, 6, 7, 8]" >> $GITHUB_OUTPUT
68-
echo "total=8" >> $GITHUB_OUTPUT
67+
echo "group=[1]" >> $GITHUB_OUTPUT
68+
echo "total=1" >> $GITHUB_OUTPUT
6969
fi
7070
7171
VERSION_SPEC="["
@@ -198,7 +198,7 @@ jobs:
198198
NODE_ENV: production
199199
NEXT_EXTERNAL_TESTS_FILTERS: ${{ steps.test-filters.outputs.filters }}
200200
NEXT_TEST_SKIP_RETRY_MANIFEST: ${{ steps.test-filters.outputs.skip-retry }}
201-
run: node run-tests.js -g ${{ matrix.group }}/${{ needs.setup.outputs.total }} -c ${TEST_CONCURRENCY} --type e2e
201+
run: node run-tests.js -g ${{ matrix.group }}/${{ needs.setup.outputs.total }} -c ${TEST_CONCURRENCY} --type e2e --test-pattern test/e2e/app-dir/app/index.test.ts
202202
working-directory: ${{ env.next-path }}
203203

204204
- name: Upload Test Results

tests/netlify-deploy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ export class NextDeployInstance extends NextInstance {
155155

156156
const deployRes = await deployResPromise
157157

158+
// tmp - force timeout
159+
await new Promise((resolve) => {
160+
setTimeout(resolve, 120_000)
161+
})
162+
158163
if (deployRes.exitCode !== 0) {
159164
throw new Error(
160165
`Failed to deploy project (${deployRes.exitCode}) ${deployRes.stdout} ${deployRes.stderr} `,

0 commit comments

Comments
 (0)