-
Notifications
You must be signed in to change notification settings - Fork 98
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
fix(list-images): filter images by environment=production
#9601
Conversation
in order to minimize the noise from development images, we should list as offical released images only images labels with `environment=production`
it's currently a bit problematic, since this label doesn't existing on older releases (i.e. ones used for oracle in gemini tests) |
It's already applied on 6.1,6.2, 2024.1 and 2024.2 |
we are still using 2022.1 version as gemini oracle:
so we'll need some backward compatibility, to move to using that tab |
Skip it :-), we are not going to release a new official AMI for that, i can add this tag manually on the latest one for main region or something if you can overcome it |
I'll tag them myself, I found a way to do that quickly |
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.
LGTM
@@ -1132,14 +1132,14 @@ def filter_k8s_clusters_by_tags(tags_dict: dict, clusters: list[ | |||
@lru_cache | |||
def get_scylla_ami_versions(region_name: str, arch: AwsArchType = 'x86_64', version: str = None) -> list[EC2Image]: |
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.
it's used by get_latest_scylla_ami_release
which is not used anywhere, maybe remove this function along so it's not distracting?
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.
$ git grep get_scylla_ami_versions
sdcm/sct_config.py: get_scylla_ami_versions,
sdcm/sct_config.py: ami = get_scylla_ami_versions(version=scylla_version, region_name=region, arch=aws_arch)[0]
sdcm/sct_config.py: ami = get_scylla_ami_versions(version=oracle_scylla_version,
sdcm/utils/common.py:def get_scylla_ami_versions(region_name: str, arch: AwsArchType = 'x86_64', version: str = None) -> list[EC2Image]:
sdcm/utils/common.py: for ami in get_scylla_ami_versions(region_name=region):
sdcm/utils/common.py: for ami in get_scylla_ami_versions(region_name=region_name, arch=arch, version=version)]
unit_tests/test_scylla_yaml_builders.py: with patch("sdcm.sct_config.get_scylla_ami_versions", return_value=[self.get_scylla_ami_version_output]), \
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 meant get_latest_scylla_ami_release
to be removed
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.
it's not in use, but the removal of it isn't really have anything with this PR
in order to minimize the noise from development images, we should list as offical released images only images labels with
environment=production
Testing
PR pre-checks (self review)
backport
labelsReminders
sdcm/sct_config.py
)unit-test/
folder)