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

Add github action for secure integ tests #836

Conversation

martin-gaievski
Copy link
Member

@martin-gaievski martin-gaievski commented Apr 3, 2023

Description

Adding github action to run integ tests against cluster with security plugin. Approach is mainly taken from AD plugin https://github.com/opensearch-project/anomaly-detection/blob/main/.github/workflows/test_security.yml. Currently we're not able to build artifacts for native libraries in our regular assemble task, so for this iteration will be using latest pre-built versions from docker image. This means they may be different from PR version in case we're changing those libs in scope of PR. We'll be running tests on linux as this gives sufficient confidence, and for macos/win the docker setup has some difficulties.

PR requires #827 and #847 to be merged

Issues Resolved

opensearch-project/security#2265

Check List

  • New functionality includes testing.
    • All tests pass
  • Commits are signed as 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.

@martin-gaievski martin-gaievski added Infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. backport 2.x labels Apr 3, 2023
@martin-gaievski martin-gaievski force-pushed the add-secure-integ-test-github-action branch 3 times, most recently from 9d8f699 to da4a7ae Compare April 3, 2023 23:38
@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2023

Codecov Report

Merging #836 (3f4ae65) into main (d63f5b0) will decrease coverage by 0.07%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##               main     #836      +/-   ##
============================================
- Coverage     85.17%   85.10%   -0.07%     
  Complexity     1086     1086              
============================================
  Files           152      152              
  Lines          4404     4404              
  Branches        393      393              
============================================
- Hits           3751     3748       -3     
- Misses          474      477       +3     
  Partials        179      179              

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@martin-gaievski martin-gaievski force-pushed the add-secure-integ-test-github-action branch 24 times, most recently from 3e6dda3 to 193aa9b Compare April 5, 2023 00:39
@martin-gaievski martin-gaievski force-pushed the add-secure-integ-test-github-action branch 6 times, most recently from 65eaee7 to a6deb50 Compare April 7, 2023 19:00
@martin-gaievski martin-gaievski changed the title Adding github action for secure integ tests Add github action for secure integ tests Apr 7, 2023
Signed-off-by: Martin Gaievski <gaievski@amazon.com>
@martin-gaievski martin-gaievski force-pushed the add-secure-integ-test-github-action branch from a6deb50 to 8c6ac66 Compare April 7, 2023 19:29
@martin-gaievski martin-gaievski marked this pull request as ready for review April 7, 2023 19:54
@martin-gaievski martin-gaievski requested a review from a team April 7, 2023 19:54
@@ -0,0 +1,96 @@
name: Security test workflow for k-NN
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rename this to, test k-NN on Secure Cluster

Copy link
Member Author

Choose a reason for hiding this comment

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

ack

.github/workflows/test_security.yml Show resolved Hide resolved
.github/workflows/test_security.yml Show resolved Hide resolved
matrix:
java: [ 11,17 ]
os: [ubuntu-latest]
fail-fast: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

why this is false? I think we should make it true.

Copy link
Member Author

Choose a reason for hiding this comment

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

ack

os: [ubuntu-latest]
fail-fast: false

name: Security test workflow for k-NN Plugin
Copy link
Collaborator

Choose a reason for hiding this comment

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

update the name as suggested above.

Copy link
Member Author

Choose a reason for hiding this comment

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

ack

Signed-off-by: Martin Gaievski <gaievski@amazon.com>
navneet1v
navneet1v previously approved these changes Apr 11, 2023
jmazanec15
jmazanec15 previously approved these changes Apr 11, 2023
@jmazanec15 jmazanec15 merged commit 303d811 into opensearch-project:main Apr 12, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 12, 2023
Signed-off-by: Martin Gaievski <gaievski@amazon.com>
(cherry picked from commit 303d811)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 12, 2023
Signed-off-by: Martin Gaievski <gaievski@amazon.com>
(cherry picked from commit 303d811)
naveentatikonda pushed a commit that referenced this pull request Apr 12, 2023
Signed-off-by: Martin Gaievski <gaievski@amazon.com>
(cherry picked from commit 303d811)

Co-authored-by: Martin Gaievski <gaievski@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport 2.7 Infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants