I'm unable to build the project in WSL environment due to ConfigurationPropertiesTests#loadWhenBindingWithDefaultsInXmlShouldBind failing. More specifically, this assertion is failing: https://github.com/spring-projects/spring-boot/blob/f17a00aad1d2d5753e5313268a2b40f1568bd22a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java#L258

It seems that this is due to WSL exposing the hostname (which is the actual value of name property I'm seeing when the test fails) in the NAME environment variable and thus overrides the value set in spring-boot-project/spring-boot/src/test/resources/org/springframework/boot/context/properties/testProperties.xml.

Comment From: vpavic

I can confirm that the project now builds successfully in WSL - thanks for the prompt fix.

Comment From: vpavic

Unfortunately, my feedback from previous comment was invalid. I forgot about the remote build cache - running ./gradlew clean check --no-build-cache uncovered several other test failures. I've opened #31267 to fix those.