Skip to content
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

tests: added the run nested auto label to run spread condition #14586

Closed
wants to merge 1 commit into from

Conversation

maykathm
Copy link
Contributor

@maykathm maykathm commented Oct 8, 2024

The "Run Nested -auto-" tag wasn't running the spread tests. This adds that label to the run condition.

@maykathm maykathm added the Run Nested -auto- Label automatically added in case nested tests need to be executed label Oct 8, 2024
Copy link
Member

@olivercalder olivercalder left a comment

Choose a reason for hiding this comment

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

Nice catch, thanks for fixing this!

@@ -879,7 +879,7 @@ jobs:
done

- name: Run spread tests
if: "!contains(github.event.pull_request.labels.*.name, 'Skip spread') && ( !startsWith(matrix.group, 'nested-') || contains(github.event.pull_request.labels.*.name, 'Run nested') )"
if: "!contains(github.event.pull_request.labels.*.name, 'Skip spread') && ( !startsWith(matrix.group, 'nested-') || contains(github.event.pull_request.labels.*.name, 'Run nested') || contains(github.event.pull_request.labels.*.name, 'Run Nested -auto-'))"
Copy link
Collaborator

Choose a reason for hiding this comment

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

'Run Nested -auto-' is not being matched by contains(github.event.pull_request.labels.*.name, 'Run nested') ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not. I verified with a debug run that that condition is false in the case of Run Nested -auto-. Here's a run from the PR where I noticed the problem. The "Run Nested -auto-" tag had been added 3 commits prior and I verified with a debug run that the github runner did in fact pick up that label.

I believe in this case the "contains" function is a list contains not a string contains. If it serves double duty with the same call, then I would guess the problem to be a case problem "Nested" vs. "nested". I didn't actually check which of the two possibilities was the actual issue since it seemed easier to add the additional case.

@maykathm
Copy link
Contributor Author

No longer relevant after PR #14519

@maykathm maykathm closed this Nov 19, 2024
@maykathm maykathm deleted the fix-run-nested-auto branch November 19, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Run Nested -auto- Label automatically added in case nested tests need to be executed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants