forked from isaac-sim/IsaacLab
-
Notifications
You must be signed in to change notification settings - Fork 0
257 lines (226 loc) · 8.76 KB
/
daily-compatibility.yml
File metadata and controls
257 lines (226 loc) · 8.76 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md).
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
name: Backwards Compatibility Tests
on:
schedule:
# Run daily at 8 PM PST (4 AM UTC)
- cron: '0 4 * * *'
workflow_dispatch:
inputs:
isaacsim_version:
description: 'IsaacSim version image tag to test'
required: true
default: '4.5.0'
type: string
# Concurrency control to prevent parallel runs
concurrency:
group: compatibility-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
env:
NGC_API_KEY: ${{ secrets.NGC_API_KEY }}
ISAACSIM_BASE_IMAGE: ${{ vars.ISAACSIM_BASE_IMAGE || 'nvcr.io/nvidia/isaac-sim' }}
jobs:
setup-versions:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.set-versions.outputs.versions }}
steps:
- name: Set Isaac Sim Versions
id: set-versions
run: |
# Define all versions to test in one place
DEFAULT_VERSIONS='["4.5.0", "5.0.0"]'
if [ -n "${{ github.event.inputs.isaacsim_version }}" ]; then
# If a specific version is provided via workflow_dispatch, use only that
echo "versions=[\"${{ github.event.inputs.isaacsim_version }}\"]" >> $GITHUB_OUTPUT
else
# Otherwise, use all default versions
echo "versions=$DEFAULT_VERSIONS" >> $GITHUB_OUTPUT
fi
test-isaaclab-tasks-compat:
needs: setup-versions
runs-on: [self-hosted, gpu]
timeout-minutes: 180
continue-on-error: true
strategy:
matrix:
isaacsim_version: ${{ fromJson(needs.setup-versions.outputs.versions) }}
fail-fast: false
env:
CUDA_VISIBLE_DEVICES: all
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: all
CUDA_HOME: /usr/local/cuda
LD_LIBRARY_PATH: /usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
DOCKER_IMAGE_TAG: isaac-lab-compat:${{ github.ref_name }}-${{ github.sha }}-${{ matrix.isaacsim_version }}
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Build Docker Image
uses: ./.github/actions/docker-build
with:
image-tag: ${{ env.DOCKER_IMAGE_TAG }}
isaacsim-base-image: ${{ env.ISAACSIM_BASE_IMAGE }}
isaacsim-version: ${{ matrix.isaacsim_version }}
- name: Run IsaacLab Tasks Tests
uses: ./.github/actions/run-tests
with:
test-path: "tools"
result-file: "isaaclab-tasks-compat-report.xml"
container-name: "isaac-lab-tasks-compat-test-$$"
image-tag: ${{ env.DOCKER_IMAGE_TAG }}
pytest-options: ""
filter-pattern: "isaaclab_tasks"
- name: Copy All Test Results from IsaacLab Tasks Container
run: |
CONTAINER_NAME="isaac-lab-tasks-compat-test-$$"
if docker ps -a | grep -q $CONTAINER_NAME; then
echo "Copying all test results from IsaacLab Tasks container..."
docker cp $CONTAINER_NAME:/workspace/isaaclab/tests/isaaclab-tasks-compat-report.xml reports/ 2>/dev/null || echo "No test results to copy from IsaacLab Tasks container"
fi
- name: Upload IsaacLab Tasks Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: isaaclab-tasks-compat-results-${{ matrix.isaacsim_version }}
path: reports/isaaclab-tasks-compat-report.xml
retention-days: 7
compression-level: 9
test-general-compat:
needs: setup-versions
runs-on: [self-hosted, gpu]
timeout-minutes: 180
strategy:
matrix:
isaacsim_version: ${{ fromJson(needs.setup-versions.outputs.versions) }}
fail-fast: false
env:
CUDA_VISIBLE_DEVICES: all
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: all
CUDA_HOME: /usr/local/cuda
LD_LIBRARY_PATH: /usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
DOCKER_IMAGE_TAG: isaac-lab-compat:${{ github.ref_name }}-${{ github.sha }}-${{ matrix.isaacsim_version }}
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Build Docker Image
uses: ./.github/actions/docker-build
with:
image-tag: ${{ env.DOCKER_IMAGE_TAG }}
isaacsim-base-image: ${{ env.ISAACSIM_BASE_IMAGE }}
isaacsim-version: ${{ matrix.isaacsim_version }}
- name: Run General Tests
uses: ./.github/actions/run-tests
with:
test-path: "tools"
result-file: "general-tests-compat-report.xml"
container-name: "isaac-lab-general-compat-test-$$"
image-tag: ${{ env.DOCKER_IMAGE_TAG }}
pytest-options: ""
filter-pattern: "not isaaclab_tasks"
- name: Copy All Test Results from General Tests Container
run: |
CONTAINER_NAME="isaac-lab-general-compat-test-$$"
if docker ps -a | grep -q $CONTAINER_NAME; then
echo "Copying all test results from General Tests container..."
docker cp $CONTAINER_NAME:/workspace/isaaclab/tests/general-tests-compat-report.xml reports/ 2>/dev/null || echo "No test results to copy from General Tests container"
fi
- name: Upload General Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: general-tests-compat-results-${{ matrix.isaacsim_version }}
path: reports/general-tests-compat-report.xml
retention-days: 7
compression-level: 9
combine-compat-results:
needs: [test-isaaclab-tasks-compat, test-general-compat]
runs-on: [self-hosted, gpu]
if: always()
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: false
- name: Create Reports Directory
run: |
mkdir -p reports
- name: Download All Test Results
uses: actions/download-artifact@v4
with:
pattern: '*-compat-results-*'
path: reports/
merge-multiple: true
continue-on-error: true
- name: Combine All Test Results
uses: ./.github/actions/combine-results
with:
tests-dir: "reports"
output-file: "reports/combined-compat-results.xml"
- name: Upload Combined Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: daily-compat-${{ github.run_id }}-combined-test-results
path: reports/combined-compat-results.xml
retention-days: 30
compression-level: 9
- name: Report Test Results
uses: dorny/test-reporter@v1
if: always()
with:
name: IsaacLab Compatibility Test Results (${{ github.event_name }})
path: reports/combined-compat-results.xml
reporter: java-junit
max-annotations: '50'
report-title: "IsaacLab Compatibility Test Results - ${{ github.event_name }} - ${{ github.ref_name }}"
notify-compatibility-status:
needs: [setup-versions, combine-compat-results]
runs-on: [self-hosted, gpu]
if: always()
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: false
- name: Create Compatibility Report
run: |
TRIGGER_INFO="**Trigger:** ${{ github.event_name }}"
ISAACSIM_VERSIONS="${{ join(fromJson(needs.setup-versions.outputs.versions), ', ') }}"
echo "## Daily Backwards Compatibility Test Results" > compatibility-report.md
echo "" >> compatibility-report.md
echo "$TRIGGER_INFO" >> compatibility-report.md
echo "**IsaacSim Versions Tested:** $ISAACSIM_VERSIONS" >> compatibility-report.md
echo "**Branch:** ${{ github.ref_name }}" >> compatibility-report.md
echo "**Commit:** ${{ github.sha }}" >> compatibility-report.md
echo "**Run ID:** ${{ github.run_id }}" >> compatibility-report.md
echo "" >> compatibility-report.md
echo "### Test Status:" >> compatibility-report.md
echo "- Results: ${{ needs.combine-compat-results.result }}" >> compatibility-report.md
echo "" >> compatibility-report.md
echo "### Artifacts:" >> compatibility-report.md
echo "- [Combined Test Results](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> compatibility-report.md
echo "" >> compatibility-report.md
echo "---" >> compatibility-report.md
echo "*This report was generated automatically by the daily compatibility workflow.*" >> compatibility-report.md
- name: Upload Compatibility Report
uses: actions/upload-artifact@v4
if: always()
with:
name: compatibility-report-${{ github.run_id }}
path: compatibility-report.md
retention-days: 30