Skip to content

CLOUDP-221656: Added an openshift test cleaner to the regular cleaner job #2360

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

Merged
merged 4 commits into from
Jun 13, 2025

Conversation

igor-karpukhin
Copy link
Collaborator

Summary

Added an openshift test cleaner to the regular cleaner job

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • Have you checked for release_note changes?
  • Have you signed our CLA?

@igor-karpukhin igor-karpukhin requested a review from a team as a code owner May 30, 2025 13:35
@@ -48,6 +48,12 @@ jobs:

echo credentials=$(realpath ~/gcp_sa_cred.json) >> $GITHUB_OUTPUT

- name: Download tools for openshift test cleaner
run: |
wget https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest-4.6/openshift-client-linux.tar.gz -O openshift.tar.gz -q
Copy link
Collaborator

Choose a reason for hiding this comment

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

4.6 is very old, also I am a bit concerned about keeping this up-to-date. Can't we inline this in the script itself?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is from the upgrade test, which still works. We use a limited set of OC commands. But we can bump them to the latest one

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we can, but this is only needed for this script. You can't launch it locally anyway

else
for ns in $namespaces; do
echo "Deleting namespace: $ns"
oc delete namespace --force "$ns" --wait=true --timeout=60s || true
Copy link
Collaborator

@s-urbaniak s-urbaniak May 30, 2025

Choose a reason for hiding this comment

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

i am thinking, why are we scripting this? can we write a small go based program to delete the namespaces?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why? That's way easier with existing tools to just find namespace to delete and delete them, no?

Copy link
Collaborator

Choose a reason for hiding this comment

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

i was just thinking that we have one less bash script 😆 no hard opinion here tbh.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, I see :) Then let's keep it as is

Copy link
Collaborator

@s-urbaniak s-urbaniak left a comment

Choose a reason for hiding this comment

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

I would like to see this being devbox'ified, it's the reason we introduced it in the first place to have one place to see all used versions.

@igor-karpukhin igor-karpukhin force-pushed the CLOUDP-221656/openshift-cleaner branch from de042a2 to e4bd923 Compare June 13, 2025 09:43
@igor-karpukhin igor-karpukhin merged commit 4236ec1 into main Jun 13, 2025
19 checks passed
@igor-karpukhin igor-karpukhin deleted the CLOUDP-221656/openshift-cleaner branch June 13, 2025 10:28
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.

3 participants