Skip to content

fix: build-scripts/get_labels_expr.py needs to output "true" in case no labels are found (3.24)#2218

Draft
craigcomstock wants to merge 1 commit intocfengine:3.24.xfrom
craigcomstock:ent-14025/3.24
Draft

fix: build-scripts/get_labels_expr.py needs to output "true" in case no labels are found (3.24)#2218
craigcomstock wants to merge 1 commit intocfengine:3.24.xfrom
craigcomstock:ent-14025/3.24

Conversation

@craigcomstock
Copy link
Copy Markdown
Contributor

e.g. when a build will not include exotics a partial expression is pre-pended to the output of this script

EXOTIX_CONFIGURATIONS_FILTER: (!label.contains("mingw") && !label.contains("HUB") && !label.contains("hpux") && !label.contains("aix") && !label.contains("solaris")) && \

so a true at the end of that expression will be a no-op and appropriate.

Ticket: ENT-14025
Changelog: none
(cherry picked from commit 810e1f9)

…no labels are found

e.g. when a build will not include exotics a partial expression is pre-pended to the output of this script

EXOTIX_CONFIGURATIONS_FILTER: (!label.contains("mingw") && !label.contains("_HUB_") && !label.contains("hpux") && !label.contains("aix") && !label.contains("solaris")) && \

so a true at the end of that expression will be a no-op and appropriate.

Ticket: ENT-14025
Changelog: none
(cherry picked from commit 810e1f9)

if len(labels_to_run) != 0:
if len(labels_to_run) == 0:
# if no labels are found we print true to be a no-op in an expression that likely includes other elements like no exotics or specific labels
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

might be nice to have a concrete example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants