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

[META] Automate backwards compatibility test support for OpenSearch project #90

Closed
6 of 14 tasks
Tracked by #123
dblock opened this issue Jul 15, 2021 · 8 comments
Closed
6 of 14 tasks
Tracked by #123
Labels
enhancement New Enhancement Meta

Comments

@dblock
Copy link
Member

dblock commented Jul 15, 2021

Is your feature request related to a problem? Please describe.

We do a lot of manual testing. Need visible and repeatable automation for end-to-end upgrade paths described in https://opensearch.org/faq/#c3, including rolling and restart upgrades. Plugins should be able to contribute setup steps in an older version (data) and integration tests that run in mixed and upgraded cluster states.

Proposal

We would like to see CI/CD that shows that a specific bundle build of OpenSearch has been tested on a list of upgrade paths.
Here is our proposal for BWC/Upgrade testing for OpenSearch project.

All BWC tests include:

  1. Rolling upgrade
  2. Mixed Cluster search
  3. Snapshot upgrade
  4. Restart upgrade

All components within opensearch project will define bwctests:

  1. Run BWC tests in each component.
  2. Run BWC tests in each component in PR push.
  3. Run BWC tests in release CI against individual component.
  4. Run BWC tests in release CI against the bundle.

Tasks

P0

Release CI BWC test workflow: [Meta] #232

P1

Here is the design proposal for #121 :

  1. All repositories define their bwc tests for A and B.
  2. Nightly builds will run A for repo level testing via bwctest.sh script defined in each repository.
    Ref: https://github.com/opensearch-project/anomaly-detection/blob/main/integtest.sh
    Eg: ./integtest.sh bwcTest
  3. We will rely on [META] Test orchestration framework #122 and a job to the orchestrator to spin up various kinds of BWC test clusters.
  4. Nightly builds will also run B for bundle level testing via bwctest.sh defined in each repository using the clusters setup by the orchestrator. The orchestrator job will make calls to the bwctest.sh script to perform various steps of testing during upgrade.
    Eg: For Rolling Upgrade, the orchestrator job will spin an old version (the versions should be defined via a manifest, TBD).
    a. Kick off ingestion via ./bwctest.sh RollingUpgradeIngestTest
    b. Upgrade a node to new version
    c. Kick off mixed cluster test via ./bwctest.sh MixedClusterSearchTest
    d. Upgrade all nodes to the latest version.
    e. Kick off upgraded cluster test via ./bwctest.sh UpgradedClusterTest
    f. Report test status and repeat for every repository.
  5. Report bundle level test status.
@dblock dblock added the enhancement New Enhancement label Jul 15, 2021
@dblock
Copy link
Member Author

dblock commented Jul 15, 2021

#58 and opensearch-project/opensearch-plugins#53 are related.

@dblock dblock changed the title Automate end-to-end upgrade paths testing Automate end-to-end upgrade paths and integration testing Jul 15, 2021
@bbarani bbarani added the untriaged Issues that have not yet been triaged label Jul 15, 2021
@peterzhuamazon peterzhuamazon removed the untriaged Issues that have not yet been triaged label Jul 23, 2021
@saratvemulapalli
Copy link
Member

Modified this issue to be a meta issue to track all backward compatibility test support.

@shwetathareja
Copy link
Member

Ideally, the integration tests which are written like Rest APIs or any feature test, the framework should allow to run them in BWC mode (e.g. mixed mode). This will help in catching any issues when there are mixed nodes in the cluster.

@dblock
Copy link
Member Author

dblock commented Aug 30, 2021

@saratvemulapalli is it time to close this issue given the work you've done here?

@saratvemulapalli
Copy link
Member

@saratvemulapalli is it time to close this issue given the work you've done here?

I dont think so, there are bunch of items which have to be done for P0 and P1.

@dblock
Copy link
Member Author

dblock commented Aug 31, 2021

If you care, you can turn the lists above into - [ ] issue and GitHub will help you see and track what was resolved and what wasn't

@peterzhuamazon peterzhuamazon changed the title Automate backwards compatibility test support for OpenSearch project [META] Automate backwards compatibility test support for OpenSearch project Nov 1, 2021
@gaiksaya
Copy link
Member

@abhinavGupta16 is looking into rewriting this issue with requirements, what we have and implementation with current codebase.

@abhinavGupta16
Copy link
Contributor

Closing this META issue to replace with the updated issue - #1873

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

No branches or pull requests

8 participants