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
16 changes: 13 additions & 3 deletions src/sentry/utils/relocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class OrderedTask(Enum):
- "--findings-file"
- "/findings/import-$jsonfile"
$args
timeout: 2400s
timeout: $timeout
"""
)

Expand Down Expand Up @@ -250,7 +250,7 @@ class OrderedTask(Enum):
- "--findings-file"
- "/findings/export-$jsonfile"
$args
timeout: 2400s
timeout: $timeout
"""
)

Expand Down Expand Up @@ -297,7 +297,7 @@ class OrderedTask(Enum):
- "--findings-file"
- "/findings/compare-$jsonfile"
$args
timeout: 300s
timeout: $timeout
"""
)

Expand Down Expand Up @@ -574,6 +574,7 @@ def create_cloudbuild_yaml(relocation: Relocation) -> bytes:
id="import-baseline-config",
step=IMPORT_VALIDATION_STEP_TEMPLATE,
scope="config",
timeout=300,
wait_for=[],
kind=RelocationFile.Kind.BASELINE_CONFIG_VALIDATION_DATA,
args=["--overwrite-configs"],
Expand All @@ -582,6 +583,7 @@ def create_cloudbuild_yaml(relocation: Relocation) -> bytes:
id="import-colliding-users",
step=IMPORT_VALIDATION_STEP_TEMPLATE,
scope="users",
timeout=300,
wait_for=["import-baseline-config"],
kind=RelocationFile.Kind.COLLIDING_USERS_VALIDATION_DATA,
args=filter_usernames_args,
Expand All @@ -590,6 +592,7 @@ def create_cloudbuild_yaml(relocation: Relocation) -> bytes:
id="import-raw-relocation-data",
step=IMPORT_VALIDATION_STEP_TEMPLATE,
scope="organizations",
timeout=2400,
wait_for=["import-colliding-users"],
kind=RelocationFile.Kind.RAW_USER_DATA,
args=filter_org_slugs_args,
Expand All @@ -598,6 +601,7 @@ def create_cloudbuild_yaml(relocation: Relocation) -> bytes:
id="export-baseline-config",
step=EXPORT_VALIDATION_STEP_TEMPLATE,
scope="config",
timeout=300,
wait_for=["import-raw-relocation-data"],
kind=RelocationFile.Kind.BASELINE_CONFIG_VALIDATION_DATA,
args=[],
Expand All @@ -606,6 +610,7 @@ def create_cloudbuild_yaml(relocation: Relocation) -> bytes:
id="export-colliding-users",
step=EXPORT_VALIDATION_STEP_TEMPLATE,
scope="users",
timeout=300,
wait_for=["export-baseline-config"],
kind=RelocationFile.Kind.COLLIDING_USERS_VALIDATION_DATA,
args=filter_usernames_args,
Expand All @@ -614,6 +619,7 @@ def create_cloudbuild_yaml(relocation: Relocation) -> bytes:
id="export-raw-relocation-data",
step=EXPORT_VALIDATION_STEP_TEMPLATE,
scope="organizations",
timeout=2400,
wait_for=["export-colliding-users"],
kind=RelocationFile.Kind.RAW_USER_DATA,
args=filter_org_slugs_args,
Expand All @@ -627,6 +633,7 @@ def create_cloudbuild_yaml(relocation: Relocation) -> bytes:
id="compare-baseline-config",
step=COMPARE_VALIDATION_STEP_TEMPLATE,
scope="config",
timeout=120,
wait_for=["export-raw-relocation-data"],
kind=RelocationFile.Kind.BASELINE_CONFIG_VALIDATION_DATA,
args=[],
Expand All @@ -635,6 +642,7 @@ def create_cloudbuild_yaml(relocation: Relocation) -> bytes:
id="compare-colliding-users",
step=COMPARE_VALIDATION_STEP_TEMPLATE,
scope="users",
timeout=120,
wait_for=["compare-baseline-config"],
kind=RelocationFile.Kind.COLLIDING_USERS_VALIDATION_DATA,
args=[],
Expand Down Expand Up @@ -664,6 +672,7 @@ def create_cloudbuild_validation_step(
scope: str,
wait_for: list[str],
kind: RelocationFile.Kind,
timeout: int,
args: list[str],
) -> str:
return step.substitute(
Expand All @@ -674,5 +683,6 @@ def create_cloudbuild_validation_step(
kind=str(kind),
scope=scope,
tarfile=kind.to_filename("tar"),
timeout=str(timeout) + "s",
wait_for=make_cloudbuild_step_args(3, wait_for),
)
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ steps:
- --overwrite-configs
id: import-baseline-config
name: gcr.io/cloud-builders/docker
timeout: 2400s
timeout: 300s
waitFor:
- copy-inputs-being-validated
- create-working-dirs
Expand Down Expand Up @@ -157,7 +157,7 @@ steps:
- importing
id: import-colliding-users
name: gcr.io/cloud-builders/docker
timeout: 2400s
timeout: 300s
waitFor:
- copy-inputs-being-validated
- create-working-dirs
Expand Down Expand Up @@ -221,7 +221,7 @@ steps:
- /findings/export-baseline-config.json
id: export-baseline-config
name: gcr.io/cloud-builders/docker
timeout: 2400s
timeout: 300s
waitFor:
- import-baseline-config
- import-raw-relocation-data
Expand Down Expand Up @@ -254,7 +254,7 @@ steps:
- importing
id: export-colliding-users
name: gcr.io/cloud-builders/docker
timeout: 2400s
timeout: 300s
waitFor:
- import-colliding-users
- export-baseline-config
Expand Down Expand Up @@ -329,7 +329,7 @@ steps:
- /findings/compare-baseline-config.json
id: compare-baseline-config
name: gcr.io/cloud-builders/docker
timeout: 300s
timeout: 120s
waitFor:
- export-baseline-config
- export-raw-relocation-data
Expand Down Expand Up @@ -361,7 +361,7 @@ steps:
- /findings/compare-colliding-users.json
id: compare-colliding-users
name: gcr.io/cloud-builders/docker
timeout: 300s
timeout: 120s
waitFor:
- export-colliding-users
- compare-baseline-config
Expand Down