-
Notifications
You must be signed in to change notification settings - Fork 314
Add integration test for cluster creation in private subnet #2058
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2058 +/- ##
========================================
Coverage 59.91% 59.91%
========================================
Files 39 39
Lines 5620 5620
========================================
Hits 3367 3367
Misses 2253 2253 Continue to review full report at Codecov.
|
| from assertpy import assert_that | ||
|
|
||
|
|
||
| @pytest.mark.dimensions("eu-west-1", "c4.xlarge", "alinux2", "slurm") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use c5.xlarge only. I think we use c4 only in cn regions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think eu-west-1 regions is heavily used already. Shall we pick a region with fewer tests?
also we could select centos7 with one of the schedulers.
| compute_instance_type = {{ instance }} | ||
| initial_queue_size = 1 | ||
| max_queue_size = 1 | ||
| maintain_initial_size = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's set this to false so that in case of slurm we have the bootstrap logic submit a job to the scheduler (this happens only when initial_size > min_size ==> maintain_initial_size = false)
|
|
||
| @pytest.mark.dimensions("eu-west-1", "c4.xlarge", "alinux2", "slurm") | ||
| @pytest.mark.dimensions("eu-west-2", "c5.xlarge", "alinux2", "sge") | ||
| @pytest.mark.usefixtures("scheduler, os, region, test_datadir") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why test_datadir in the usefixtures? can't it be removed?
you also need to add instance to the fixtures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test_datadir is needed from pcluster_config_reader, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes but pcluster_config_reader will get the fixture regardless of it
990c603 to
7c692ef
Compare
Signed-off-by: ddeidda <ddeidda@amazon.com>
7c692ef to
ec0eca2
Compare
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.