AI-Hypercomputer / xpk

xpk (Accelerated Processing Kit, pronounced x-p-k,) is a software tool to help Cloud developers to orchestrate training jobs on accelerators such as TPUs and GPUs on GKE.
Apache License 2.0
81 stars 23 forks source link

Update the CloudDNS check. #153

Closed lukebaumann closed 1 month ago

lukebaumann commented 5 months ago

If there is an upgrad available for the cluster, additional text is printed to stderr

* - There is an upgrade available for your cluster(s).

To upgrade nodes to the latest available version, run
  $ gcloud container clusters upgrade <cluster>

That text is captured by run_command_for_value and a ValueError is returned when trying to convert it to an integer.

The fix is to inspect the return_code of grep instead of the text output of wc -l.

Fixes / Features

-

Testing / Documentation

Testing details.

lukebaumann commented 5 months ago

I see this is not the only place this type of check occurs.

Obliviour commented 5 months ago

Thank you for the change Luke! I added you to the repo as a writer so you can create a new branch based PR. I think the forking method doesn't work with our build tests.

lukebaumann commented 4 months ago

Thank you for the change Luke! I added you to the repo as a writer so you can create a new branch based PR. I think the forking method doesn't work with our build tests.

Can you add me again? The invite expired