Skip to content

Conversation

@eladkal
Copy link
Contributor

@eladkal eladkal commented Sep 22, 2025

Followup on #55934

Comment on lines +25 to +34
class TestGlobalConstants:
@pytest.mark.parametrize("k8s_version", ALLOWED_KUBERNETES_VERSIONS)
def test_kubernetes_versions_available_on_docker_hub(self, k8s_version):
"""Test that all Kubernetes versions in ALLOWED_KUBERNETES_VERSIONS exist on Docker Hub."""
url = f"https://registry.hub.docker.com/v2/repositories/kindest/node/tags/{k8s_version}/"
response = requests.get(url, timeout=10)
assert response.status_code == 200, f"Kubernetes version {k8s_version} not found on Docker Hub"

data = response.json()
assert data["name"] == k8s_version, f"Version mismatch for {k8s_version}"
Copy link
Contributor

Choose a reason for hiding this comment

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

A little excessive to run on every PR? I would rather it be a github CI job that runs only when global constants are changed?

Copy link
Contributor

Choose a reason for hiding this comment

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

My concern is around extra API calls (not a veto but worth thinking it)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean in dev/breeze/tests/test_selective_checks.py ?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, i was suggesting to not have a "unit test" for this but instead a github CI job that only runs when global_constants are changed

@eladkal eladkal closed this Oct 16, 2025
@eladkal eladkal deleted the testkube branch October 16, 2025 07:06
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.

2 participants