Skip to content

Commit

Permalink
Merge branch 'main' into refactor/tensorrt_common-API-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
amadeuszsz authored Dec 25, 2024
2 parents 2941f1f + 421ec7d commit b65f646
Show file tree
Hide file tree
Showing 33 changed files with 850 additions and 663 deletions.
111 changes: 0 additions & 111 deletions .github/actions/build-and-test-differential/action.yaml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/actions/evaluate-job-result/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Evaluate Job Result
description: Evaluates the result of a job and updates the summary.
inputs:
job_result:
description: Result of the job to evaluate (e.g., success, failure, skipped)
required: true
type: string
job_name:
description: Name of the job to evaluate
required: true
type: string
expected_results:
description: Comma-separated list of acceptable results (e.g., success,skipped)
required: true
type: string
outputs:
failed:
description: Indicates if the job failed
value: ${{ steps.evaluate.outputs.failed }}

runs:
using: composite
steps:
- name: Evaluate Job Result
id: evaluate
run: |
JOB_RESULT="${{ inputs.job_result }}"
IFS=',' read -ra EXPECTED <<< "${{ inputs.expected_results }}"
FAILED=false
for RESULT in "${EXPECTED[@]}"; do
if [[ "$JOB_RESULT" == "$RESULT" ]]; then
echo "- **${{ inputs.job_name }}:** "$JOB_RESULT" ✅" >> "$GITHUB_STEP_SUMMARY"
echo "failed=false" >> "$GITHUB_OUTPUT"
exit 0
fi
done
# If no expected result matched
echo "::error::${{ inputs.job_name }} failed. ❌"
echo "- **${{ inputs.job_name }}:** failed ❌" >> "$GITHUB_STEP_SUMMARY"
echo "failed=true" >> "$GITHUB_OUTPUT"
exit 1
shell: bash
3 changes: 0 additions & 3 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,3 @@
- tools/**/*
"component:vehicle":
- vehicle/**/*
"tag:require-cuda-build-and-test":
- perception/**/*
- sensing/**/*
Loading

0 comments on commit b65f646

Please sign in to comment.