fix(tightly-coupled): pin k8s step IO manager to shared storage
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 15m54s
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 15m54s
This commit is contained in:
@@ -5,6 +5,7 @@ import pytest
|
||||
from distributed_execution.preflight import check_env_vars, describe_pod_identity
|
||||
from distributed_execution.repository import defs
|
||||
from distributed_execution.tightly_coupled.jobs import (
|
||||
SHARED_IO_BASE_DIR,
|
||||
STEP_K8S_CONFIG,
|
||||
tightly_coupled_in_process_job,
|
||||
tightly_coupled_k8s_job,
|
||||
@@ -40,12 +41,18 @@ def test_k8s_step_pods_mount_shared_dagster_storage():
|
||||
container_config = STEP_K8S_CONFIG["container_config"]
|
||||
pod_spec_config = STEP_K8S_CONFIG["pod_spec_config"]
|
||||
|
||||
assert {"name": "DAGSTER_HOME", "value": "/dagster/shared/distributed-execution"} in container_config["env"]
|
||||
assert {"name": "dagster-shared-storage", "mount_path": "/dagster/shared"} in container_config["volume_mounts"]
|
||||
assert {
|
||||
"name": "dagster-shared-storage",
|
||||
"persistent_volume_claim": {"claim_name": "dagster-shared-pvc"},
|
||||
} in pod_spec_config["volumes"]
|
||||
assert SHARED_IO_BASE_DIR.startswith("/dagster/shared/")
|
||||
|
||||
|
||||
def test_k8s_job_pins_io_manager_to_shared_storage():
|
||||
io_manager = tightly_coupled_k8s_job.resource_defs["io_manager"]
|
||||
resolved = io_manager.apply_config_mapping({}).value
|
||||
assert resolved["config"]["base_dir"] == SHARED_IO_BASE_DIR
|
||||
|
||||
|
||||
def test_in_process_job_runs_end_to_end():
|
||||
|
||||
Reference in New Issue
Block a user