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

Release build fails to find BWC branches #26702

Closed
nik9000 opened this issue Sep 18, 2017 · 2 comments · Fixed by #26704
Closed

Release build fails to find BWC branches #26702

nik9000 opened this issue Sep 18, 2017 · 2 comments · Fixed by #26704
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team

Comments

@nik9000
Copy link
Member

nik9000 commented Sep 18, 2017

This release build failed to find the bwc build:

22:18:24 Cannot expand ZIP '/var/lib/jenkins/workspace/elastic+elasticsearch+6.0+release-tests/distribution/bwc/build/bwc/checkout-5.6/distribution/zip/build/distributions/elasticsearch-5.6.2-SNAPSHOT.zip' as it does not exist.

Here is what does exist:

manybubbles@slave-0b5b99f34015422a8:/var/lib/jenkins/workspace/elastic+elasticsearch+6.0+release-tests$ ls /var/lib/jenkins/workspace/elastic+elasticsearch+6.0+release-tests/distribution/bwc/build/bwc/checkout-5.6/distribution/zip/build/distributions/
elasticsearch-5.6.2.pom  elasticsearch-5.6.2.zip

I expect the trouble is that we pass the release flag down to the bwc snapshot builds. Either we shouldn't do that or we should look without the -SNAPSHOT suffix in release build tests.

Fun times.

@nik9000 nik9000 added the :Delivery/Build Build or test infrastructure label Sep 18, 2017
@rjernst
Copy link
Member

rjernst commented Sep 19, 2017

We don't do it intentionally, it is just how gradle works, unfortunately. We use a GradleBuild task to build the bwc projects. That is like loading another gradle build inline within the current build, so it is not forked, and thus operates with the exact same sysprops. I think we should look for this sysprop, and if it we are in a non-snapshot build, we setup the bwc build task with Exec instead of GradleBuild. This means when running most of the time we will still get nice integration of the gradle logging between the two builds. Only during the release CI testing will the logging be different, and it won't matter for CI (it just matters for the build status line which CI does not have).

@ywelsch
Copy link
Contributor

ywelsch commented Sep 19, 2017

That is like loading another gradle build inline within the current build, so it is not forked, and thus operates with the exact same sysprops. I think we should look for this sysprop, and if it we are in a non-snapshot build, we setup the bwc build task with Exec instead of GradleBuild.

According to the Gradle docs, the system properties of the GradleBuild can be influenced using the startParameter.setSystemPropertiesArgs(...) method.

rjernst added a commit to rjernst/elasticsearch that referenced this issue Sep 19, 2017
This commit enforces bwc builds always generate snapshot versions, even
when testing release versions in CI.

closes elastic#26702
rjernst added a commit that referenced this issue Sep 20, 2017
This commit enforces bwc builds always generate snapshot versions, even
when testing release versions in CI.

closes #26702
rjernst added a commit that referenced this issue Sep 25, 2017
This commit enforces bwc builds always generate snapshot versions, even
when testing release versions in CI.

closes #26702
rjernst added a commit that referenced this issue Sep 25, 2017
This commit enforces bwc builds always generate snapshot versions, even
when testing release versions in CI.

closes #26702
rjernst added a commit that referenced this issue Sep 25, 2017
This commit enforces bwc builds always generate snapshot versions, even
when testing release versions in CI.

closes #26702
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants