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

[BUG] fix test_run_test_for_class logic check if ONLY_CHANGED_MODULES flag is False and all estimator dependencies are present #6383

Merged
merged 1 commit into from
May 4, 2024

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented May 3, 2024

This fixes an unreported bug pointed out by @yarnabrina in the test test_run_test_for_class, in the check for the logic of run_test_for_class returning an attribution of its test yes/no flag to a reason.

If ONLY_CHANGED_MODULES flag is False and all estimator dependencies are present, the reason returned should be True_run_always, but the test checks incorrectly for another positive reason.

This is fixed - a bug with the test, not with run_test_for_class - as it did not take into account properly the combination of ONLY_CHANGED_MODULES = False and all dependencies present, which in our CI occurs only in test_all.

@fkiraly fkiraly added module:tests test framework functionality - only framework, excl specific tests bugfix Fixes a known bug or removes unintended behavior labels May 3, 2024
@fkiraly
Copy link
Collaborator Author

fkiraly commented May 3, 2024

to be safe, we should probably run a test_all from this branch, because that specifically has the condition.

@fkiraly fkiraly merged commit 49d7f32 into main May 4, 2024
53 checks passed
@fkiraly fkiraly deleted the fix-test_run_test_for_class branch May 4, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a known bug or removes unintended behavior module:tests test framework functionality - only framework, excl specific tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants