Skip to content

Commit 786c505

Browse files
authored
Added retries of failed jobs in CI e2e checks (#19296)
* Draft update * add build * Rm deprecated axios types * Refactor: Moved helpers to separate files + add common config * Make config readonly * Fix _generated dir check * fix rerun call * Add content type * Add "canceling" state * Fix get of build configs * Update logs * Update pipeline run steps * Add cache for fetch pipelines
1 parent df65cb4 commit 786c505

File tree

15 files changed

+536
-200
lines changed

15 files changed

+536
-200
lines changed

ci/ci-test-tasks/canary-tests-v2.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,21 @@ jobs:
2828
- name: tasks
2929
value: $[dependencies.detect_changes.outputs['detect.TASKS']]
3030
pool:
31-
vmImage: ubuntu-20.04
31+
vmImage: ubuntu-latest
3232
steps:
33+
- task: NodeTool@0
34+
displayName: Use Node 20.x
35+
inputs:
36+
versionSpec: 20.x
37+
3338
- script: |
34-
npm i axios
35-
displayName: npm i axios
39+
cd ./ci/ci-test-tasks/test-and-verify-v2
40+
npm i
41+
npm run build
42+
displayName: 'Build test pipelines runner'
43+
3644
- script: |
37-
echo $(tasks)
38-
node ./ci/ci-test-tasks/test-and-verify-v2.js $(ADOToken) $(ADOUrl) $(System.TeamProject) $(tasks)
45+
echo "Tasks to test: $(tasks)"
46+
node ./ci/ci-test-tasks/test-and-verify-v2 $(ADOToken) $(ADOUrl) $(System.TeamProject) $(tasks)
3947
displayName: 'Run test pipelines and verify results'
4048
failOnStderr: true

ci/ci-test-tasks/schedules.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,19 @@ jobs:
3434
pool:
3535
vmImage: ubuntu-latest
3636
steps:
37+
- task: NodeTool@0
38+
displayName: Use Node 20.x
39+
inputs:
40+
versionSpec: 20.x
41+
42+
- script: |
43+
cd ./ci/ci-test-tasks/test-and-verify-v2
44+
npm i
45+
npm run build
46+
displayName: 'Build test pipelines runner'
47+
3748
- bash: |
38-
npm i axios
39-
displayName: npm i axios
40-
- bash: |
41-
echo $(tasks)
42-
node ./ci/ci-test-tasks/test-and-verify-v2.js $(ADOToken) $(ADOUrl) $(System.TeamProject) $(tasks)
49+
echo "Tasks to test: $(tasks)"
50+
node ./ci/ci-test-tasks/test-and-verify-v2 $(ADOToken) $(ADOUrl) $(System.TeamProject) $(tasks)
4351
displayName: Run test pipelines and verify results
4452
failOnStderr: true

ci/ci-test-tasks/test-and-verify-v2.js

Lines changed: 0 additions & 190 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require(__dirname + '/dist/index.js')

ci/ci-test-tasks/test-and-verify-v2/package-lock.json

Lines changed: 141 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)