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

[Bug]: OpenSearch integration test deploys stages for components absent from test manifest #3461

Closed
Tracked by #2994
gaiksaya opened this issue May 2, 2023 · 4 comments · Fixed by #4349
Closed
Tracked by #2994
Assignees
Labels
bug Something isn't working

Comments

@gaiksaya
Copy link
Member

gaiksaya commented May 2, 2023

Describe the bug

Regarding https://github.com/opensearch-project/opensearch-build/blob/main/jenkins/opensearch/integ-test.jenkinsfile

The jenkins job compares component list from build manifest against the components from the test manifest.
It deploys the jenkins parallel stage, copies everything required and then skips very late in the process that the component is not present in the test manifest.
Also on looking at the https://build.ci.opensearch.org/blue/organizations/jenkins/integ-test/detail/integ-test/4728/pipeline it is very misleading

To reproduce

Just take a look at https://build.ci.opensearch.org/blue/organizations/jenkins/integ-test/detail/integ-test/4728/pipeline

Expected behavior

The comparison should be vice versa; compare components from test manifest against the components in dist or build manifest and deploy parallel stages only for the ones present in the distribution

Screenshots

If applicable, add screenshots to help explain your problem.

Host / Environment

No response

Additional context

No response

Relevant log output

No response

@gaiksaya gaiksaya added bug Something isn't working untriaged Issues that have not yet been triaged labels May 2, 2023
@peterzhuamazon
Copy link
Member

Hi,

The description is not fully correct.

The check happens before the s3 download even happens:

https://github.com/opensearch-project/opensearch-build/blob/main/jenkins/opensearch/integ-test.jenkinsfile#L121-L126

It should stop once there is a mismatch between the build and test manifest which is by design.

Thanks.

@gaiksaya
Copy link
Member Author

gaiksaya commented May 2, 2023

The comparison should be opposite. So that only the components in the test manifest shows the stages in jenkins pipeline. By download I mean copy https://build.ci.opensearch.org/blue/organizations/jenkins/integ-test/detail/integ-test/4728/pipeline/112 which is unnecessary. Anyway the python code takes care of the whether the components is present or not so just running for components from test manifest should be sufficient, We do not need to compare at all.

@peterzhuamazon
Copy link
Member

Hi,

Talked to @gaiksaya and we are clear now on the right implementation:

  1. If user enter specific component name, then compare this name to the test manifest.
  2. If use does not enter any specific component name, then just grab all the component names from the test manifest.
  3. The getNames func needs to be added in the testManifest obj in lib.

Thanks.

@jordarlu jordarlu added bug Something isn't working enhancement New Enhancement and removed bug Something isn't working untriaged Issues that have not yet been triaged labels May 9, 2023
@gaiksaya gaiksaya removed the enhancement New Enhancement label Jun 19, 2023
@rishabh6788
Copy link
Collaborator

assigning to @gaiksaya to take a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

4 participants