diff --git a/libs/getsentry.libsonnet b/libs/getsentry.libsonnet index 0820725..fb6e95a 100644 --- a/libs/getsentry.libsonnet +++ b/libs/getsentry.libsonnet @@ -5,7 +5,7 @@ { // These regions are user facing deployments prod_regions: [ - 's4s', + 's4s2', 'de', 'us', // 'control' is excluded by default and must be explicitly included @@ -19,7 +19,7 @@ ], // Test regions will deploy in parallel to the regions above test_regions: [ - 's4s2', + 's4s', ], is_st(region):: (region == 's4s' || std.startsWith(region, 'customer-')), } diff --git a/test/pipedream.js b/test/pipedream.js index 71c853e..bd913ec 100644 --- a/test/pipedream.js +++ b/test/pipedream.js @@ -9,7 +9,8 @@ test("ensure manual deploys is expected structure in serial", async (t) => { t.deepEqual(Object.keys(got), ["format_version", "pipelines"]); t.truthy(got.pipelines["deploy-example"]); - t.truthy(got.pipelines["deploy-example-s4s"]); + t.truthy(got.pipelines["deploy-example-s4s2"]); + t.truthy(got.pipelines["deploy-example-s4s"]); // s4s is now a test region // Ensure the trigger has the right initial material const trigger = got.pipelines["deploy-example"]; @@ -22,7 +23,22 @@ test("ensure manual deploys is expected structure in serial", async (t) => { }, }); - // Ensure s4s depends on the trigger material + // Ensure s4s2 depends on the trigger material (first prod region) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.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, + }, + }); + + // Ensure s4s (test region) depends on trigger pipeline, deployed in parallel const s4s = got.pipelines["deploy-example-s4s"]; t.deepEqual(s4s.materials, { "deploy-example-pipeline-complete": { @@ -46,6 +62,7 @@ test("ensure manual deploys is expected structure in parallel", async (t) => { t.deepEqual(Object.keys(got), ["format_version", "pipelines"]); t.truthy(got.pipelines["deploy-example"]); + t.truthy(got.pipelines["deploy-example-s4s2"]); t.truthy(got.pipelines["deploy-example-s4s"]); // Ensure the trigger has the right initial material @@ -59,7 +76,22 @@ test("ensure manual deploys is expected structure in parallel", async (t) => { }, }); - // Ensure s4s depends on the trigger material + // Ensure s4s2 depends on the trigger material (first prod region in parallel) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.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, + }, + }); + + // Ensure s4s also depends on the trigger material (parallel deploy) const s4s = got.pipelines["deploy-example-s4s"]; t.deepEqual(s4s.materials, { "deploy-example-pipeline-complete": { @@ -83,10 +115,22 @@ test("ensure auto deploys is expected structure in serial", async (t) => { t.deepEqual(Object.keys(got), ["format_version", "pipelines"]); t.falsy(got.pipelines["deploy-example"]); - t.truthy(got.pipelines["deploy-example-s4s"]); + t.truthy(got.pipelines["deploy-example-s4s2"]); + t.truthy(got.pipelines["deploy-example-s4s"]); // s4s is now a test region t.truthy(got.pipelines["rollback-example"]); - // Ensure s4s has just the repo material + // Ensure s4s2 has just the repo material (first prod region) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.materials, { + example_repo: { + branch: "master", + destination: "example", + git: "git@github.com:getsentry/example.git", + shallow_clone: true, + }, + }); + + // Ensure s4s (test region) has just the repo material (deployed in parallel) const s4s = got.pipelines["deploy-example-s4s"]; t.deepEqual(s4s.materials, { example_repo: { @@ -97,13 +141,14 @@ test("ensure auto deploys is expected structure in serial", async (t) => { }, }); + // Rollback only includes prod regions, not test regions const r = got.pipelines["rollback-example"]; t.deepEqual(r["environment_variables"], { ALL_PIPELINE_FLAGS: - "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", GOCD_ACCESS_TOKEN: "{{SECRET:[devinfra][gocd_access_token]}}", REGION_PIPELINE_FLAGS: - "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ROLLBACK_MATERIAL_NAME: "example_repo", ROLLBACK_STAGE: "example_stage", TRIGGERED_BY: "", @@ -125,10 +170,22 @@ test("ensure auto deploys is expected structure in parallel", async (t) => { t.deepEqual(Object.keys(got), ["format_version", "pipelines"]); t.falsy(got.pipelines["deploy-example"]); - t.truthy(got.pipelines["deploy-example-s4s"]); + t.truthy(got.pipelines["deploy-example-s4s2"]); + t.truthy(got.pipelines["deploy-example-s4s"]); // s4s is now a test region t.truthy(got.pipelines["rollback-example"]); - // Ensure s4s has just the repo material + // Ensure s4s2 has just the repo material (parallel deploy, no upstream) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.materials, { + example_repo: { + branch: "master", + destination: "example", + git: "git@github.com:getsentry/example.git", + shallow_clone: true, + }, + }); + + // Ensure s4s (test region) also has just the repo material (parallel deploy) const s4s = got.pipelines["deploy-example-s4s"]; t.deepEqual(s4s.materials, { example_repo: { @@ -139,13 +196,14 @@ test("ensure auto deploys is expected structure in parallel", async (t) => { }, }); + // Rollback only includes prod regions, not test regions const r = got.pipelines["rollback-example"]; t.deepEqual(r["environment_variables"], { ALL_PIPELINE_FLAGS: - "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", GOCD_ACCESS_TOKEN: "{{SECRET:[devinfra][gocd_access_token]}}", REGION_PIPELINE_FLAGS: - "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ROLLBACK_MATERIAL_NAME: "example_repo", ROLLBACK_STAGE: "example_stage", TRIGGERED_BY: "", @@ -175,9 +233,24 @@ test("ensure exclude regions removes regions without trigger pipeline in serial" "rollback-example", ]); - // Ensure de has just the repo material + // Ensure s4s2 has just the repo material (first region after exclusions) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.materials, { + example_repo: { + branch: "master", + destination: "example", + git: "git@github.com:getsentry/example.git", + shallow_clone: true, + }, + }); + + // Ensure de depends on s4s2 const de = got.pipelines["deploy-example-de"]; t.deepEqual(de.materials, { + "deploy-example-s4s2-pipeline-complete": { + pipeline: "deploy-example-s4s2", + stage: "pipeline-complete", + }, example_repo: { branch: "master", destination: "example", @@ -207,11 +280,11 @@ test("ensure exclude regions removes regions without trigger pipeline in serial" const regionPipelines = r.environment_variables["REGION_PIPELINE_FLAGS"]; t.deepEqual( allPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); t.deepEqual( regionPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); }); @@ -231,7 +304,18 @@ test("ensure exclude regions removes regions without trigger pipeline in paralle "rollback-example", ]); - // Ensure de has just the repo material + // Ensure s4s2 has just the repo material (parallel deploy) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.materials, { + example_repo: { + branch: "master", + destination: "example", + git: "git@github.com:getsentry/example.git", + shallow_clone: true, + }, + }); + + // Ensure de has just the repo material (parallel deploy) const de = got.pipelines["deploy-example-de"]; t.deepEqual(de.materials, { example_repo: { @@ -242,7 +326,7 @@ test("ensure exclude regions removes regions without trigger pipeline in paralle }, }); - // Ensure customer-2 has pipeline material too + // Ensure customer-2 has just the repo material (parallel deploy) const c2 = got.pipelines["deploy-example-customer-2"]; t.deepEqual(c2.materials, { example_repo: { @@ -259,11 +343,11 @@ test("ensure exclude regions removes regions without trigger pipeline in paralle const regionPipelines = r.environment_variables["REGION_PIPELINE_FLAGS"]; t.deepEqual( allPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); t.deepEqual( regionPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); }); @@ -284,9 +368,9 @@ test("ensure exclude regions removes regions with trigger pipeline in serial", a "rollback-example", ]); - // Ensure de has just the repo material - const de = got.pipelines["deploy-example-de"]; - t.deepEqual(de.materials, { + // Ensure s4s2 depends on trigger (first region after exclusions, serial) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.materials, { "deploy-example-pipeline-complete": { pipeline: "deploy-example", stage: "pipeline-complete", @@ -299,6 +383,21 @@ test("ensure exclude regions removes regions with trigger pipeline in serial", a }, }); + // Ensure de depends on s4s2 + const de = got.pipelines["deploy-example-de"]; + t.deepEqual(de.materials, { + "deploy-example-s4s2-pipeline-complete": { + pipeline: "deploy-example-s4s2", + stage: "pipeline-complete", + }, + example_repo: { + branch: "master", + destination: "example", + git: "git@github.com:getsentry/example.git", + shallow_clone: true, + }, + }); + // Ensure customer-2 has pipeline material too const c2 = got.pipelines["deploy-example-customer-2"]; t.deepEqual(c2.materials, { @@ -320,11 +419,11 @@ test("ensure exclude regions removes regions with trigger pipeline in serial", a const regionPipelines = r.environment_variables["REGION_PIPELINE_FLAGS"]; t.deepEqual( allPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", ); t.deepEqual( regionPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); }); @@ -345,7 +444,22 @@ test("ensure exclude regions removes regions with trigger pipeline in parallel", "rollback-example", ]); - // Ensure de has just the repo material + // Ensure s4s2 depends on trigger (parallel deploy) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.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, + }, + }); + + // Ensure de depends on trigger (parallel deploy) const de = got.pipelines["deploy-example-de"]; t.deepEqual(de.materials, { "deploy-example-pipeline-complete": { @@ -360,7 +474,7 @@ test("ensure exclude regions removes regions with trigger pipeline in parallel", }, }); - // Ensure customer-2 has pipeline material too + // Ensure customer-2 depends on trigger (parallel deploy) const c2 = got.pipelines["deploy-example-customer-2"]; t.deepEqual(c2.materials, { "deploy-example-pipeline-complete": { @@ -381,11 +495,11 @@ test("ensure exclude regions removes regions with trigger pipeline in parallel", const regionPipelines = r.environment_variables["REGION_PIPELINE_FLAGS"]; t.deepEqual( allPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", ); t.deepEqual( regionPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); }); @@ -406,9 +520,24 @@ test("ensure include regions adds regions without trigger pipeline in serial", a "rollback-example", ]); - // Ensure de has just the repo material + // Ensure s4s2 has just the repo material (first region) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.materials, { + example_repo: { + branch: "master", + destination: "example", + git: "git@github.com:getsentry/example.git", + shallow_clone: true, + }, + }); + + // Ensure de depends on s4s2 const de = got.pipelines["deploy-example-de"]; t.deepEqual(de.materials, { + "deploy-example-s4s2-pipeline-complete": { + pipeline: "deploy-example-s4s2", + stage: "pipeline-complete", + }, example_repo: { branch: "master", destination: "example", @@ -417,7 +546,7 @@ test("ensure include regions adds regions without trigger pipeline in serial", a }, }); - // Ensure control is included + // Ensure control depends on de const control = got.pipelines["deploy-example-control"]; t.deepEqual(control.materials, { "deploy-example-de-pipeline-complete": { @@ -468,11 +597,11 @@ test("ensure include regions adds regions without trigger pipeline in serial", a const regionPipelines = r.environment_variables["REGION_PIPELINE_FLAGS"]; t.deepEqual( allPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); t.deepEqual( regionPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); }); @@ -493,7 +622,18 @@ test("ensure include regions adds regions without trigger pipeline in parallel", "rollback-example", ]); - // Ensure de has just the repo material + // Ensure s4s2 has just the repo material (parallel deploy) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.materials, { + example_repo: { + branch: "master", + destination: "example", + git: "git@github.com:getsentry/example.git", + shallow_clone: true, + }, + }); + + // Ensure de has just the repo material (parallel deploy) const de = got.pipelines["deploy-example-de"]; t.deepEqual(de.materials, { example_repo: { @@ -504,7 +644,7 @@ test("ensure include regions adds regions without trigger pipeline in parallel", }, }); - // Ensure control is included + // Ensure control has just the repo material (parallel deploy) const control = got.pipelines["deploy-example-control"]; t.deepEqual(control.materials, { example_repo: { @@ -515,7 +655,7 @@ test("ensure include regions adds regions without trigger pipeline in parallel", }, }); - // Ensure customer-1 depends on control + // Ensure customer-1 has just the repo material (parallel deploy) const c1 = got.pipelines["deploy-example-customer-1"]; t.deepEqual(c1.materials, { example_repo: { @@ -526,7 +666,7 @@ test("ensure include regions adds regions without trigger pipeline in parallel", }, }); - // Ensure customer-2 has pipeline material too + // Ensure customer-2 has just the repo material (parallel deploy) const c2 = got.pipelines["deploy-example-customer-2"]; t.deepEqual(c2.materials, { example_repo: { @@ -543,11 +683,11 @@ test("ensure include regions adds regions without trigger pipeline in parallel", const regionPipelines = r.environment_variables["REGION_PIPELINE_FLAGS"]; t.deepEqual( allPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); t.deepEqual( regionPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); }); @@ -569,7 +709,22 @@ test("ensure include regions adds regions with trigger pipeline in parallel", as "rollback-example", ]); - // Ensure de has just the repo material + // Ensure s4s2 depends on the trigger (parallel deploy) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.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, + }, + }); + + // Ensure de depends on the trigger (parallel deploy) const de = got.pipelines["deploy-example-de"]; t.deepEqual(de.materials, { "deploy-example-pipeline-complete": { @@ -584,7 +739,7 @@ test("ensure include regions adds regions with trigger pipeline in parallel", as }, }); - // Ensure control is included and also depends on the trigger pipeline + // Ensure control depends on the trigger (parallel deploy) const control = got.pipelines["deploy-example-control"]; t.deepEqual(control.materials, { "deploy-example-pipeline-complete": { @@ -599,7 +754,7 @@ test("ensure include regions adds regions with trigger pipeline in parallel", as }, }); - // Ensure customer-1 depends on control + // Ensure customer-1 depends on the trigger (parallel deploy) const c1 = got.pipelines["deploy-example-customer-1"]; t.deepEqual(c1.materials, { "deploy-example-pipeline-complete": { @@ -614,7 +769,7 @@ test("ensure include regions adds regions with trigger pipeline in parallel", as }, }); - // Ensure customer-2 has pipeline material too + // Ensure customer-2 depends on the trigger (parallel deploy) const c2 = got.pipelines["deploy-example-customer-2"]; t.deepEqual(c2.materials, { "deploy-example-pipeline-complete": { @@ -648,9 +803,9 @@ test("ensure include regions adds regions with trigger pipeline in serial", asyn "rollback-example", ]); - // Ensure de has just the repo material - const de = got.pipelines["deploy-example-de"]; - t.deepEqual(de.materials, { + // Ensure s4s2 depends on the trigger (first region) + const s4s2 = got.pipelines["deploy-example-s4s2"]; + t.deepEqual(s4s2.materials, { "deploy-example-pipeline-complete": { pipeline: "deploy-example", stage: "pipeline-complete", @@ -663,7 +818,22 @@ test("ensure include regions adds regions with trigger pipeline in serial", asyn }, }); - // Ensure control is included + // Ensure de depends on s4s2 + const de = got.pipelines["deploy-example-de"]; + t.deepEqual(de.materials, { + "deploy-example-s4s2-pipeline-complete": { + pipeline: "deploy-example-s4s2", + stage: "pipeline-complete", + }, + example_repo: { + branch: "master", + destination: "example", + git: "git@github.com:getsentry/example.git", + shallow_clone: true, + }, + }); + + // Ensure control depends on de const control = got.pipelines["deploy-example-control"]; t.deepEqual(control.materials, { "deploy-example-de-pipeline-complete": { @@ -714,11 +884,11 @@ test("ensure include regions adds regions with trigger pipeline in serial", asyn const regionPipelines = r.environment_variables["REGION_PIPELINE_FLAGS"]; t.deepEqual( allPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", ); t.deepEqual( regionPipelines, - "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", ); }); diff --git a/test/testdata/goldens/getsentry/regions.jsonnet_output-files.golden b/test/testdata/goldens/getsentry/regions.jsonnet_output-files.golden index 487b865..36a8859 100644 --- a/test/testdata/goldens/getsentry/regions.jsonnet_output-files.golden +++ b/test/testdata/goldens/getsentry/regions.jsonnet_output-files.golden @@ -1,6 +1,6 @@ { "all_regions": [ - "s4s", + "s4s2", "de", "us", "control", @@ -9,6 +9,6 @@ "customer-2", "customer-4", "customer-7", - "s4s2" + "s4s" ] } 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 67a5f6d..d4bc49d 100644 --- a/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_output-files.golden @@ -193,7 +193,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "example_repo": { @@ -231,7 +231,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -309,9 +309,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 5805b98..5c0f5a9 100644 --- a/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_single-file.golden @@ -167,7 +167,7 @@ ] }, "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "example_repo": { @@ -200,7 +200,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -268,9 +268,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 59974d9..aa13c93 100644 --- a/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_output-files.golden @@ -174,8 +174,8 @@ "display_order": 3, "group": "example", "materials": { - "deploy-example-s4s-pipeline-complete": { - "pipeline": "deploy-example-s4s", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -213,7 +213,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "example_repo": { @@ -251,7 +251,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -333,9 +333,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 d943dac..d120485 100644 --- a/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_single-file.golden @@ -153,8 +153,8 @@ "display_order": 3, "group": "example", "materials": { - "deploy-example-s4s-pipeline-complete": { - "pipeline": "deploy-example-s4s", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -187,7 +187,7 @@ ] }, "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "example_repo": { @@ -220,7 +220,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -292,9 +292,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 8124781..7bc8970 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 @@ -3,7 +3,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "example_repo": { @@ -41,7 +41,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-2": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "example_repo": { @@ -79,7 +79,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-4": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "example_repo": { @@ -117,7 +117,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-7": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "example_repo": { @@ -155,7 +155,7 @@ "format_version": 10, "pipelines": { "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { "example_repo": { @@ -193,7 +193,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 7, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -233,9 +233,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 e48f25a..fe16ddc 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 @@ -2,7 +2,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "example_repo": { @@ -35,7 +35,7 @@ ] }, "deploy-example-customer-2": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "example_repo": { @@ -68,7 +68,7 @@ ] }, "deploy-example-customer-4": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "example_repo": { @@ -101,7 +101,7 @@ ] }, "deploy-example-customer-7": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "example_repo": { @@ -134,7 +134,7 @@ ] }, "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { "example_repo": { @@ -167,7 +167,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 7, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -202,9 +202,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 85c8114..2eb7656 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 @@ -3,7 +3,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-de-pipeline-complete": { @@ -45,7 +45,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-2": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-customer-1-pipeline-complete": { @@ -87,7 +87,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-4": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-customer-2-pipeline-complete": { @@ -129,7 +129,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-7": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-customer-4-pipeline-complete": { @@ -171,9 +171,13 @@ "format_version": 10, "pipelines": { "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", + "stage": "pipeline-complete" + }, "example_repo": { "branch": "master", "destination": "example", @@ -209,7 +213,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 7, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -249,9 +253,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 18b1705..1c6c8cc 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 @@ -2,7 +2,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-de-pipeline-complete": { @@ -39,7 +39,7 @@ ] }, "deploy-example-customer-2": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-customer-1-pipeline-complete": { @@ -76,7 +76,7 @@ ] }, "deploy-example-customer-4": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-customer-2-pipeline-complete": { @@ -113,7 +113,7 @@ ] }, "deploy-example-customer-7": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-customer-4-pipeline-complete": { @@ -150,9 +150,13 @@ ] }, "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", + "stage": "pipeline-complete" + }, "example_repo": { "branch": "master", "destination": "example", @@ -183,7 +187,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 7, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -218,9 +222,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 c47fae4..b7cc85d 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 @@ -3,7 +3,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -45,7 +45,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-2": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -87,7 +87,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-4": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -129,7 +129,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-7": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -171,7 +171,7 @@ "format_version": 10, "pipelines": { "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -213,7 +213,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 7, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -294,9 +294,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 3067684..9469944 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 @@ -34,7 +34,7 @@ ] }, "deploy-example-customer-1": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -71,7 +71,7 @@ ] }, "deploy-example-customer-2": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -108,7 +108,7 @@ ] }, "deploy-example-customer-4": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -145,7 +145,7 @@ ] }, "deploy-example-customer-7": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -182,7 +182,7 @@ ] }, "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -219,7 +219,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 7, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -258,9 +258,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 5050f16..9a76eab 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 @@ -3,7 +3,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-de-pipeline-complete": { @@ -45,7 +45,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-2": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-customer-1-pipeline-complete": { @@ -87,7 +87,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-4": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-customer-2-pipeline-complete": { @@ -129,7 +129,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-7": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-customer-4-pipeline-complete": { @@ -171,11 +171,11 @@ "format_version": 10, "pipelines": { "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { - "deploy-example-pipeline-complete": { - "pipeline": "deploy-example", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -213,7 +213,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 7, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -294,9 +294,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 30cdad0..1ec996a 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 @@ -34,7 +34,7 @@ ] }, "deploy-example-customer-1": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-de-pipeline-complete": { @@ -71,7 +71,7 @@ ] }, "deploy-example-customer-2": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-customer-1-pipeline-complete": { @@ -108,7 +108,7 @@ ] }, "deploy-example-customer-4": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-customer-2-pipeline-complete": { @@ -145,7 +145,7 @@ ] }, "deploy-example-customer-7": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-customer-4-pipeline-complete": { @@ -182,11 +182,11 @@ ] }, "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { - "deploy-example-pipeline-complete": { - "pipeline": "deploy-example", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -219,7 +219,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 7, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -258,9 +258,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 9c57182..d09afb9 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 @@ -3,7 +3,7 @@ "format_version": 10, "pipelines": { "deploy-example-control": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "example_repo": { @@ -41,7 +41,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "example_repo": { @@ -79,7 +79,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-2": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "example_repo": { @@ -117,7 +117,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-4": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "example_repo": { @@ -155,7 +155,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-7": { - "display_order": 7, + "display_order": 8, "group": "example", "materials": { "example_repo": { @@ -193,7 +193,7 @@ "format_version": 10, "pipelines": { "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { "example_repo": { @@ -231,7 +231,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 8, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -271,9 +271,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 5bd4748..8f64228 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 @@ -2,7 +2,7 @@ "format_version": 10, "pipelines": { "deploy-example-control": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "example_repo": { @@ -35,7 +35,7 @@ ] }, "deploy-example-customer-1": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "example_repo": { @@ -68,7 +68,7 @@ ] }, "deploy-example-customer-2": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "example_repo": { @@ -101,7 +101,7 @@ ] }, "deploy-example-customer-4": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "example_repo": { @@ -134,7 +134,7 @@ ] }, "deploy-example-customer-7": { - "display_order": 7, + "display_order": 8, "group": "example", "materials": { "example_repo": { @@ -167,7 +167,7 @@ ] }, "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { "example_repo": { @@ -200,7 +200,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 8, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -235,9 +235,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 9b39f28..dbb8d49 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 @@ -3,7 +3,7 @@ "format_version": 10, "pipelines": { "deploy-example-control": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-de-pipeline-complete": { @@ -45,7 +45,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-control-pipeline-complete": { @@ -87,7 +87,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-2": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-customer-1-pipeline-complete": { @@ -129,7 +129,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-4": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-customer-2-pipeline-complete": { @@ -171,7 +171,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-7": { - "display_order": 7, + "display_order": 8, "group": "example", "materials": { "deploy-example-customer-4-pipeline-complete": { @@ -213,9 +213,13 @@ "format_version": 10, "pipelines": { "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", + "stage": "pipeline-complete" + }, "example_repo": { "branch": "master", "destination": "example", @@ -251,7 +255,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 8, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -291,9 +295,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 9d4babb..d6599d6 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 @@ -2,7 +2,7 @@ "format_version": 10, "pipelines": { "deploy-example-control": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-de-pipeline-complete": { @@ -39,7 +39,7 @@ ] }, "deploy-example-customer-1": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-control-pipeline-complete": { @@ -76,7 +76,7 @@ ] }, "deploy-example-customer-2": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-customer-1-pipeline-complete": { @@ -113,7 +113,7 @@ ] }, "deploy-example-customer-4": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-customer-2-pipeline-complete": { @@ -150,7 +150,7 @@ ] }, "deploy-example-customer-7": { - "display_order": 7, + "display_order": 8, "group": "example", "materials": { "deploy-example-customer-4-pipeline-complete": { @@ -187,9 +187,13 @@ ] }, "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", + "stage": "pipeline-complete" + }, "example_repo": { "branch": "master", "destination": "example", @@ -220,7 +224,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 8, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -255,9 +259,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 1a193f5..9a2d60a 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 @@ -3,7 +3,7 @@ "format_version": 10, "pipelines": { "deploy-example-control": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -45,7 +45,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -87,7 +87,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-2": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -129,7 +129,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-4": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -171,7 +171,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-7": { - "display_order": 7, + "display_order": 8, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -213,7 +213,7 @@ "format_version": 10, "pipelines": { "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -255,7 +255,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 8, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -336,9 +336,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 2a30e46..a3155e2 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 @@ -34,7 +34,7 @@ ] }, "deploy-example-control": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -71,7 +71,7 @@ ] }, "deploy-example-customer-1": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -108,7 +108,7 @@ ] }, "deploy-example-customer-2": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -145,7 +145,7 @@ ] }, "deploy-example-customer-4": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -182,7 +182,7 @@ ] }, "deploy-example-customer-7": { - "display_order": 7, + "display_order": 8, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -219,7 +219,7 @@ ] }, "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -256,7 +256,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 8, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -295,9 +295,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 5246d44..afed347 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 @@ -3,7 +3,7 @@ "format_version": 10, "pipelines": { "deploy-example-control": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-de-pipeline-complete": { @@ -45,7 +45,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-control-pipeline-complete": { @@ -87,7 +87,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-2": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-customer-1-pipeline-complete": { @@ -129,7 +129,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-4": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-customer-2-pipeline-complete": { @@ -171,7 +171,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-7": { - "display_order": 7, + "display_order": 8, "group": "example", "materials": { "deploy-example-customer-4-pipeline-complete": { @@ -213,11 +213,11 @@ "format_version": 10, "pipelines": { "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { - "deploy-example-pipeline-complete": { - "pipeline": "deploy-example", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -255,7 +255,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 8, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -336,9 +336,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 b298137..9417390 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 @@ -34,7 +34,7 @@ ] }, "deploy-example-control": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "deploy-example-de-pipeline-complete": { @@ -71,7 +71,7 @@ ] }, "deploy-example-customer-1": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "deploy-example-control-pipeline-complete": { @@ -108,7 +108,7 @@ ] }, "deploy-example-customer-2": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "deploy-example-customer-1-pipeline-complete": { @@ -145,7 +145,7 @@ ] }, "deploy-example-customer-4": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "deploy-example-customer-2-pipeline-complete": { @@ -182,7 +182,7 @@ ] }, "deploy-example-customer-7": { - "display_order": 7, + "display_order": 8, "group": "example", "materials": { "deploy-example-customer-4-pipeline-complete": { @@ -219,11 +219,11 @@ ] }, "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { - "deploy-example-pipeline-complete": { - "pipeline": "deploy-example", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -256,7 +256,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 8, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -295,9 +295,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 9c57182..d09afb9 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 @@ -3,7 +3,7 @@ "format_version": 10, "pipelines": { "deploy-example-control": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "example_repo": { @@ -41,7 +41,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-1": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "example_repo": { @@ -79,7 +79,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-2": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "example_repo": { @@ -117,7 +117,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-4": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "example_repo": { @@ -155,7 +155,7 @@ "format_version": 10, "pipelines": { "deploy-example-customer-7": { - "display_order": 7, + "display_order": 8, "group": "example", "materials": { "example_repo": { @@ -193,7 +193,7 @@ "format_version": 10, "pipelines": { "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { "example_repo": { @@ -231,7 +231,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 8, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -271,9 +271,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 5bd4748..8f64228 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 @@ -2,7 +2,7 @@ "format_version": 10, "pipelines": { "deploy-example-control": { - "display_order": 3, + "display_order": 4, "group": "example", "materials": { "example_repo": { @@ -35,7 +35,7 @@ ] }, "deploy-example-customer-1": { - "display_order": 4, + "display_order": 5, "group": "example", "materials": { "example_repo": { @@ -68,7 +68,7 @@ ] }, "deploy-example-customer-2": { - "display_order": 5, + "display_order": 6, "group": "example", "materials": { "example_repo": { @@ -101,7 +101,7 @@ ] }, "deploy-example-customer-4": { - "display_order": 6, + "display_order": 7, "group": "example", "materials": { "example_repo": { @@ -134,7 +134,7 @@ ] }, "deploy-example-customer-7": { - "display_order": 7, + "display_order": 8, "group": "example", "materials": { "example_repo": { @@ -167,7 +167,7 @@ ] }, "deploy-example-de": { - "display_order": 2, + "display_order": 3, "group": "example", "materials": { "example_repo": { @@ -200,7 +200,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 8, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -235,9 +235,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-control --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 d99dae4..e49465b 100644 --- a/test/testdata/goldens/pipedream/minimal-config.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/minimal-config.jsonnet_output-files.golden @@ -174,8 +174,8 @@ "display_order": 3, "group": "example", "materials": { - "deploy-example-s4s-pipeline-complete": { - "pipeline": "deploy-example-s4s", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -213,7 +213,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "example_repo": { @@ -251,7 +251,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "example_repo": { 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 fff7037..4593ec9 100644 --- a/test/testdata/goldens/pipedream/minimal-config.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/minimal-config.jsonnet_single-file.golden @@ -153,8 +153,8 @@ "display_order": 3, "group": "example", "materials": { - "deploy-example-s4s-pipeline-complete": { - "pipeline": "deploy-example-s4s", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -187,7 +187,7 @@ ] }, "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "example_repo": { @@ -220,7 +220,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "example_repo": { 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 af81248..adaf7db 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 @@ -378,7 +378,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -453,7 +453,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -643,9 +643,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 eea342b..8ce6688 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 @@ -385,7 +385,7 @@ ] }, "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -455,7 +455,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -597,9 +597,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 14eea13..2635415 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 @@ -306,8 +306,8 @@ "display_order": 3, "group": "example", "materials": { - "deploy-example-s4s-pipeline-complete": { - "pipeline": "deploy-example-s4s", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -378,7 +378,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -453,7 +453,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -643,9 +643,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 fdf9abd..ab88035 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 @@ -318,8 +318,8 @@ "display_order": 3, "group": "example", "materials": { - "deploy-example-s4s-pipeline-complete": { - "pipeline": "deploy-example-s4s", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -385,7 +385,7 @@ ] }, "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -455,7 +455,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "deploy-example-pipeline-complete": { @@ -597,9 +597,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7 --pipeline=deploy-example", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 54fbdae..878fc29 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 @@ -186,8 +186,8 @@ "display_order": 3, "group": "example", "materials": { - "deploy-example-s4s-pipeline-complete": { - "pipeline": "deploy-example-s4s", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -228,7 +228,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "example_repo": { @@ -269,7 +269,7 @@ "format_version": 10, "pipelines": { "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -357,9 +357,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": "" 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 99a03e1..e3bf8a9 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 @@ -165,8 +165,8 @@ "display_order": 3, "group": "example", "materials": { - "deploy-example-s4s-pipeline-complete": { - "pipeline": "deploy-example-s4s", + "deploy-example-s4s2-pipeline-complete": { + "pipeline": "deploy-example-s4s2", "stage": "pipeline-complete" }, "example_repo": { @@ -202,7 +202,7 @@ ] }, "deploy-example-s4s": { - "display_order": 2, + "display_order": 9, "group": "example", "materials": { "example_repo": { @@ -238,7 +238,7 @@ ] }, "deploy-example-s4s2": { - "display_order": 9, + "display_order": 2, "group": "example", "materials": { "example_repo": { @@ -316,9 +316,9 @@ "rollback-example": { "display_order": 1, "environment_variables": { - "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}", - "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", + "REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s2 --pipeline=deploy-example-de --pipeline=deploy-example-us --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7", "ROLLBACK_MATERIAL_NAME": "example_repo", "ROLLBACK_STAGE": "example_stage", "TRIGGERED_BY": ""