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

[develop] Modify the check_login_stopped.sh script to directly use TG name to query #2524

Merged

Conversation

hehe7318
Copy link
Contributor

@hehe7318 hehe7318 commented Oct 31, 2023

Description of changes

  • Reduce the check steps when checking if LoginNodes stopped. So that we can delete the checking NLB loop to reduce running time.

Tests

  • Manually tests done, passed successfully.

References

Checklist

  • Make sure you are pointing to the right branch.
  • If you're creating a patch for a branch other than develop add the branch name as prefix in the PR title (e.g. [release-3.6]).
  • Check all commits' messages are clear, describing what and why vs how.
  • Make sure to have added unit tests or integration tests to cover the new/modified code.
  • Check if documentation is impacted by this change.

Please review the guidelines for contributing and Pull Request Instructions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

codecov bot commented Oct 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a6b8e1f) 76.06% compared to head (e41feed) 76.06%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2524   +/-   ##
========================================
  Coverage    76.06%   76.06%           
========================================
  Files           13       13           
  Lines         1876     1876           
========================================
  Hits          1427     1427           
  Misses         449      449           
Flag Coverage Δ
unittests 76.06% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@hehe7318 hehe7318 force-pushed the wip/munge-key-reduce-check-ln-stop-steps branch from b6fc2c9 to daa8e2d Compare November 1, 2023 18:27
@@ -137,3 +140,11 @@ def get_primary_ip

primary_ip
end

def get_target_group_name(cluster_name, pool_name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add a ChefSpec test for this function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@@ -0,0 +1,22 @@
require_relative '../../../libraries/helpers'
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this import being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. The get_target_group_name function is in helpers.rb

@hehe7318 hehe7318 merged commit a9c1dfb into aws:develop Nov 2, 2023
28 checks passed
hehe7318 added a commit to hehe7318/aws-parallelcluster-cookbook that referenced this pull request Nov 2, 2023
…uery (aws#2524)

Reduce the check steps when checking if LoginNodes stopped. 
So that we can delete the checking NLB loop to reduce running time.
hgreebe pushed a commit to hgreebe/aws-parallelcluster-cookbook that referenced this pull request Nov 13, 2023
…uery (aws#2524)

Reduce the check steps when checking if LoginNodes stopped. 
So that we can delete the checking NLB loop to reduce running time.
himani2411 pushed a commit to himani2411/aws-parallelcluster-cookbook that referenced this pull request Nov 13, 2023
…uery (aws#2524)

Reduce the check steps when checking if LoginNodes stopped. 
So that we can delete the checking NLB loop to reduce running time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants