-
Notifications
You must be signed in to change notification settings - Fork 278
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
[Distribution Build Break] Related to upgrade to Gradle 7 #1247
Comments
|
Looks like job-scheduler is failing to build because of changes in core.
The signature of |
@peternied @saratvemulapalli yes, we have discussed that under opensearch-project/OpenSearch#1630, the issues for all plugins are created opensearch-project/opensearch-plugins#107 and will be fixed shortly, it is difficult to support 6.x and 7.x at the same for OpenSearch builds, sorry for such inconsistency window |
If this is a breaking change that breaks all plugins because of a change in core for the build tooling.. then perhaps we should revert the upgrade to Gradle 7 for now and introduce it in 2.0 instead of 1.3 where it might be more appropriate to introduce such a change. |
@dbbaughe we have touched on that here opensearch-project/OpenSearch#1630, the migration for plugins is (sadly) breaking but easy to address. The issue is two fold: because of the OpenSearch usage of old Gradle, plugin developers cannot use the never Gradle as well. |
@reta It doesn't matter if it's easy. It's breaking. If this isn't some critical security fix for our build tooling that requires us to bump the Gradle version then we shouldn't be introducing this bump into a minor release as it appears to break plugin builds. I'm not fully aware of the context of this change, so please feel free to add additional context here, but from the looks of it so far this should be reverted from 1.3 and kept only in 2.0 with additional steps for plugin developers in the 2.0 release notes to bump to a min version of Gradle 7 when migrating to 2.0. |
1.3 is not shipping tomorrow and there's plenty of time to upgrade tooling - I didn't feel like we needed to consider that as a "breaking change" - why do you feel otherwise @dbbaughe? similarly we're moving from JDK 14 (non LTS) to 11, and the software continues to run on all versions |
@dblock just to clarify on "breaking change" - the plugin authors would need to update to Gradle 7 as well in order to build their plugins against 1.3.0-SNAPSHOT. The reason for that is OpenSearch tooling, specifically, PS: As you rightly pointed out, all plugins we could update - will be updated. |
Can I have some hands on whether this should be reverted from 1.x, and we'd rather defer the gradle upgrading work to 2.0? |
@dblock basically we have the following pros / cons:
The two major features of Gradle 7, official JDK 17 support and Scala 3, may not be very important in the context of OpenSearch ecosystem right now. |
I thought about this more and I think we should stick to our commitment for broad backwards compatibility in the case of the tooling. I'm inclined to revert this change on 1.x. @reta if you agree care to PR the change(s)? |
@dblock sure, no objections, on it |
opensearch-project/OpenSearch#1657 reverted from 1.3 |
BWC tooling is built with gradle 6, which has breaking changes that are not compatiable with gradle 7. In order to support BWC tests we need to align with the OpenSearch's gradle version for the 1.3 release. See Also: * Gradle 7 PR in OpenSearch opensearch-project/OpenSearch#1622 * Distribution build bugs encountered by plugins opensearch-project/opensearch-build#1247 * Revert of Gradle 7 PR in OpenSearch opensearch-project/OpenSearch#1657 Signed-off-by: Peter Nied <[email protected]>
* Downgrade gradle version BWC tooling is built with gradle 6, which has breaking changes that are not compatiable with gradle 7. In order to support BWC tests we need to align with the OpenSearch's gradle version for the 1.3 release. See Also: * Gradle 7 PR in OpenSearch opensearch-project/OpenSearch#1622 * Distribution build bugs encountered by plugins opensearch-project/opensearch-build#1247 * Revert of Gradle 7 PR in OpenSearch opensearch-project/OpenSearch#1657 Signed-off-by: Peter Nied <[email protected]>
* Downgrade gradle version BWC tooling is built with gradle 6, which has breaking changes that are not compatiable with gradle 7. In order to support BWC tests we need to align with the OpenSearch's gradle version for the 1.3 release. See Also: * Gradle 7 PR in OpenSearch opensearch-project/OpenSearch#1622 * Distribution build bugs encountered by plugins opensearch-project/opensearch-build#1247 * Revert of Gradle 7 PR in OpenSearch opensearch-project/OpenSearch#1657 Signed-off-by: Peter Nied <[email protected]>
Plugins are seeing error messages when building because of missing
GlobalBuildInfoPlugin
.Reproduce with
git checkout https://github.com/opensearch-project/opensearch-build && cd opensearch-build
./build.sh manifests/1.3.0/opensearch-1.3.0.yml
Error message
The text was updated successfully, but these errors were encountered: