Skip to content

[libc++] [WIP] Add metrics collection for libc++ premerge testing. #152801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .ci/metrics/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
# Lists the Github workflows we want to track. Maps the Github job name to
# the metric name prefix in grafana.
# This metric name is also used as a key in the job->name map.
GITHUB_WORKFLOW_TO_TRACK = {"CI Checks": "github_llvm_premerge_checks"}
GITHUB_WORKFLOW_TO_TRACK = {
"CI Checks": "github_llvm_premerge_checks",
"Build and Test libc++": "github_libc++_premerge_checks",
}

# Lists the Github jobs to track for a given workflow. The key is the stable
# name (metric name) of the workflow (see GITHUB_WORKFLOW_TO_TRACK).
Expand All @@ -38,7 +41,12 @@
"github_llvm_premerge_checks": {
"Build and Test Linux": "premerge_linux",
"Build and Test Windows": "premerge_windows",
}
},
"github_libc++_premerge_checks": {
"libc++ Stage1 Testing": "premerge_libcxx_stage1",
"libc++ Stage2 Testing": "premerge_libcxx_stage2",
"libc++ Stage3 Testing": "premerge_libcxx_stage3",
},
}

# The number of workflows to pull when sampling Github workflows.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/libcxx-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ concurrency:

jobs:
stage1:
name: libc++ Stage1 Testing
if: github.repository_owner == 'llvm'
runs-on: llvm-premerge-libcxx-runners
continue-on-error: false
Expand Down Expand Up @@ -72,6 +73,7 @@ jobs:
**/CMakeOutput.log
**/crash_diagnostics/*
stage2:
name: libc++ Stage2 Testing
if: github.repository_owner == 'llvm'
runs-on: llvm-premerge-libcxx-runners
needs: [ stage1 ]
Expand Down Expand Up @@ -117,6 +119,7 @@ jobs:
**/CMakeOutput.log
**/crash_diagnostics/*
stage3:
name: libc++ Stage3 Testing
if: github.repository_owner == 'llvm'
needs: [ stage2 ]
continue-on-error: false
Expand Down
Loading