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

Working around OSB preload #992

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

peternied
Copy link
Member

Description

  • Updated ProcessLifecycleTest to use the base ES image and then upload documents onto the cluster before taking the snapshot. Passed tests locally, this can be reused for ParallelDocumentMigrationsTest if needed.
  • Created new package in RFS test fixtures org.opensearch.migrations.data that can generate any number of document needed following existing document conventions. This is pretty close to being a drop in replacement for the changes in ProcessLifecycleTest but more due dilligence should be done before jumping in.

Issues Resolved

Testing

Ran ./gradlew DocumentsFromSnapshotMigration:slowTest --tests *testProcessExitsAsExpected* locally

Check List

  • New functionality includes testing
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

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.

- Updated ProcessLifecycleTest to use the base ES image and then upload
  documents onto the cluster before taking the snapshot.  Passed tests
locally, this can be reused for ParallelDocumentMigrationsTest if
needed.
- Created new package in RFS test fixtures org.opensearch.migrations.data
  that can generate any number of document needed following existing
document conventions.  This is pretty close to being a drop in
replacement for the changes in ProcessLifecycleTest but more due
dilligence should be done before jumping in.

Signed-off-by: Peter Nied <[email protected]>
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.94%. Comparing base (eaeb4c7) to head (a78923b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #992      +/-   ##
============================================
+ Coverage     78.92%   78.94%   +0.01%     
- Complexity     2723     2724       +1     
============================================
  Files           374      374              
  Lines         13809    13809              
  Branches        970      970              
============================================
+ Hits          10899    10901       +2     
+ Misses         2336     2335       -1     
+ Partials        574      573       -1     
Flag Coverage Δ
gradle-test 76.81% <ø> (+0.01%) ⬆️
python-test 89.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant