-
Notifications
You must be signed in to change notification settings - Fork 5
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
Shorten Node/Typescript test time #509
Comments
It would be interesting to see what exactly is taking so long within those builds. As far as I can see the logs are not showing timestamps in all the steps. Anyways, I'm wondering, if running a linter by default is a good idea. When I got it correctly it is running this line
which first installs eslint and then does the linting against the code. Both things definetly take some time. I see the following disadvantages with this behavior:
Don't get me wrong. Techniques for increasing code quality like linting is an important practice. But eslint is not the only way of achieving a good code quality. Tools like prettier for example can do code formatting and autofixing most of the usual linting issues. And there is SonarQube as well which analyzes code quality beyond the "usual" linting. BTW I have seen other places with tl;dr My proposal would be to detect the existance of a |
@cschweikert Excellent points! And while this plays into test time, I think the topic of linting in the context of the Node/Typescript task warrants its own issue and discussion. How about @henninggross @netzartist @cschweikert (and maybe others interested?) you get together and discuss how to move forward? I think a design proposal / ADR explaining the decision and the tradeoffs would be a good fit here. |
@cschweikert see also #419 (comment) regarding showing timestamps. |
* Use Javascript in some cases * Remove test cases not absolutely necessary * Disable SQ scan in all except one case Closes #509.
* Use Javascript in some cases * Remove test cases not absolutely necessary * Disable SQ scan in all except one case Closes #509.
* Use Javascript in some cases * Remove test cases not absolutely necessary * Disable SQ scan in all except one case Closes #509.
Currently, the Node/Typescript build task tests take over 11 minutes:
For an example, see e.g. https://github.com/opendevstack/ods-pipeline/runs/6113417907?check_suite_focus=true. Compared to a total test run time of 29 minutes, this takes too much time compared to the rest.
Could we maybe cut a test? Or shorten one?
Two concrete ideas I have:
FYI @henninggross @netzartist @cschweikert
The text was updated successfully, but these errors were encountered: