You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove path parts from component label suffixes (#38622)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
To generate labels for all components, including those with paths longer
than 50 characters:
In the root Makefile, a phony target is created to generate the
.github/component_labels file, which contains the component paths and
their corresponding labels (shortened paths for those exceeding 50
characters by removing repeated patterns in the string). The file is
space-delimited.
In the build-and-test workflow, under the checks job, a step is added to
verify that the .github/component_labels file exists.
The scripts used in the workflows are adjusted to use the
.github/component_labels file as a reference for mappings between
component paths and their labels.
<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes#38527
Copy file name to clipboardExpand all lines: .github/workflows/build-and-test.yml
+4
Original file line number
Diff line number
Diff line change
@@ -220,6 +220,10 @@ jobs:
220
220
run: |
221
221
make gendistributions
222
222
git diff -s --exit-code || (echo 'Generated code is out of date, please run "make gendistributions" and commit the changes in this PR.' && exit 1)
223
+
- name: Gen labels
224
+
run: |
225
+
make genlabels
226
+
git diff -s --exit-code || (echo '.github/component_labels.txt is out of date, please run "make genlabels" and commit the changes in this PR.' && exit 1)
0 commit comments