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

Adding Jenkins ENV to Integration Test Job #498

Merged
merged 3 commits into from
Sep 16, 2021
Merged

Adding Jenkins ENV to Integration Test Job #498

merged 3 commits into from
Sep 16, 2021

Conversation

saratvemulapalli
Copy link
Member

@saratvemulapalli saratvemulapalli commented Sep 15, 2021

Description

Adding support for Jenkins AWS Role and Session to ENV for Integration Test Job

Check List

  • 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.

@codecov-commenter
Copy link

codecov-commenter commented Sep 15, 2021

Codecov Report

Merging #498 (6066165) into main (9032bdc) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #498   +/-   ##
=======================================
  Coverage   69.31%   69.31%           
=======================================
  Files          58       58           
  Lines        1509     1509           
=======================================
  Hits         1046     1046           
  Misses        463      463           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9032bdc...6066165. Read the comment docs.

gaiksaya
gaiksaya previously approved these changes Sep 15, 2021
Copy link
Member

@gaiksaya gaiksaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We should be specific with the naming. AWS_ROLE_ARN is very generic.
Maybe something like AWS_TEST_ROLE_ARN. I think we are good for now since this jenkinsfile is under integtest but for future

owaiskazi19
owaiskazi19 previously approved these changes Sep 15, 2021
@@ -1,5 +1,9 @@
pipeline {
agent none
environment {
AWS_ROLE_ARN = "arn:aws:iam::${AWS_ACCOUNT_PUBLIC}:role/opensearch-test"
AWS_ROLE_SESSION_NAME = "jenkins-session"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Can we name it as jenkins-integration-test-session

@saratvemulapalli
Copy link
Member Author

saratvemulapalli commented Sep 15, 2021

nit: We should be specific with the naming. AWS_ROLE_ARN is very generic.
Maybe something like AWS_TEST_ROLE_ARN. I think we are good for now since this jenkinsfile is under integtest but for future

Yeah the downstream dependency needed it that way.
Ref: https://github.com/opensearch-project/opensearch-build/tree/main/bundle-workflow#integration-tests

Signed-off-by: Sarat Vemulapalli <[email protected]>
@gaiksaya
Copy link
Member

nit: We should be specific with the naming. AWS_ROLE_ARN is very generic.
Maybe something like AWS_TEST_ROLE_ARN. I think we are good for now since this jenkinsfile is under integtest but for future

Yeah the downstream dependency needed it that way.
Ref: https://github.com/opensearch-project/opensearch-build/tree/main/bundle-workflow#integration-tests

Yeah talking about the overall codebase here :)

@saratvemulapalli saratvemulapalli merged commit 3a6dbae into opensearch-project:main Sep 16, 2021
@setiah
Copy link
Contributor

setiah commented Sep 16, 2021

nit: We should be specific with the naming. AWS_ROLE_ARN is very generic.
Maybe something like AWS_TEST_ROLE_ARN. I think we are good for now since this jenkinsfile is under integtest but for future

Yeah the downstream dependency needed it that way.
Ref: https://github.com/opensearch-project/opensearch-build/tree/main/bundle-workflow#integration-tests

Yeah talking about the overall codebase here :)

Yeah, there has been some back n forth on the naming - #367 (comment).
I think we should rename this to TEST_WORKFLOW_ROLE_ARN and refactor the S3Bucket to read it always from the caller, which in this case would be test workflow components.

@gaiksaya
Copy link
Member

nit: We should be specific with the naming. AWS_ROLE_ARN is very generic.
Maybe something like AWS_TEST_ROLE_ARN. I think we are good for now since this jenkinsfile is under integtest but for future

Yeah the downstream dependency needed it that way.
Ref: https://github.com/opensearch-project/opensearch-build/tree/main/bundle-workflow#integration-tests

Yeah talking about the overall codebase here :)

Yeah, there has been some back n forth on the naming - #367 (comment).
I think we should rename this to TEST_WORKFLOW_ROLE_ARN and refactor the S3Bucket to read it always from the caller, which in this case would be test workflow components.

That conversation makes sense. Thanks!

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.

5 participants