8000 Fix Base Testsuite timeouts on Windows by Pepo48 · Pull Request #19744 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Fix Base Testsuite timeouts on Windows - #19744

Merged
vmuzikar merged 2 commits into
keycloak:mainfrom
Pepo48:fix-win-base-tests-timeout
Apr 25, 2023
Merged

vmuzikar merged 2 commits into
keycloak:mainfrom
Pepo48:fix-win-base-tests-timeout

Conversation

@Pepo48
@Pepo48 Pepo48 commented Apr 15, 2023 •
Copy link
Copy Markdown
Contributor
  • reverted ca9c6dd (Ant's configure.xml changes)
  • edited kc.bat to prevent 'C:\Program' is not recognized as a command error (Ant BuildException)
  • fixed the internal pipeline build errors

Signed-off-by: Peter Zaoral pzaoral@redhat.com

The timeout issue was caused by the recent cleanup of kc.bat (#16229), where the majority of the double quote encapsulation was removed. This typically may cause a problem, when there is a space in a path of a binary (in this case java.exe). Therefore, at least %JAVA% variable should stay enquoted (the binary is by default placed into Program Files, so the path may contain a space).

I also used this PR as an opportunity to get rid of a warning about the usage of the unix file separators.

@Pepo48
Pepo48 requested review from a team as code owners April 15, 2023 22:44
@Pepo48
Pepo48 requested a review from a team April 15, 2023 22:44
@Pepo48
Pepo48 force-pushed the fix-win-base-tests-timeout branch from c9c8d7b to 28b9614 Compare April 17, 2023 10:25
@Pepo48
Pepo48 commented Apr 17, 2023 •
Copy link
Copy Markdown
Contributor Author

@vplemyannik could you review this? We found out that the issue you reported was actually caused by the recent changes in the kc.bat script and not by the Ant's configure.xml. Due to the change in configure.xml some of the tests in our internal pipeline timed out. Therefore, we reverted the commit and provided the alternative fix.

The problem was actually difficult to spot, since it happens only when there's a space in a path to a java binary (which is not the case in our internal pipelines, thus we missed it). Thanks for reporting this initially!

@vmuzikar vmuzikar linked an issue Apr 19, 2023 that may be closed by this pull request
2 tasks done
@Pepo48
Pepo48 force-pushed the fix-win-base-tests-timeout branch 2 times, most recently from cad931c to 91ac706 Compare April 24, 2023 06:21
miquelsi
miquelsi previously approved these changes Apr 24, 2023
@Pepo48
Pepo48 commented Apr 24, 2023
Copy link
Copy Markdown
Contributor Author

Hi @sschu, this PR also touches some of the changes that were done as a part of #16229. I tried my best to enquote just the parts that are really necessary (one of the use cases is explained in the description above) in order to prevent a reintroduction of the issues that you solved earlier.

Could you, please, take a look? Thanks.

@Pepo48
Pepo48 force-pushed the fix-win-base-tests-timeout branch from 9495740 to 92b3c82 Compare April 24, 2023 20:03
@sschu
sschu commented Apr 25, 2023
Copy link
Copy Markdown
Contributor

LGTM.

@Pepo48
Pepo48 force-pushed the fix-win-base-tests-timeout branch from 92b3c82 to fd65d02 Compare April 25, 2023 06:25
Pepo48 added 2 commits April 25, 2023 12:05
…illian-servers-auth-server-quarkus module on Windows"

This reverts commit ca9c6dd.
* edited kc.bat to prevent 'C:\Program' is not recognized as a command error (Ant BuildException)
* fixed the internal pipeline build errors

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
@Pepo48
Pepo48 force-pushed the fix-win-base-tests-timeout branch from fd65d02 to 0834818 Compare April 25, 2023 10:06
@vmuzikar
vmuzikar merged commit 78958ae into keycloak:main Apr 25, 2023
@Pepo48
Pepo48 deleted the fix-win-base-tests-timeout branch May 25, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.\kc.bat start-dev on Windows failed to start in 21.1.0

4 participants

0