-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Ensure we verify versioned dir for es bwc builds #66590
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
Ensure we verify versioned dir for es bwc builds #66590
Conversation
Pinging @elastic/es-delivery (Team:Delivery) |
ca73eec
to
dee3e0a
Compare
@@ -279,7 +279,9 @@ static void createBuildBwcTask( | |||
+ "." | |||
+ extension | |||
), | |||
expandedDistDirSupport ? new File(checkoutDir, baseDir + "/" + name + "/build/install/") : null | |||
expandedDistDirSupport | |||
? new File(checkoutDir, baseDir + "/" + name + "/build/install/elasticsearch-" + version + "-SNAPSHOT") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to include the distribution type in the path as well (i.e. -oss
for the OSS distro). That's what's causing these errors:
Caused by: java.nio.file.NoSuchFileException: /dev/shm/elastic+elasticsearch+pull-request-bwc/distribution/bwc/minor/build/bwc/checkout-7.x/distribution/archives/oss-linux-tar/build/install/elasticsearch-7.12.0-SNAPSHOT/plugins/config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And posibly architecture too? Essentially, we need to use the same logic for building that dir name as we do for the file name as I "think" we add all those qualifiers there as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the issue with the file not found above. The problem was not with the folder name but with the right declaration of the target install root which is still "build/install". The distro base folder name doesn't contain oss or anything arch specific as far as I see.
Update according integ tests
Update according integ tests
A follow up on https://github.com/elastic/elasticsearch/pull/66342/files#r545455977