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] Windows build broken #1379

Closed
dblock opened this issue Oct 18, 2021 · 1 comment
Closed

[BUG] Windows build broken #1379

dblock opened this issue Oct 18, 2021 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@dblock
Copy link
Member

dblock commented Oct 18, 2021

Describe the bug

Trying to build on Windows fails in multiple ways.

1. `Unable to allocate an initial java heap of ...`

Workaround: export _JAVA_OPTIONS: -Xmx4096M

Install 64-bit Java from https://adoptium.net/releases.html?variant=openjdk11.

  1. Could not determine the dependencies of task ':qa:full-cluster-restart:v1.2.0#upgradedClusterTest'.
* What went wrong:
Could not determine the dependencies of task ':qa:full-cluster-restart:v1.2.0#upgradedClusterTest'.
> Could not resolve all task dependencies for configuration ':qa:full-cluster-restart:opensearch_distro_extracted_testclusters-qa-full-cluster-restart-v1.2.0-1-1.2.0-'.
   > Could not resolve project :distribution:bwc:minor.
     Required by:
         project :qa:full-cluster-restart
      > Project :qa:full-cluster-restart declares a dependency from configuration 'opensearch_distro_extracted_testclusters-qa-full-cluster-restart-v1.2.0-1-1.2.0-' to configuration 'expanded-windows-zip' which is not declared in the descriptor for project :distribution:bwc:minor.

and related tests

InternalDistributionBwcSetupPluginFuncTest. builds distribution from branches via archives assemble
InternalDistributionBwcSetupPluginFuncTest. bwc distribution archives can be resolved as bwc project artifact
InternalDistributionBwcSetupPluginFuncTest. bwc expanded distribution folder can be resolved as bwc project artifact
  1. Docker (checked [/usr/bin/docker, /usr/local/bin/docker]) is required
* What went wrong:
Docker (checked [/usr/bin/docker, /usr/local/bin/docker]) is required to run the following tasks:
:distribution:docker:buildArm64DockerImage
:distribution:docker:buildDockerImage

Symlink of /c/Program Files/... to /user/bin/docker didn't work.

4.:distribution:docker:buildDockerImage

Execution failed for task ':distribution:docker:buildDockerImage'.
> A failure occurred while executing org.opensearch.gradle.docker.DockerBuildTask$DockerBuildAction
   > Failed to pull Docker base image [centos:8], all attempts failed

^ fixed in #1412

  1. ./gradlew :test:fixtures:azure-fixture:composeUp
OpenSearch Build Hamster says Hello!
  Gradle Version        : 6.6.1
  OS Info               : Windows Server 2019 10.0 (amd64)
  JDK Version           : 11 (JDK)
  JAVA_HOME             : C:\Program Files\Eclipse Foundation\jdk-11.0.12.7-hotspot
  Random Testing Seed   : F4F90A8BD55D9DFA
  In FIPS 140 mode      : false
=======================================
Docker version 20.10.8, build 3967b7d
Docker Desktop 4.1.1 (69879)
2021-10-22T17:22:24.908+0000 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command 'C:\Program Files\Docker\Docker\resources\bin\docker-compose.exe''
2021-10-22T17:22:24.908+0000 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled...
2021-10-22T17:22:26.289+0000 [ERROR] [system.err] not implemented
2021-10-22T17:22:26.333+0000 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
2021-10-22T17:22:26.333+0000 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'C:\Program Files\Docker\Docker\resources\bin\docker-compose.exe'' finished with exit value 17 (state: FAILED)
  1. ./gradlew assemble tries to assemble docker images for CentOS

To Reproduce

Run ./gradlew build on Windows.

@dblock dblock added bug Something isn't working untriaged labels Oct 18, 2021
@dblock dblock changed the title [BUG] configuration 'expanded-windows-zip' which is not declared in the descriptor for project :distribution:bwc:minor (Windows build broken) [BUG] Windows build broken Oct 18, 2021
@dblock
Copy link
Member Author

dblock commented Oct 22, 2021

We have a docker problem on my machine (works on @reta's machine with Docker 3.6) in #1425, and a cross-platform build issue in #1430. Otherwise windows build works A-OK after #1412, so I am going to close this.

We do need CI for Windows. Let's take it up part of opensearch-project/opensearch-build#33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant