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.
Change the workflows so that each one of the pull requests will have their own test group and cluster name
This allows workflows for multiple PRs to run at the same time.
Testing / Documentation
I checked that:
by default the new env variable - RUN_ID - has the number of the current PR
if the run was triggered as a result of push to main (merging the PR) - the RUN_ID will be changed to "main" (this was checked while creating a merge to this branch, not main itself)
the env variable with cluster name is updated successfully
Fixes / Features
This allows workflows for multiple PRs to run at the same time.
Testing / Documentation
I checked that:
The change to jobs.concurrency was made based on this: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs. The cancel-in-progress variable is left as false so that the clusters clean up properly.