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

mantle/kola: fix scope on denylisted variable #3512

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

dustymabe
Copy link
Member

This variable should have been scoped inside the loop. Outside the loop the true value can carry forward and get applied to tests that actually aren't denylisted.

Fixes ac9bd49.

This variable should have been scoped inside the loop. Outside the loop
the `true` value can carry forward and get applied to tests that
actually aren't denylisted.

Fixes ac9bd49.
@dustymabe dustymabe enabled auto-merge (rebase) June 15, 2023 20:51
r := make(map[string]*register.Test)
for name, t := range tests {
// Drop anything which is denylisted directly or by pattern
denylisted := false
Copy link
Member

Choose a reason for hiding this comment

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

Good catch! The original code was running var denylisted bool each loop iteration. I missed that in the original PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep. Copy and paste got me in trouble. I didn't pay enough attention to detail and my local tests looked good, but they weren't comprehensive enough.

Copy link
Member

@marmijo marmijo left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci
Copy link

openshift-ci bot commented Jun 16, 2023

@dustymabe: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/rhcos 30b7ac3 link true /test rhcos

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@dustymabe dustymabe disabled auto-merge June 16, 2023 12:49
@dustymabe
Copy link
Member Author

prow timed out at 4h - ignoring.

@dustymabe dustymabe merged commit 1981a4f into coreos:main Jun 16, 2023
@dustymabe dustymabe deleted the dusty-fix-var-scope branch June 16, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants