Skip to content

enhance tagbot workflow to add toolchain labels#24439

Merged
Crivella merged 5 commits intoeasybuilders:developfrom
Thyre:workflow-add-toolchain-labels
Nov 5, 2025
Merged

enhance tagbot workflow to add toolchain labels#24439
Crivella merged 5 commits intoeasybuilders:developfrom
Thyre:workflow-add-toolchain-labels

Conversation

@Thyre
Copy link
Copy Markdown
Collaborator

@Thyre Thyre commented Nov 3, 2025

Expand our label job to automatically add toolchain labels to PRs.
This covers both added and changed EasyConfigs.

The labeling only covers toolchains also checked in our test suite, and only GCC + Intel for now.

Generally, this should allow us to better keep track of PRs and their touched toolchains, and filter more easily by using respective labels. Relying on PR titles might not always work, since not everyone is using eb --new-pr.

For a test, see: Thyre#1

Thyre added 3 commits November 3, 2025 10:19
Similar to our existing workflow for labeling, add toolchain labels
to created PRs by checking for the file names and match this against
known toolchains.

This requires manual updating the workflow once we establish new
toolchains, similar to our test steps. This also doesn't cover
NVHPC & LLVM yet, since the checked strings include explicit
toolchain names to reduce incorrect labels.

Signed-off-by: Jan André Reuter <[email protected]>
Signed-off-by: Jan André Reuter <[email protected]>
Signed-off-by: Jan André Reuter <[email protected]>
@Thyre Thyre added the workflow label Nov 3, 2025
@Thyre Thyre added this to the 5.x milestone Nov 3, 2025
@Thyre
Copy link
Copy Markdown
Collaborator Author

Thyre commented Nov 3, 2025

Might require a bit more testing, but looked good for the test PR I did...

Micket
Micket previously approved these changes Nov 4, 2025
Copy link
Copy Markdown
Contributor

@Micket Micket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. do you have any reason to believe this isn't working correctly?

@Thyre
Copy link
Copy Markdown
Collaborator Author

Thyre commented Nov 4, 2025

lgtm. do you have any reason to believe this isn't working correctly?

Nothing in particular, no. All the labels are present (and would get created if they were not, as far as I understand) and the tests looked good so far. I only tested a few selections, but those should theoretically be sufficient enough.

I couldn't think of some EasyConfig we already have that breaks the labeling, but this is a non-critical component. If something is wrong, we can still revert or fix this.

Copy link
Copy Markdown
Contributor

@Crivella Crivella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would not say required but suggestions to improve readability

Comment thread .github/workflows/tagbot.py Outdated
Comment thread .github/workflows/tagbot.py
Comment thread .github/workflows/tagbot.py Outdated
Comment thread .github/workflows/tagbot.py Outdated
Comment on lines +168 to +171
for gcc_version in gcc_tc_gen_map.keys():
if f"-GCCcore-{gcc_version}" in file_path or f"-GCC-{gcc_version}" in file_path:
toolchain_present[gcc_tc_gen_map[gcc_version]] = True
continue
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for gcc_version in gcc_tc_gen_map.keys():
if f"-GCCcore-{gcc_version}" in file_path or f"-GCC-{gcc_version}" in file_path:
toolchain_present[gcc_tc_gen_map[gcc_version]] = True
continue
for gcc_version, tc_version in gcc_tc_gen_map.items():
if f"-GCCcore-{gcc_version}" in file_path or f"-GCC-{gcc_version}" in file_path:
toolchain_present[tc_version] = True
continue

Comment thread .github/workflows/tagbot.py Outdated
@Thyre
Copy link
Copy Markdown
Collaborator Author

Thyre commented Nov 4, 2025

Will add them tomorrow, but I they‘re certainly a good idea.

Co-authored-by: crivella <[email protected]>
Signed-off-by: Jan André Reuter <[email protected]>
Signed-off-by: Jan André Reuter <[email protected]>
@Thyre
Copy link
Copy Markdown
Collaborator Author

Thyre commented Nov 5, 2025

Labeling still seems to work fine, as tested by removing all the labels and re-running the CI in Thyre#1

@Crivella Crivella modified the milestones: 5.x, next release (5.2.0?) Nov 5, 2025
Copy link
Copy Markdown
Contributor

@Crivella Crivella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Crivella
Copy link
Copy Markdown
Contributor

Crivella commented Nov 5, 2025

Going in, thanks @Thyre!

@Crivella Crivella merged commit 4e8b40b into easybuilders:develop Nov 5, 2025
8 checks passed
@boegel boegel changed the title Workflow: Add toolchain labels enhance tagbot workflow to add toolchain labels Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants