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 tests fail because bwc artifacts are not generated #28653

Closed
colings86 opened this issue Feb 13, 2018 · 6 comments
Closed

Release tests fail because bwc artifacts are not generated #28653

colings86 opened this issue Feb 13, 2018 · 6 comments
Assignees
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v6.3.0 v7.0.0-beta1

Comments

@colings86
Copy link
Contributor

The release tests are failing on CI with the following error (this specific output was taken from https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+release-tests/471/console but there are other build runs failing too on master and 6.x) :

00:51:09 FAILURE: Build failed with an exception.
00:51:09 
00:51:09 
00:51:09 * Where:
00:51:09 Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
00:51:09 Build file '/var/lib/jenkins/workspace/elastic+elasticsearch+master+release-tests/distribution/bwc/build.gradle' line: 159
00:51:09 See https://docs.gradle.org/4.5/userguide/command_line_interface.html#sec:command_line_warnings
00:51:09 
00:51:09 2244 actionable tasks: 2193 executed, 51 up-to-date
00:51:09 * What went wrong:
00:51:09 Execution failed for task ':distribution:bwc:next-bugfix-snapshot:buildBwcVersion'.
00:51:09 > Building bwc version didn't generate expected files [/var/lib/jenkins/workspace/elastic+elasticsearch+master+release-tests/distribution/bwc/next-bugfix-snapshot/build/bwc/checkout-6.2/distribution/deb/build/distributions/elasticsearch-6.2.2-SNAPSHOT.deb, /var/lib/jenkins/workspace/elastic+elasticsearch+master+release-tests/distribution/bwc/next-bugfix-snapshot/build/bwc/checkout-6.2/distribution/rpm/build/distributions/elasticsearch-6.2.2-SNAPSHOT.rpm, /var/lib/jenkins/workspace/elastic+elasticsearch+master+release-tests/distribution/bwc/next-bugfix-snapshot/build/bwc/checkout-6.2/distribution/zip/build/distributions/elasticsearch-6.2.2-SNAPSHOT.zip]

@hub-cap could these failures be related to your bwc changes in the build last week?

@DaveCTurner
Copy link
Contributor

I suspect #28641, since it looks like it reverts the effects of #27778.

@hub-cap
Copy link
Contributor

hub-cap commented Feb 13, 2018

yea that was apparently only a partial fix. These should be testing against those snapshot versions, but bwc was changed to "pretend" those were releases, so it looks like i just missed a spot to unpretend. As you can see from the rpm etc generation, its not appending -SNAPSHOT to these artifacts, as it should be. So another fix on top of #28641 will be incoming to further fix this bug that it uncovered :)

@hub-cap
Copy link
Contributor

hub-cap commented Feb 13, 2018

Its due to the build.snapshot being propagated into the snapshot build of the checkout. I need to chat w @rjernst to see if this is valid. I suspect it should not be passing this down since they are not releases.

00:49:56 Starting process 'command 'XXXX/next-bugfix-snapshot/build/bwc/checkout-6.2/gradlew''. Working directory: XXXX/next-bugfix-snapshot/build/bwc/checkout-6.2 Command: XXXX/next-bugfix-snapshot/build/bwc/checkout-6.2/gradlew :distribution:deb:assemble :distribution:rpm:assemble :distribution:zip:assemble -Dbuild.snapshot=false --info

@jasontedor
Copy link
Member

jasontedor commented Feb 13, 2018

@hub-cap The mechanism for passing the build.snapshot value down to the BWC builds is here:

args ":distribution:deb:assemble", ":distribution:rpm:assemble", ":distribution:zip:assemble", "-Dbuild.snapshot=${System.getProperty('build.snapshot') ?: 'true'}"

@hub-cap
Copy link
Contributor

hub-cap commented Feb 13, 2018

startParameter.systemPropertiesArgs = ['build.snapshot': 'true']

ya and it used to be hardcoded to true @jasontedor

@hub-cap
Copy link
Contributor

hub-cap commented Feb 13, 2018

Ill keep an eye on this and reopen if it continues to fail. itll be a while tho

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 v6.3.0 v7.0.0-beta1
Projects
None yet
Development

No branches or pull requests

5 participants