Prevent test suites from being executed when their resources are missing#266
Conversation
|
I wouldn't use the |
There was a problem hiding this comment.
Pull Request Overview
This PR prevents test suites from being executed when their required resources are missing from the filesystem. It adds a validation check early in the test suite execution process and provides helpful guidance to users on how to resolve the issue.
- Adds resource directory validation before test suite execution
- Provides user-friendly error message with guidance on downloading resources
- Returns early to prevent execution when resources are unavailable
Comments suppressed due to low confidence (1)
fluster/test_suite.py:527
- The error message could be more specific about the download command. Consider providing the exact command like
fluster.py download --helpor the specific download command for this test suite if available.
f"Please download it first, run `fluster.py --help` for more information"
According to https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#type the choice of category is debatable. Even though |
badc376 to
bf795c7
Compare
The category choice is debatable, which is why I am raising this issue. You are definitely not refactoring code because you are changing the behaviour. I would like to understand why do you consider that you are not fixing a bug. A bug doesn't need to be something crashing the software, there are many types of bugs including functional or UX ones. Test suites can't be run if the resources of the test suites are not available because if they are run, this would result in the problems described in #232: the test suite fails and the failures is a cryptic error code caused by the missing resource. The current code is running the test suites even though the resources are not there: this is the actual bug. This PR is fixing this bug by doing the correct thing, not running them and advising the users on how to proceed. |
Let's just leave it at that and simply disagree. Even though i am not refactoring code, i am not fixing a bug either. So i'll just put |
bf795c7 to
62ddf8b
Compare
Also print out a message to guide the user on how to download test suites
resolves #232