Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions goldens/Basic_cluster_create.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster create --project=golden-project --zone=us-central1-a --cluster=golden-cluster --tpu-type=tpu7x-8 --spot --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster create for cluster golden-cluster:
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Determine server supported GKE versions for default gke version` is implemented by the following command not running since it is a dry run.
Expand Down Expand Up @@ -60,13 +60,13 @@ metadata:
data:
tpu7x-8: "1"

[XPK] Temp file (51bf42f3a2eb3734b89e650bc26bead709461fa30865893815a078a04f7d7444) content:
[XPK] Temp file (7c34b97d08cdd68493621bfe3e24a9b319c78cf072d0aed6765f003b5700ace7) content:
kind: ConfigMap
apiVersion: v1
metadata:
name: golden-cluster-metadata-configmap
data:
xpk_version: v0.14.3
xpk_version: v0.15.0
capacity_type: SPOT

[XPK] Breaking up a total of 2 commands into 1 batches
Expand Down
2 changes: 1 addition & 1 deletion goldens/Batch.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk batch --project=golden-project --zone=us-central1-a --cluster=golden-cluster --dry-run batch-read.sh
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Find cluster region or zone` is implemented by the following command not running since it is a dry run.
gcloud container clusters list --project=golden-project --filter=name=golden-cluster --format="value(location)"
Expand Down
6 changes: 3 additions & 3 deletions goldens/Cluster_create_for_multi-host_nodepool.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster create --project=golden-project --zone=us-central1-a --cluster=golden-cluster --tpu-type=tpu7x-16 --spot --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster create for cluster golden-cluster:
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Determine server supported GKE versions for default gke version` is implemented by the following command not running since it is a dry run.
Expand Down Expand Up @@ -62,13 +62,13 @@ metadata:
data:
tpu7x-16: "2"

[XPK] Temp file (51bf42f3a2eb3734b89e650bc26bead709461fa30865893815a078a04f7d7444) content:
[XPK] Temp file (7c34b97d08cdd68493621bfe3e24a9b319c78cf072d0aed6765f003b5700ace7) content:
kind: ConfigMap
apiVersion: v1
metadata:
name: golden-cluster-metadata-configmap
data:
xpk_version: v0.14.3
xpk_version: v0.15.0
capacity_type: SPOT

[XPK] Breaking up a total of 2 commands into 1 batches
Expand Down
6 changes: 3 additions & 3 deletions goldens/Cluster_create_private.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster create-pathways --project=golden-project --zone=us-central1-a --cluster=golden-cluster-private --private --tpu-type=v5p-8 --num-slices=1 --default-pool-cpu-machine-type=n1-standard-16 --default-pool-cpu-num-nodes=4 --reservation=golden-reservation --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster create for cluster golden-cluster-private:
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Determine server supported GKE versions for default gke version` is implemented by the following command not running since it is a dry run.
Expand Down Expand Up @@ -67,13 +67,13 @@ metadata:
data:
v5p-8: "1"

[XPK] Temp file (f9f6378e33248722c61046af0ef32f4648b322d22bcdf3ba4b604bd5c6ad859f) content:
[XPK] Temp file (f7400d858f6ceafd19fd07eac58b11edce8dccc8c0001e89ade7a075548d0367) content:
kind: ConfigMap
apiVersion: v1
metadata:
name: golden-cluster-private-metadata-configmap
data:
xpk_version: v0.14.3
xpk_version: v0.15.0
capacity_type: RESERVATION
reservation_id: golden-reservation

Expand Down
6 changes: 3 additions & 3 deletions goldens/Cluster_create_sub-slicing.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ SUB_SLICING_ENABLED=true xpk cluster create --project=golden-project --zone=us-central1-a --cluster=golden-cluster --tpu-type=v6e-4x4 --reservation=golden-reservation --sub-slicing --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Task: `Get reservation deployment type` is implemented by the following command not running since it is a dry run.
gcloud beta compute reservations describe golden-reservation --project=golden-project --zone=us-central1-a --format="value(deploymentType)"
[XPK] Starting cluster create for cluster golden-cluster:
Expand Down Expand Up @@ -66,13 +66,13 @@ metadata:
data:
v6e-16: "4"

[XPK] Temp file (03abe143f4fc53e4cd8a023dec1bfbe6c92dcad72f5a0a230df6d54fb9fe002b) content:
[XPK] Temp file (8c9b219bd16f12ab6c830266c7d63c5594f1c7edd7563e427766ac61009128e5) content:
kind: ConfigMap
apiVersion: v1
metadata:
name: golden-cluster-metadata-configmap
data:
xpk_version: v0.14.3
xpk_version: v0.15.0
capacity_type: RESERVATION
reservation_id: golden-reservation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster create --project=golden-project --zone=us-central1-a --cluster=golden-cluster --tpu-type=tpu7x-8 --spot --cpu-limit=20 --memory-limit=1Gi --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster create for cluster golden-cluster:
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Determine server supported GKE versions for default gke version` is implemented by the following command not running since it is a dry run.
Expand Down Expand Up @@ -60,13 +60,13 @@ metadata:
data:
tpu7x-8: "1"

[XPK] Temp file (51bf42f3a2eb3734b89e650bc26bead709461fa30865893815a078a04f7d7444) content:
[XPK] Temp file (7c34b97d08cdd68493621bfe3e24a9b319c78cf072d0aed6765f003b5700ace7) content:
kind: ConfigMap
apiVersion: v1
metadata:
name: golden-cluster-metadata-configmap
data:
xpk_version: v0.14.3
xpk_version: v0.15.0
capacity_type: SPOT

[XPK] Breaking up a total of 2 commands into 1 batches
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster create --project=golden-project --zone=us-central1-a --cluster=golden-cluster --tpu-type=tpu7x-8 --spot --cpu-limit=1 --memory-limit=1Mi --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster create for cluster golden-cluster:
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Determine server supported GKE versions for default gke version` is implemented by the following command not running since it is a dry run.
Expand Down Expand Up @@ -60,13 +60,13 @@ metadata:
data:
tpu7x-8: "1"

[XPK] Temp file (51bf42f3a2eb3734b89e650bc26bead709461fa30865893815a078a04f7d7444) content:
[XPK] Temp file (7c34b97d08cdd68493621bfe3e24a9b319c78cf072d0aed6765f003b5700ace7) content:
kind: ConfigMap
apiVersion: v1
metadata:
name: golden-cluster-metadata-configmap
data:
xpk_version: v0.14.3
xpk_version: v0.15.0
capacity_type: SPOT

[XPK] Breaking up a total of 2 commands into 1 batches
Expand Down
6 changes: 3 additions & 3 deletions goldens/Cluster_create_with_gb200-4.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster create --project=golden-project --zone=us-central1-a --cluster=golden-cluster --device-type=gb200-4 --reservation=golden-reservation --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster create for cluster golden-cluster:
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Determine server supported GKE versions for default gke version` is implemented by the following command not running since it is a dry run.
Expand Down Expand Up @@ -66,13 +66,13 @@ metadata:
data:
gb200-4: "2"

[XPK] Temp file (03abe143f4fc53e4cd8a023dec1bfbe6c92dcad72f5a0a230df6d54fb9fe002b) content:
[XPK] Temp file (8c9b219bd16f12ab6c830266c7d63c5594f1c7edd7563e427766ac61009128e5) content:
kind: ConfigMap
apiVersion: v1
metadata:
name: golden-cluster-metadata-configmap
data:
xpk_version: v0.14.3
xpk_version: v0.15.0
capacity_type: RESERVATION
reservation_id: golden-reservation

Expand Down
6 changes: 3 additions & 3 deletions goldens/Cluster_create_with_shared_reservation.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster create --project=golden-project --zone=us-central1-a --cluster=golden-cluster --tpu-type=tpu7x-8 --reservation=projects/reservation-project/reservations/golden-reservation --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster create for cluster golden-cluster:
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Determine server supported GKE versions for default gke version` is implemented by the following command not running since it is a dry run.
Expand Down Expand Up @@ -64,13 +64,13 @@ metadata:
data:
tpu7x-8: "1"

[XPK] Temp file (8db9ad667fb3658c85db8248984df3ec0a4556ec66b370ca347916a0135a6d59) content:
[XPK] Temp file (49ab8deff56a353bf92d4374467c99ab65880ff8932b0bf2f9c10788354a112c) content:
kind: ConfigMap
apiVersion: v1
metadata:
name: golden-cluster-metadata-configmap
data:
xpk_version: v0.14.3
xpk_version: v0.15.0
capacity_type: RESERVATION
reservation_id: projects/reservation-project/reservations/golden-reservation

Expand Down
2 changes: 1 addition & 1 deletion goldens/Cluster_delete.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster delete --project=golden-project --zone=us-central1-a --cluster=golden-cluster --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster delete for cluster: golden-cluster
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Find cluster region or zone` is implemented by the following command not running since it is a dry run.
Expand Down
2 changes: 1 addition & 1 deletion goldens/Cluster_delete_force.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster delete --project=golden-project --zone=us-central1-a --cluster=golden-cluster --force --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster delete for cluster: golden-cluster
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Find cluster region or zone` is implemented by the following command not running since it is a dry run.
Expand Down
2 changes: 1 addition & 1 deletion goldens/Job_cancel.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk job cancel golden-job --project=golden-project --zone=us-central1-a --cluster=golden-cluster --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting job cancel for job: ['golden-job']
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Find cluster region or zone` is implemented by the following command not running since it is a dry run.
Expand Down
2 changes: 1 addition & 1 deletion goldens/Job_info.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk job info golden-job --project=golden-project --zone=us-central1-a --cluster=golden-cluster --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Task: `Getting job data` is implemented by the following command not running since it is a dry run.
kubectl-kjob describe slurm golden-job
[XPK] Task: `Getting job info` is implemented by the following command not running since it is a dry run.
Expand Down
2 changes: 1 addition & 1 deletion goldens/Job_list.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk job ls --project=golden-project --zone=us-central1-a --cluster=golden-cluster --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Find cluster region or zone` is implemented by the following command not running since it is a dry run.
gcloud container clusters list --project=golden-project --filter=name=golden-cluster --format="value(location)"
Expand Down
6 changes: 3 additions & 3 deletions goldens/NAP_cluster-create.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster create --project=golden-project --zone=us-central1-a --enable-autoprovisioning --cluster=golden-cluster --tpu-type=tpu7x-8 --on-demand --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster create for cluster golden-cluster:
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Determine server supported GKE versions for default gke version` is implemented by the following command not running since it is a dry run.
Expand Down Expand Up @@ -101,13 +101,13 @@ data:
minimum_chips: "0"
maximum_chips: "4"

[XPK] Temp file (90318545b36cafe80f15c3973d9db1c802a9b0f08f3c4ac766a48f1f668ecf80) content:
[XPK] Temp file (d3d865e6e02cf401780b3f270026845c6ddcbcab6b7e289fcaca01002fcc7d59) content:
kind: ConfigMap
apiVersion: v1
metadata:
name: golden-cluster-metadata-configmap
data:
xpk_version: v0.14.3
xpk_version: v0.15.0
capacity_type: ON_DEMAND

[XPK] Breaking up a total of 2 commands into 1 batches
Expand Down
6 changes: 3 additions & 3 deletions goldens/NAP_cluster-create_with_pathways.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk cluster create-pathways --project=golden-project --zone=us-central1-a --enable-autoprovisioning --cluster=golden-cluster --tpu-type=tpu7x-8 --on-demand --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting cluster create for cluster golden-cluster:
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Determine server supported GKE versions for default gke version` is implemented by the following command not running since it is a dry run.
Expand Down Expand Up @@ -102,13 +102,13 @@ data:
minimum_chips: "0"
maximum_chips: "4"

[XPK] Temp file (90318545b36cafe80f15c3973d9db1c802a9b0f08f3c4ac766a48f1f668ecf80) content:
[XPK] Temp file (d3d865e6e02cf401780b3f270026845c6ddcbcab6b7e289fcaca01002fcc7d59) content:
kind: ConfigMap
apiVersion: v1
metadata:
name: golden-cluster-metadata-configmap
data:
xpk_version: v0.14.3
xpk_version: v0.15.0
capacity_type: ON_DEMAND

[XPK] Breaking up a total of 2 commands into 1 batches
Expand Down
2 changes: 1 addition & 1 deletion goldens/Storage_list.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk storage list --project=golden-project --zone=us-central1-a --cluster=golden-cluster --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
NAME TYPE AUTO MOUNT MOUNT POINT READONLY MANIFEST
------ ------ ------------ ------------- ---------- ----------
[XPK] XPK Done.
2 changes: 1 addition & 1 deletion goldens/Workload_create.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk workload create --project=golden-project --zone=us-central1-a --cluster=golden-cluster --workload=golden-workload --command "bash hello" --tpu-type=v5p-8 --num-slices=1 --script-dir=/tmp --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Task: `Check if Workload Already Exists` is implemented by the following command not running since it is a dry run.
kubectl get workloads -o=custom-columns='Jobset:.metadata.ownerReferences[0].name'
[XPK] Task: `GKE Cluster Get ConfigMap` is implemented by the following command not running since it is a dry run.
Expand Down
2 changes: 1 addition & 1 deletion goldens/Workload_create_pathways.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk workload create-pathways --project=golden-project --zone=us-central1-a --cluster=golden-cluster --workload=golden-workload --command "bash hello" --tpu-type=v5p-8 --num-slices=1 --script-dir=/tmp --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Task: `Check if Workload Already Exists` is implemented by the following command not running since it is a dry run.
kubectl get workloads -o=custom-columns='Jobset:.metadata.ownerReferences[0].name'
[XPK] Task: `GKE Cluster Get ConfigMap` is implemented by the following command not running since it is a dry run.
Expand Down
2 changes: 1 addition & 1 deletion goldens/Workload_create_sub-slicing.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ SUB_SLICING_ENABLED=true xpk workload create --project=golden-project --zone=us-central1-a --cluster=golden-cluster --workload=golden-workload --command "bash hello" --tpu-type=v6e-4x4 --sub-slicing-topology=2x4 --script-dir=/tmp --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Task: `Check if Workload Already Exists` is implemented by the following command not running since it is a dry run.
kubectl get workloads -o=custom-columns='Jobset:.metadata.ownerReferences[0].name'
[XPK] Task: `Get defined topologies` is implemented by the following command not running since it is a dry run.
Expand Down
2 changes: 1 addition & 1 deletion goldens/Workload_delete.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk workload delete --project=golden-project --zone=us-central1-a --cluster=golden-cluster --workload=golden-workload --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting Workload delete
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Find cluster region or zone` is implemented by the following command not running since it is a dry run.
Expand Down
2 changes: 1 addition & 1 deletion goldens/Workload_list.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ xpk workload list --project=golden-project --zone=us-central1-a --cluster=golden-cluster --dry-run
[XPK] Starting xpk v0.14.3
[XPK] Starting xpk v0.15.0
[XPK] Starting workload list
[XPK] Working on golden-project and us-central1-a
[XPK] Task: `Find cluster region or zone` is implemented by the following command not running since it is a dry run.
Expand Down
2 changes: 1 addition & 1 deletion src/xpk/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from ..utils.console import xpk_print

# This is the version for XPK PyPI package
__version__ = 'v0.14.3'
__version__ = 'v0.15.0'
XPK_CURRENT_VERSION = __version__
XPK_CONFIG_FILE = os.path.expanduser('~/.config/xpk/config.yaml')

Expand Down
6 changes: 3 additions & 3 deletions src/xpk/core/telemetry_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_metrics_collector_logs_start_event_correctly():
],
'event_name': 'start',
'event_type': 'commands',
'release_version': 'v0.14.3',
'release_version': 'v0.15.0',
}


Expand Down Expand Up @@ -109,7 +109,7 @@ def test_metrics_collector_logs_complete_event_correctly():
],
'event_name': 'complete',
'event_type': 'commands',
'release_version': 'v0.14.3',
'release_version': 'v0.15.0',
}


Expand All @@ -132,7 +132,7 @@ def test_metrics_collector_logs_custom_event_correctly():
],
'event_name': 'test',
'event_type': 'custom',
'release_version': 'v0.14.3',
'release_version': 'v0.15.0',
}


Expand Down
Loading