Skip to content

Commit 5f20c73

Browse files
committed
coverage_report add test_group name
1 parent e447d7e commit 5f20c73

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

.github/workflows/unit_tests_common.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ jobs:
263263
if [ "$COVERAGE_ENABLED" = "true" ]; then
264264
python3 -m coverage combine --keep 2>/dev/null || true
265265
python3 -m coverage json \
266-
-o "coverage-${{ inputs.platform }}-${{ inputs.device }}.json" \
266+
-o "coverage-${{ inputs.platform }}-${{ inputs.device }}-${{ matrix.test_group.name }}.json" \
267267
--include="transformer_engine/*" 2>/dev/null \
268268
|| echo "WARNING: No coverage data found"
269269
fi
@@ -276,31 +276,20 @@ jobs:
276276
uses: actions/upload-artifact@v4
277277
continue-on-error: true
278278
with:
279-
name: coverage-${{ inputs.platform }}-${{ inputs.device }}
279+
name: coverage-${{ inputs.platform }}-${{ inputs.device }}-${{ matrix.test_group.name }}
280280
path: |
281-
coverage-${{ inputs.platform }}-${{ inputs.device }}.json
282-
283-
- name: Check FlagCICD Reachability
284-
if: inputs.upload_coverage && matrix.test_group.test_type == 'unittest'
285-
id: check_flagcicd
286-
continue-on-error: true
287-
run: |
288-
if curl -sf --max-time 3 --connect-timeout 2 \
289-
"http://flagcicd-inner.flagos.net:8000/" -o /dev/null 2>/dev/null; then
290-
echo "reachable=true" >> $GITHUB_OUTPUT
291-
else
292-
echo "reachable=false" >> $GITHUB_OUTPUT
293-
echo "INFO: flagcicd-inner.flagos.net unreachable from this runner, skipping report upload"
294-
fi
281+
coverage-${{ inputs.platform }}-${{ inputs.device }}-${{ matrix.test_group.name }}.json
295282
296283
- name: Upload Coverage Report to FlagCICD
297-
if: inputs.upload_coverage && matrix.test_group.test_type == 'unittest' && steps.check_flagcicd.outputs.reachable == 'true'
284+
if: inputs.upload_coverage && matrix.test_group.test_type == 'unittest'
298285
uses: flagos-ai/FlagOps/actions/post-pytest-report@v2
299286
continue-on-error: true
287+
env:
288+
NO_PROXY: "flagcicd-inner.flagos.net"
300289
with:
301290
backend_url: 'http://flagcicd-inner.flagos.net:8000/metrics/'
302291
user_id: '000000000000000000'
303-
report_path: 'coverage-${{ inputs.platform }}-${{ inputs.device }}.json'
292+
report_path: 'coverage-${{ inputs.platform }}-${{ inputs.device }}-${{ matrix.test_group.name }}.json'
304293
fail_on_error: 'false'
305294

306295
# - name: Debug - keep container alive on failure

0 commit comments

Comments
 (0)