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

[CLIENT-3027] CI/CD: Use Dockerfile to build Docker image for Aerospike enterprise server with security enabled #645

Merged
merged 32 commits into from
Jul 16, 2024

Conversation

juliannguyen4
Copy link
Collaborator

@juliannguyen4 juliannguyen4 commented Jul 8, 2024

Extra changes:

  • .github/actions/wait-for-as-server-to-start: Fix a bug where the client may throw error code -1 when the server is not fully initialized yet.
  • Increase timeout to 30 seconds to give the server more time to fully initialize

Workflow regression testing

Build wheels (including macOS x86 testing):

With latest tag by default: https://github.com/aerospike/aerospike-client-python/actions/runs/9959790445/job/27517447730
With custom server tag: https://github.com/aerospike/aerospike-client-python/actions/runs/9960467374

Stage tests (all tests pass except for noise): https://github.com/aerospike/aerospike-client-python/actions/runs/9960475436
Valgrind: https://github.com/aerospike/aerospike-client-python/actions/runs/9960475827
Dev workflow part 1: https://github.com/aerospike/aerospike-client-python/actions/runs/9960479630

@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.33%. Comparing base (137ccd1) to head (e2e6d39).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #645   +/-   ##
=======================================
  Coverage   81.33%   81.33%           
=======================================
  Files         100      100           
  Lines       15341    15341           
=======================================
  Hits        12477    12477           
  Misses       2864     2864           

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

@juliannguyen4 juliannguyen4 changed the title [CLIENT-3027] CI/CD: Cache Docker image built with run-ee-server composite action [CLIENT-3027] CI/CD: Use Dockerfile to build Docker image for Aerospike enterprise server with security enabled Jul 16, 2024
@juliannguyen4 juliannguyen4 marked this pull request as ready for review July 16, 2024 18:05
Copy link
Contributor

@justinlee-aerospike justinlee-aerospike left a comment

Choose a reason for hiding this comment

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

One change request to get the hard coded credentials stored in a github secret

if [[ $is_security_enabled == true ]]; then
# We need to pass credentials to asinfo if server requires it
# TODO: passing in hardcoded credentials since I can't figure out how to use --instance with global astools.conf
user_credentials="--user=admin --password=admin"
Copy link
Contributor

Choose a reason for hiding this comment

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

store the user and password credentials in a github secret

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the default credentials for the Aerospike EE server with security enabled. I don't think using secrets here is necessary unless we change those credentials

Copy link
Contributor

@justinlee-aerospike justinlee-aerospike left a comment

Choose a reason for hiding this comment

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

changes look good. we can fix the login issue when we move to pub

@juliannguyen4 juliannguyen4 merged commit e8040a8 into dev Jul 16, 2024
50 of 58 checks passed
@juliannguyen4 juliannguyen4 deleted the CLIENT-3027-cicd-build-docker-ee branch July 16, 2024 20:46
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.

3 participants