-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add MultiTypeMappingTransformation and test #1189
Add MultiTypeMappingTransformation and test #1189
Conversation
After recently reviewing metadata migration end to end test cases I noticed there was 56 different tests, this was a large increase, taking nearly 20 minutes of runtime. Reviewing the parameters of the tests I'm running evaluate and then immediately following migrate, this should reduce the test cases by nearly half and increase of coverage using http and snapshot sources. I have tweaked how we use templates moving back to the logic of legacy templates for ES 6.X and using both index and index compontent templates for future ES versions, which should be another 30% redunction. Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
RFS/src/testFixtures/java/org/opensearch/migrations/bulkload/http/ClusterOperations.java
Outdated
Show resolved
Hide resolved
RFS/src/testFixtures/java/org/opensearch/migrations/bulkload/http/ClusterOperations.java
Outdated
Show resolved
Hide resolved
...c/testFixtures/java/org/opensearch/migrations/bulkload/framework/SearchClusterContainer.java
Outdated
Show resolved
Hide resolved
...c/testFixtures/java/org/opensearch/migrations/bulkload/framework/SearchClusterContainer.java
Outdated
Show resolved
Hide resolved
...on/src/main/java/org/opensearch/migrations/transformation/rules/IndexMappingTypeRemoval.java
Show resolved
Hide resolved
...ataMigration/src/test/java/org/opensearch/migrations/MultiTypeMappingTransformationTest.java
Outdated
Show resolved
Hide resolved
...ataMigration/src/test/java/org/opensearch/migrations/MultiTypeMappingTransformationTest.java
Outdated
Show resolved
Hide resolved
MetadataMigration/src/main/java/org/opensearch/migrations/MigrateOrEvaluateArgs.java
Show resolved
Hide resolved
...ataMigration/src/test/java/org/opensearch/migrations/MultiTypeMappingTransformationTest.java
Outdated
Show resolved
Hide resolved
...ataMigration/src/test/java/org/opensearch/migrations/MultiTypeMappingTransformationTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
9669ce2
to
bfb5704
Compare
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
MetadataMigration/src/test/java/org/opensearch/migrations/CustomTransformationTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
RFS/src/testFixtures/java/org/opensearch/migrations/bulkload/http/ClusterOperations.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/opensearch/migrations/transformation/rules/IndexMappingTypeRemovalTest.java
Show resolved
Hide resolved
@@ -1,50 +1,33 @@ | |||
package org.opensearch.migrations; |
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.
Since there is a decent amount of refactoring going on here want to pull #1186 into this change, it should help your cycles iterate more quickly
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
a4a57fe
to
406ad78
Compare
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
…support Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]> Signed-off-by: Andre Kurait <[email protected]>
72bff28
to
e501f09
Compare
Signed-off-by: Andre Kurait <[email protected]>
Signed-off-by: Andre Kurait <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1189 +/- ##
============================================
+ Coverage 80.55% 80.57% +0.02%
- Complexity 3074 3081 +7
============================================
Files 421 421
Lines 15545 15592 +47
Branches 1047 1053 +6
============================================
+ Hits 12522 12564 +42
- Misses 2380 2386 +6
+ Partials 643 642 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -111,6 +111,44 @@ jobs: | |||
with: | |||
gradle-version: ${{ env.gradle-version }} | |||
gradle-home-cache-cleanup: true | |||
- name: Generate Cache Key from Dockerfiles |
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.
@AndreKurait Can you revert the change to this file or maybe we can sync on the utility of this change?
The additional workflow complexity + extra effort to remember to sync these lists between java source and CI.yml gives me pause about including this change. It looks like this was done in an effort to speed up and issues with the test case that ended up being disabled due to an unrelated root cause.
Description
Support Union resolution of MultiTypeMappingTransformation in metadata migrations.
Adds argument
--multi-type-behavior
allowing customers to specify UNION and migrate multi type indices.Issues Resolved
[List any issues this PR will resolve]
Is this a backport? If so, please add backport PR # and/or commits #
Testing
Added E2E unit test
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.