diff --git a/libs/getsentry.libsonnet b/libs/getsentry.libsonnet index 1c71d5b..0820725 100644 --- a/libs/getsentry.libsonnet +++ b/libs/getsentry.libsonnet @@ -19,6 +19,7 @@ ], // Test regions will deploy in parallel to the regions above test_regions: [ + 's4s2', ], is_st(region):: (region == 's4s' || std.startsWith(region, 'customer-')), } diff --git a/test/pipedream.js b/test/pipedream.js index a19c95b..71c853e 100644 --- a/test/pipedream.js +++ b/test/pipedream.js @@ -171,6 +171,7 @@ test("ensure exclude regions removes regions without trigger pipeline in serial" "deploy-example-customer-4", "deploy-example-customer-7", "deploy-example-de", + "deploy-example-s4s2", "rollback-example", ]); @@ -226,6 +227,7 @@ test("ensure exclude regions removes regions without trigger pipeline in paralle "deploy-example-customer-4", "deploy-example-customer-7", "deploy-example-de", + "deploy-example-s4s2", "rollback-example", ]); @@ -278,6 +280,7 @@ test("ensure exclude regions removes regions with trigger pipeline in serial", a "deploy-example-customer-4", "deploy-example-customer-7", "deploy-example-de", + "deploy-example-s4s2", "rollback-example", ]); @@ -338,6 +341,7 @@ test("ensure exclude regions removes regions with trigger pipeline in parallel", "deploy-example-customer-4", "deploy-example-customer-7", "deploy-example-de", + "deploy-example-s4s2", "rollback-example", ]); @@ -398,6 +402,7 @@ test("ensure include regions adds regions without trigger pipeline in serial", a "deploy-example-customer-4", "deploy-example-customer-7", "deploy-example-de", + "deploy-example-s4s2", "rollback-example", ]); @@ -484,6 +489,7 @@ test("ensure include regions adds regions without trigger pipeline in parallel", "deploy-example-customer-4", "deploy-example-customer-7", "deploy-example-de", + "deploy-example-s4s2", "rollback-example", ]); @@ -559,6 +565,7 @@ test("ensure include regions adds regions with trigger pipeline in parallel", as "deploy-example-customer-4", "deploy-example-customer-7", "deploy-example-de", + "deploy-example-s4s2", "rollback-example", ]); @@ -637,6 +644,7 @@ test("ensure include regions adds regions with trigger pipeline in serial", asyn "deploy-example-customer-4", "deploy-example-customer-7", "deploy-example-de", + "deploy-example-s4s2", "rollback-example", ]); diff --git a/test/testdata/goldens/getsentry/regions.jsonnet_output-files.golden b/test/testdata/goldens/getsentry/regions.jsonnet_output-files.golden index 67c88a2..487b865 100644 --- a/test/testdata/goldens/getsentry/regions.jsonnet_output-files.golden +++ b/test/testdata/goldens/getsentry/regions.jsonnet_output-files.golden @@ -8,6 +8,7 @@ "customer-1", "customer-2", "customer-4", - "customer-7" + "customer-7", + "s4s2" ] } diff --git a/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_output-files.golden index 139f1a4..67a5f6d 100644 --- a/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_output-files.golden @@ -227,6 +227,44 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "deploy-example-us.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_single-file.golden index ff6e957..5805b98 100644 --- a/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_single-file.golden @@ -199,6 +199,39 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "deploy-example-us": { "display_order": 4, "group": "example", diff --git a/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_output-files.golden index d812521..59974d9 100644 --- a/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_output-files.golden @@ -247,6 +247,44 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "deploy-example-us.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_single-file.golden index f14572a..d943dac 100644 --- a/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_single-file.golden @@ -219,6 +219,39 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "deploy-example-us": { "display_order": 4, "group": "example", diff --git a/test/testdata/goldens/pipedream/exclude-regions-autodeploy-parallel.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/exclude-regions-autodeploy-parallel.jsonnet_output-files.golden index 96d582e..8124781 100644 --- a/test/testdata/goldens/pipedream/exclude-regions-autodeploy-parallel.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/exclude-regions-autodeploy-parallel.jsonnet_output-files.golden @@ -189,6 +189,44 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 7, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "rollback-example.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/exclude-regions-autodeploy-parallel.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/exclude-regions-autodeploy-parallel.jsonnet_single-file.golden index 01a773d..e48f25a 100644 --- a/test/testdata/goldens/pipedream/exclude-regions-autodeploy-parallel.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/exclude-regions-autodeploy-parallel.jsonnet_single-file.golden @@ -166,6 +166,39 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 7, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "rollback-example": { "display_order": 1, "environment_variables": { diff --git a/test/testdata/goldens/pipedream/exclude-regions-autodeploy-serial.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/exclude-regions-autodeploy-serial.jsonnet_output-files.golden index 8b4852c..85c8114 100644 --- a/test/testdata/goldens/pipedream/exclude-regions-autodeploy-serial.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/exclude-regions-autodeploy-serial.jsonnet_output-files.golden @@ -205,6 +205,44 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 7, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "rollback-example.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/exclude-regions-autodeploy-serial.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/exclude-regions-autodeploy-serial.jsonnet_single-file.golden index d300e92..18b1705 100644 --- a/test/testdata/goldens/pipedream/exclude-regions-autodeploy-serial.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/exclude-regions-autodeploy-serial.jsonnet_single-file.golden @@ -182,6 +182,39 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 7, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "rollback-example": { "display_order": 1, "environment_variables": { diff --git a/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-parallel.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-parallel.jsonnet_output-files.golden index 8e1782a..c47fae4 100644 --- a/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-parallel.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-parallel.jsonnet_output-files.golden @@ -209,6 +209,48 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 7, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "deploy-example.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-parallel.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-parallel.jsonnet_single-file.golden index 3a2224d..3067684 100644 --- a/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-parallel.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-parallel.jsonnet_single-file.golden @@ -218,6 +218,43 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 7, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "rollback-example": { "display_order": 1, "environment_variables": { diff --git a/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-serial.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-serial.jsonnet_output-files.golden index ce7cfbf..5050f16 100644 --- a/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-serial.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-serial.jsonnet_output-files.golden @@ -209,6 +209,48 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 7, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "deploy-example.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-serial.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-serial.jsonnet_single-file.golden index 37dee25..30cdad0 100644 --- a/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-serial.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/exclude-regions-no-autodeploy-serial.jsonnet_single-file.golden @@ -218,6 +218,43 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 7, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "rollback-example": { "display_order": 1, "environment_variables": { diff --git a/test/testdata/goldens/pipedream/include-regions-autodeploy-parallel.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/include-regions-autodeploy-parallel.jsonnet_output-files.golden index 8a75cbc..9c57182 100644 --- a/test/testdata/goldens/pipedream/include-regions-autodeploy-parallel.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/include-regions-autodeploy-parallel.jsonnet_output-files.golden @@ -227,6 +227,44 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 8, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "rollback-example.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/include-regions-autodeploy-parallel.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/include-regions-autodeploy-parallel.jsonnet_single-file.golden index 83c43d7..5bd4748 100644 --- a/test/testdata/goldens/pipedream/include-regions-autodeploy-parallel.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/include-regions-autodeploy-parallel.jsonnet_single-file.golden @@ -199,6 +199,39 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 8, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "rollback-example": { "display_order": 1, "environment_variables": { diff --git a/test/testdata/goldens/pipedream/include-regions-autodeploy-serial.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/include-regions-autodeploy-serial.jsonnet_output-files.golden index eb173a5..9b39f28 100644 --- a/test/testdata/goldens/pipedream/include-regions-autodeploy-serial.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/include-regions-autodeploy-serial.jsonnet_output-files.golden @@ -247,6 +247,44 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 8, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "rollback-example.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/include-regions-autodeploy-serial.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/include-regions-autodeploy-serial.jsonnet_single-file.golden index 8b03236..9d4babb 100644 --- a/test/testdata/goldens/pipedream/include-regions-autodeploy-serial.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/include-regions-autodeploy-serial.jsonnet_single-file.golden @@ -219,6 +219,39 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 8, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "rollback-example": { "display_order": 1, "environment_variables": { diff --git a/test/testdata/goldens/pipedream/include-regions-no-autodeploy-parallel.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/include-regions-no-autodeploy-parallel.jsonnet_output-files.golden index 9e6d430..1a193f5 100644 --- a/test/testdata/goldens/pipedream/include-regions-no-autodeploy-parallel.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/include-regions-no-autodeploy-parallel.jsonnet_output-files.golden @@ -251,6 +251,48 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 8, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "deploy-example.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/include-regions-no-autodeploy-parallel.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/include-regions-no-autodeploy-parallel.jsonnet_single-file.golden index 3e4fcdd..2a30e46 100644 --- a/test/testdata/goldens/pipedream/include-regions-no-autodeploy-parallel.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/include-regions-no-autodeploy-parallel.jsonnet_single-file.golden @@ -255,6 +255,43 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 8, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "rollback-example": { "display_order": 1, "environment_variables": { diff --git a/test/testdata/goldens/pipedream/include-regions-no-autodeploy-serial.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/include-regions-no-autodeploy-serial.jsonnet_output-files.golden index be928b3..5246d44 100644 --- a/test/testdata/goldens/pipedream/include-regions-no-autodeploy-serial.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/include-regions-no-autodeploy-serial.jsonnet_output-files.golden @@ -251,6 +251,48 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 8, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "deploy-example.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/include-regions-no-autodeploy-serial.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/include-regions-no-autodeploy-serial.jsonnet_single-file.golden index bc1434e..b298137 100644 --- a/test/testdata/goldens/pipedream/include-regions-no-autodeploy-serial.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/include-regions-no-autodeploy-serial.jsonnet_single-file.golden @@ -255,6 +255,43 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 8, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "rollback-example": { "display_order": 1, "environment_variables": { diff --git a/test/testdata/goldens/pipedream/include-regions-parallel.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/include-regions-parallel.jsonnet_output-files.golden index 8a75cbc..9c57182 100644 --- a/test/testdata/goldens/pipedream/include-regions-parallel.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/include-regions-parallel.jsonnet_output-files.golden @@ -227,6 +227,44 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 8, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "rollback-example.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/include-regions-parallel.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/include-regions-parallel.jsonnet_single-file.golden index 83c43d7..5bd4748 100644 --- a/test/testdata/goldens/pipedream/include-regions-parallel.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/include-regions-parallel.jsonnet_single-file.golden @@ -199,6 +199,39 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 8, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "rollback-example": { "display_order": 1, "environment_variables": { diff --git a/test/testdata/goldens/pipedream/minimal-config.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/minimal-config.jsonnet_output-files.golden index 8a52223..d99dae4 100644 --- a/test/testdata/goldens/pipedream/minimal-config.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/minimal-config.jsonnet_output-files.golden @@ -247,6 +247,44 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "deploy-example-us.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/minimal-config.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/minimal-config.jsonnet_single-file.golden index 8e84c1d..fff7037 100644 --- a/test/testdata/goldens/pipedream/minimal-config.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/minimal-config.jsonnet_single-file.golden @@ -219,6 +219,39 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "deploy-example-us": { "display_order": 4, "group": "example", diff --git a/test/testdata/goldens/pipedream/no-autodeploy-parallel.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/no-autodeploy-parallel.jsonnet_output-files.golden index 4d0018e..af81248 100644 --- a/test/testdata/goldens/pipedream/no-autodeploy-parallel.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/no-autodeploy-parallel.jsonnet_output-files.golden @@ -449,6 +449,81 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "ready": { + "jobs": { + "ready": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + }, + { + "wait": { + "approval": { + "type": "manual" + }, + "jobs": { + "wait": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + }, + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "deploy-example-us.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/no-autodeploy-parallel.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/no-autodeploy-parallel.jsonnet_single-file.golden index 1389010..eea342b 100644 --- a/test/testdata/goldens/pipedream/no-autodeploy-parallel.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/no-autodeploy-parallel.jsonnet_single-file.golden @@ -454,6 +454,76 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "ready": { + "jobs": { + "ready": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + }, + { + "wait": { + "approval": { + "type": "manual" + }, + "jobs": { + "wait": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + }, + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "deploy-example-us": { "display_order": 4, "group": "example", diff --git a/test/testdata/goldens/pipedream/no-autodeploy-serial.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/no-autodeploy-serial.jsonnet_output-files.golden index 9aa8532..14eea13 100644 --- a/test/testdata/goldens/pipedream/no-autodeploy-serial.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/no-autodeploy-serial.jsonnet_output-files.golden @@ -449,6 +449,81 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "ready": { + "jobs": { + "ready": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + }, + { + "wait": { + "approval": { + "type": "manual" + }, + "jobs": { + "wait": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + }, + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "deploy-example-us.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/no-autodeploy-serial.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/no-autodeploy-serial.jsonnet_single-file.golden index df8b04d..fdf9abd 100644 --- a/test/testdata/goldens/pipedream/no-autodeploy-serial.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/no-autodeploy-serial.jsonnet_single-file.golden @@ -454,6 +454,76 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "deploy-example-pipeline-complete": { + "pipeline": "deploy-example", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "ready": { + "jobs": { + "ready": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + }, + { + "wait": { + "approval": { + "type": "manual" + }, + "jobs": { + "wait": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + }, + { + "example_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "deploy-example-us": { "display_order": 4, "group": "example", diff --git a/test/testdata/goldens/pipedream/rollback-override-final-stage.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/rollback-override-final-stage.jsonnet_output-files.golden index 910e5cb..54fbdae 100644 --- a/test/testdata/goldens/pipedream/rollback-override-final-stage.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/rollback-override-final-stage.jsonnet_output-files.golden @@ -265,6 +265,47 @@ } } }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "other_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, "deploy-example-us.yaml": { "format_version": 10, "pipelines": { diff --git a/test/testdata/goldens/pipedream/rollback-override-final-stage.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/rollback-override-final-stage.jsonnet_single-file.golden index a427fcc..99a03e1 100644 --- a/test/testdata/goldens/pipedream/rollback-override-final-stage.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/rollback-override-final-stage.jsonnet_single-file.golden @@ -237,6 +237,42 @@ } ] }, + "deploy-example-s4s2": { + "display_order": 9, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git", + "shallow_clone": true + } + }, + "region": "s4s2", + "stages": [ + { + "example_stage": { } + }, + { + "other_stage": { } + }, + { + "pipeline-complete": { + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, "deploy-example-us": { "display_order": 4, "group": "example",