-
Notifications
You must be signed in to change notification settings - Fork 3k
68 lines (60 loc) · 2.31 KB
/
Copy pathe2e-main-retry.yaml
File metadata and controls
68 lines (60 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: E2E / Main Retry
run-name: E2E retry evidence for source run ${{ github.event.workflow_run.id }} attempt ${{ github.event.workflow_run.run_attempt }}
on:
workflow_run:
workflows:
- E2E
types:
- completed
permissions: {}
jobs:
evaluate:
if: >-
${{
github.run_attempt == 1 &&
github.repository == 'NVIDIA/NemoClaw' &&
github.event.workflow_run.status == 'completed' &&
github.event.workflow_run.event == 'push' &&
github.event.workflow_run.path == '.github/workflows/e2e.yaml' &&
github.event.workflow_run.display_title == 'E2E main' &&
github.event.workflow_run.head_branch == 'main' &&
github.event.workflow_run.head_repository.full_name == 'NVIDIA/NemoClaw' &&
github.event.workflow_run.run_attempt >= 1 &&
github.event.workflow_run.run_attempt <= 3
}}
concurrency:
group: e2e-main-retry-${{ github.event.workflow_run.id }}
cancel-in-progress: false
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: read
contents: read
steps:
- name: Checkout trusted retry controller
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.workflow_sha }}
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "22"
- name: Evaluate main E2E retry
env:
GITHUB_TOKEN: ${{ github.token }}
RETRY_EVIDENCE_PATH: ${{ runner.temp }}/e2e-main-retry-evidence.json
SOURCE_RUN_ID: ${{ github.event.workflow_run.id }}
run: >-
node --experimental-strip-types --no-warnings
tools/e2e/main-run-retry.mts
- name: Upload retry evidence
if: ${{ always() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: e2e-main-retry-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}
path: ${{ runner.temp }}/e2e-main-retry-evidence.json
if-no-files-found: warn
retention-days: 14