Skip to content

Commit ea8d02a

Browse files
himani2411Himani Deshpande
andauthored
Reverting "Adding instance fixture so that it can be used by architecture fixture when creating the cluster config file" (#5763)
Testing Rocky8 with default x86 architecture Co-authored-by: Himani Deshpande <himanidp@amazon.com>
1 parent 8acc03e commit ea8d02a

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

tests/integration-tests/configs/common/not_released_osses.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ cloudwatch_logging:
1515
# 2) run the test for all OSes with slurm
1616
- regions: ["ap-east-1"]
1717
instances: {{ common.INSTANCES_DEFAULT_ARM }}
18-
oss: ["ubuntu2204"]
1918
schedulers: ["slurm"]
20-
- regions: [ "ap-east-1" ]
21-
instances: {{ common.INSTANCES_DEFAULT_ARM }}
22-
oss: {{ common.NOT_RELEASED_OSES }}
23-
schedulers: [ "slurm" ]
19+
oss: ["ubuntu2204", "rhel8"]
2420
- regions: ["ap-east-1"]
2521
instances: {{ common.INSTANCES_DEFAULT_X86 }}
26-
oss: ["rhel8", "centos7"]
22+
oss: ["centos7"]
23+
schedulers: ["slurm"]
24+
- regions: ["ap-east-1"]
25+
instances: {{ common.INSTANCES_DEFAULT_X86 }}
26+
oss: {{ common.NOT_RELEASED_OSES }}
2727
schedulers: ["slurm"]
2828
test_compute_console_output_logging.py::test_console_output_with_monitoring_disabled:
2929
dimensions:

tests/integration-tests/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def test_datadir(request, datadir):
565565

566566

567567
@pytest.fixture()
568-
def pcluster_config_reader(test_datadir, vpc_stack, request, region, architecture):
568+
def pcluster_config_reader(test_datadir, vpc_stack, request, region):
569569
"""
570570
Define a fixture to render pcluster config templates associated to the running test.
571571
@@ -592,7 +592,7 @@ def _config_renderer(config_file="pcluster.config.yaml", benchmarks=None, output
592592
rendered_template = env.get_template(config_file).render(**{**default_values, **kwargs})
593593
output_file_path.write_text(rendered_template)
594594
if not config_file.endswith("image.config.yaml"):
595-
inject_additional_config_settings(output_file_path, request, region, architecture, benchmarks)
595+
inject_additional_config_settings(output_file_path, request, region, benchmarks)
596596
else:
597597
inject_additional_image_configs_settings(output_file_path, request)
598598
return output_file_path
@@ -659,7 +659,7 @@ def _inject_additional_iam_policies_for_nodes(
659659
_inject_additional_iam_policies(pool, policies)
660660

661661

662-
def inject_additional_config_settings(cluster_config, request, region, architecture=None, benchmarks=None): # noqa C901
662+
def inject_additional_config_settings(cluster_config, request, region, benchmarks=None): # noqa C901
663663
with open(cluster_config, encoding="utf-8") as conf_file:
664664
config_content = yaml.safe_load(conf_file)
665665

@@ -694,7 +694,6 @@ def inject_additional_config_settings(cluster_config, request, region, architect
694694
retrieve_latest_ami(
695695
region,
696696
config_content["Image"]["Os"],
697-
architecture=architecture,
698697
ami_type="pcluster",
699698
),
700699
("Image", "CustomAmi"),

tests/integration-tests/tests/update/test_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ def _test_shared_storage_rollback(
14401440
boto3.client("fsx", region).describe_file_systems(FileSystemIds=managed_fsx)
14411441

14421442

1443-
@pytest.mark.usefixtures("os", "instance")
1443+
@pytest.mark.usefixtures("os")
14441444
def test_multi_az_create_and_update(
14451445
region, pcluster_config_reader, clusters_factory, odcr_stack, scheduler_commands_factory, test_datadir
14461446
):

0 commit comments

Comments
 (0)