Unverified Commit 31b78e96 authored by nv-nmailhot's avatar nv-nmailhot Committed by GitHub
Browse files

feat: add github actions metrics upload for build image jobs (#3260)


Signed-off-by: default avatarnv-nmailhot <nmailhot@nvidia.com>
Co-authored-by: default avatarAnant Sharma <anants@nvidia.com>

Covers queue time and duration metrics
parent 81162dfe
......@@ -185,3 +185,33 @@ jobs:
with:
image_tag: ${{ steps.build-image.outputs.image_tag }}
pytest_marks: "e2e and trtllm_marker and gpu_1 and not slow"
# Upload metrics for this workflow and all its jobs
upload-workflow-metrics:
name: Upload Workflow Metrics
runs-on: gitlab
if: always() # Always run, even if other jobs fail
needs: [backend-status-check] # Wait for the status check which waits for all build jobs
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Upload Complete Workflow Metrics
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WORKFLOW_INDEX: ${{ secrets.WORKFLOW_INDEX }}
JOB_INDEX: ${{ secrets.JOB_INDEX }}
STEPS_INDEX: ${{ secrets.STEPS_INDEX }}
run: |
# Run the enhanced metrics upload script
python3 .github/workflows/upload_complete_workflow_metrics.py
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment