From 48e7aa0e62f506d933faadf1b0fb562dce3ea2f2 Mon Sep 17 00:00:00 2001 From: mchen-sentry Date: Thu, 5 Mar 2026 13:10:57 -0800 Subject: [PATCH 1/2] disable fetch materials for pipeline complete and regenerate tests --- libs/gocd-stages.libsonnet | 3 + libs/pipedream.libsonnet | 4 +- ...eploy-parallel.jsonnet_output-files.golden | 8 + ...deploy-parallel.jsonnet_single-file.golden | 8 + ...odeploy-serial.jsonnet_output-files.golden | 8 + ...todeploy-serial.jsonnet_single-file.golden | 8 + ...eploy-parallel.jsonnet_output-files.golden | 6 + ...deploy-parallel.jsonnet_single-file.golden | 6 + ...odeploy-serial.jsonnet_output-files.golden | 6 + ...todeploy-serial.jsonnet_single-file.golden | 6 + ...eploy-parallel.jsonnet_output-files.golden | 7 + ...deploy-parallel.jsonnet_single-file.golden | 7 + ...odeploy-serial.jsonnet_output-files.golden | 7 + ...todeploy-serial.jsonnet_single-file.golden | 7 + ...eploy-parallel.jsonnet_output-files.golden | 7 + ...deploy-parallel.jsonnet_single-file.golden | 7 + ...odeploy-serial.jsonnet_output-files.golden | 7 + ...todeploy-serial.jsonnet_single-file.golden | 7 + ...eploy-parallel.jsonnet_output-files.golden | 8 + ...deploy-parallel.jsonnet_single-file.golden | 8 + ...odeploy-serial.jsonnet_output-files.golden | 8 + ...todeploy-serial.jsonnet_single-file.golden | 8 + ...gions-parallel.jsonnet_output-files.golden | 7 + ...egions-parallel.jsonnet_single-file.golden | 7 + ...minimal-config.jsonnet_output-files.golden | 8 + .../minimal-config.jsonnet_single-file.golden | 8 + ...eploy-parallel.jsonnet_output-files.golden | 9 + ...deploy-parallel.jsonnet_single-file.golden | 9 + ...odeploy-serial.jsonnet_output-files.golden | 9 + ...todeploy-serial.jsonnet_single-file.golden | 9 + ...stage-override.jsonnet_output-files.golden | 484 ++++++++++++++++++ ...-stage-override.jsonnet_single-file.golden | 442 ++++++++++++++++ ...de-final-stage.jsonnet_output-files.golden | 8 + ...ide-final-stage.jsonnet_single-file.golden | 8 + 34 files changed, 1157 insertions(+), 2 deletions(-) create mode 100644 test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_output-files.golden create mode 100644 test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_single-file.golden diff --git a/libs/gocd-stages.libsonnet b/libs/gocd-stages.libsonnet index 34c2290..05c77d0 100644 --- a/libs/gocd-stages.libsonnet +++ b/libs/gocd-stages.libsonnet @@ -18,9 +18,12 @@ This library is a set of helpers for building GoCD pipelines. else null; + local fetch_materials = if std.objectHas(opts, 'fetch_materials') then opts.fetch_materials else null; + { [name]: { [if approval != null then 'approval' else null]: approval, + [if fetch_materials != null then 'fetch_materials' else null]: fetch_materials, jobs: { [name]: { tasks: tasks, diff --git a/libs/pipedream.libsonnet b/libs/pipedream.libsonnet index c6435b6..2967071 100644 --- a/libs/pipedream.libsonnet +++ b/libs/pipedream.libsonnet @@ -45,7 +45,7 @@ local pipedream_trigger_pipeline(pipedream_config) = materials: materials, lock_behavior: 'unlockWhenFinished', stages: [ - gocd_stages.basic('pipeline-complete', [gocd_tasks.noop], { approval: 'manual' }), + gocd_stages.basic('pipeline-complete', [gocd_tasks.noop], { approval: 'manual', fetch_materials: false }), ], }, }; @@ -210,7 +210,7 @@ local generate_region_pipeline(pipedream_config, pipeline_fn, region, display_or // The s4s final stage completes and causes the US pipeline to // re-run. With `pipeline-complete` as the final stage, it isn't // re-run by a rollback, preventing this domino effect. - gocd_stages.basic('pipeline-complete', [gocd_tasks.noop]), + gocd_stages.basic('pipeline-complete', [gocd_tasks.noop], { fetch_materials: false }), ], }; 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 d4bc49d..2298a72 100644 --- a/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_output-files.golden @@ -20,6 +20,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -58,6 +59,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -96,6 +98,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -134,6 +137,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -172,6 +176,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -210,6 +215,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -248,6 +254,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -286,6 +293,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 5c0f5a9..1b16880 100644 --- a/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/autodeploy-parallel.jsonnet_single-file.golden @@ -19,6 +19,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -52,6 +53,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -85,6 +87,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -118,6 +121,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -151,6 +155,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -184,6 +189,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -217,6 +223,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -250,6 +257,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 aa13c93..30349d1 100644 --- a/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_output-files.golden @@ -24,6 +24,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -66,6 +67,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -108,6 +110,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -150,6 +153,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -192,6 +196,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -230,6 +235,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -268,6 +274,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -310,6 +317,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 d120485..5ade941 100644 --- a/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/autodeploy-serial.jsonnet_single-file.golden @@ -23,6 +23,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -60,6 +61,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -97,6 +99,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -134,6 +137,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -171,6 +175,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -204,6 +209,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -237,6 +243,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -274,6 +281,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 7bc8970..f9939fd 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 @@ -20,6 +20,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -58,6 +59,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -96,6 +98,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -134,6 +137,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -172,6 +176,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -210,6 +215,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 fe16ddc..709da48 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 @@ -19,6 +19,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -52,6 +53,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -85,6 +87,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -118,6 +121,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -151,6 +155,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -184,6 +189,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 2eb7656..6c0aa86 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 @@ -24,6 +24,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -66,6 +67,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -108,6 +110,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -150,6 +153,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -192,6 +196,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -230,6 +235,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 1c6c8cc..859cbf0 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 @@ -23,6 +23,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -60,6 +61,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -97,6 +99,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -134,6 +137,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -171,6 +175,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -204,6 +209,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 b7cc85d..4b56528 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 @@ -24,6 +24,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -66,6 +67,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -108,6 +110,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -150,6 +153,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -192,6 +196,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -234,6 +239,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -271,6 +277,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 9469944..2841f16 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 @@ -18,6 +18,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -55,6 +56,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -92,6 +94,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -129,6 +132,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -166,6 +170,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -203,6 +208,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -240,6 +246,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 9a76eab..b5c623a 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 @@ -24,6 +24,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -66,6 +67,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -108,6 +110,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -150,6 +153,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -192,6 +196,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -234,6 +239,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -271,6 +277,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 1ec996a..aa2d619 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 @@ -18,6 +18,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -55,6 +56,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -92,6 +94,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -129,6 +132,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -166,6 +170,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -203,6 +208,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -240,6 +246,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 d09afb9..cbc4ab2 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 @@ -20,6 +20,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -58,6 +59,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -96,6 +98,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -134,6 +137,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -172,6 +176,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -210,6 +215,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -248,6 +254,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 8f64228..538dc03 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 @@ -19,6 +19,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -52,6 +53,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -85,6 +87,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -118,6 +121,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -151,6 +155,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -184,6 +189,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -217,6 +223,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 dbb8d49..0a26473 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 @@ -24,6 +24,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -66,6 +67,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -108,6 +110,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -150,6 +153,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -192,6 +196,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -234,6 +239,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -272,6 +278,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 d6599d6..e0b921a 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 @@ -23,6 +23,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -60,6 +61,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -97,6 +99,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -134,6 +137,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -171,6 +175,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -208,6 +213,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -241,6 +247,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 9a2d60a..016c328 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 @@ -24,6 +24,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -66,6 +67,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -108,6 +110,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -150,6 +153,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -192,6 +196,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -234,6 +239,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -276,6 +282,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -313,6 +320,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 a3155e2..a1e9c1b 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 @@ -18,6 +18,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -55,6 +56,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -92,6 +94,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -129,6 +132,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -166,6 +170,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -203,6 +208,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -240,6 +246,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -277,6 +284,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 afed347..2530741 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 @@ -24,6 +24,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -66,6 +67,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -108,6 +110,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -150,6 +153,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -192,6 +196,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -234,6 +239,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -276,6 +282,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -313,6 +320,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 9417390..5469d50 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 @@ -18,6 +18,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -55,6 +56,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -92,6 +94,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -129,6 +132,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -166,6 +170,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -203,6 +208,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -240,6 +246,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -277,6 +284,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 d09afb9..cbc4ab2 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 @@ -20,6 +20,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -58,6 +59,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -96,6 +98,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -134,6 +137,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -172,6 +176,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -210,6 +215,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -248,6 +254,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 8f64228..538dc03 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 @@ -19,6 +19,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -52,6 +53,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -85,6 +87,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -118,6 +121,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -151,6 +155,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -184,6 +189,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -217,6 +223,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 e49465b..ec2937b 100644 --- a/test/testdata/goldens/pipedream/minimal-config.jsonnet_output-files.golden +++ b/test/testdata/goldens/pipedream/minimal-config.jsonnet_output-files.golden @@ -24,6 +24,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -66,6 +67,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -108,6 +110,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -150,6 +153,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -192,6 +196,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -230,6 +235,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -268,6 +274,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -310,6 +317,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 4593ec9..ad4db2a 100644 --- a/test/testdata/goldens/pipedream/minimal-config.jsonnet_single-file.golden +++ b/test/testdata/goldens/pipedream/minimal-config.jsonnet_single-file.golden @@ -23,6 +23,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -60,6 +61,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -97,6 +99,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -134,6 +137,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -171,6 +175,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -204,6 +209,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -237,6 +243,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -274,6 +281,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 adaf7db..6de08b6 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 @@ -57,6 +57,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -132,6 +133,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -207,6 +209,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -282,6 +285,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -357,6 +361,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -432,6 +437,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -507,6 +513,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -582,6 +589,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -620,6 +628,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 8ce6688..27783bc 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 @@ -19,6 +19,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -89,6 +90,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -159,6 +161,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -229,6 +232,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -299,6 +303,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -369,6 +374,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -439,6 +445,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -509,6 +516,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -579,6 +587,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 2635415..26c918b 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 @@ -57,6 +57,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -132,6 +133,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -207,6 +209,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -282,6 +285,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -357,6 +361,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -432,6 +437,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -507,6 +513,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -582,6 +589,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -620,6 +628,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 ab88035..cbe7180 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 @@ -19,6 +19,7 @@ "approval": { "type": "manual" }, + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -89,6 +90,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -159,6 +161,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -229,6 +232,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -299,6 +303,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -369,6 +374,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -439,6 +445,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -509,6 +516,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -579,6 +587,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ diff --git a/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_output-files.golden new file mode 100644 index 0000000..bfd1be1 --- /dev/null +++ b/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_output-files.golden @@ -0,0 +1,484 @@ +{ + "deploy-example-customer-1.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-customer-1": { + "display_order": 5, + "group": "example", + "materials": { + "deploy-example-us-pipeline-complete": { + "pipeline": "deploy-example-us", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=customer-1" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, + "deploy-example-customer-2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-customer-2": { + "display_order": 6, + "group": "example", + "materials": { + "deploy-example-customer-1-pipeline-complete": { + "pipeline": "deploy-example-customer-1", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=customer-2" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, + "deploy-example-customer-4.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-customer-4": { + "display_order": 7, + "group": "example", + "materials": { + "deploy-example-customer-2-pipeline-complete": { + "pipeline": "deploy-example-customer-2", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=customer-4" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, + "deploy-example-customer-7.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-customer-7": { + "display_order": 8, + "group": "example", + "materials": { + "deploy-example-customer-4-pipeline-complete": { + "pipeline": "deploy-example-customer-4", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=customer-7" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, + "deploy-example-de.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-de": { + "display_order": 3, + "group": "example", + "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" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=de" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, + "deploy-example-s4s.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s": { + "display_order": 9, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=s4s" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, + "deploy-example-s4s2.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-s4s2": { + "display_order": 2, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=s4s2" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, + "deploy-example-us.yaml": { + "format_version": 10, + "pipelines": { + "deploy-example-us": { + "display_order": 4, + "group": "example", + "materials": { + "deploy-example-de-pipeline-complete": { + "pipeline": "deploy-example-de", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=us" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + } + } + }, + "rollback-example.yaml": { + "format_version": 10, + "pipelines": { + "rollback-example": { + "display_order": 1, + "environment_variables": { + "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-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": "deploy", + "TRIGGERED_BY": "" + }, + "group": "example", + "lock_behavior": "unlockWhenFinished", + "materials": { + "deploy-example-customer-7-deploy": { + "pipeline": "deploy-example-customer-7", + "stage": "deploy" + } + }, + "stages": [ + { + "pause_pipelines": { + "approval": { + "type": "manual" + }, + "jobs": { + "rollback": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "##!/bin/bash\n\n## Note: $ALL_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${ALL_PIPELINE_FLAGS:-}\" ]]; then\n set -- $ALL_PIPELINE_FLAGS\nfi\n\n## The user that triggered the rollback\nTRIGGERED_BY=\"${TRIGGERED_BY:-}\"\n\npause_message='This pipeline is being rolled back, please check with team before un-pausing.'\n\n## Include triggered by in the pause message if it is not empty\nif [ -n \"$TRIGGERED_BY\" ]; then\n pause_message=\"$pause_message Triggered by: $TRIGGERED_BY\"\nfi\n\n## Pause all pipelines in the pipedream\ngocd-pause-and-cancel-pipelines \\\n --pause-message=\"$pause_message\" \\\n \"$@\"\n" + } + ] + } + } + } + }, + { + "start_rollback": { + "jobs": { + "rollback": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "##!/bin/bash\n\n## Note: $REGION_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${REGION_PIPELINE_FLAGS:-}\" ]]; then\n set -- $REGION_PIPELINE_FLAGS\nfi\n\n## The user that triggered the rollback\nTRIGGERED_BY=\"${TRIGGERED_BY:-}\"\n\npause_message='This pipeline was rolled back, please check with team before un-pausing.'\n\n## Include triggered by in the pause message if it is not empty\nif [ -n \"$TRIGGERED_BY\" ]; then\n pause_message=\"$pause_message Triggered by: $TRIGGERED_BY\"\nfi\n\n## Get sha from the given pipeline run to deploy to all pipedream pipelines.\nsha=$(gocd-sha-for-pipeline --material-name=\"${ROLLBACK_MATERIAL_NAME}\")\n\necho \"📑 Rolling back to sha: ${sha}\"\n\ngocd-emergency-deploy \\\n --material-name=\"${ROLLBACK_MATERIAL_NAME}\" \\\n --commit-sha=\"${sha}\" \\\n --deploy-stage=\"${ROLLBACK_STAGE}\" \\\n --pause-message=\"$pause_message\" \\\n \"$@\"\n" + } + ] + } + } + } + }, + { + "incident_resolved": { + "approval": { + "type": "manual" + }, + "jobs": { + "rollback": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "##!/bin/bash\n\n## Note: $ALL_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${ALL_PIPELINE_FLAGS:-}\" ]]; then\n set -- $ALL_PIPELINE_FLAGS\nfi\n\n## Unpause and unlock all pipelines in the pipedream\ngocd-unpause-and-unlock-pipelines \\\n \"$@\"\n" + } + ] + } + } + } + } + ] + } + } + } +} diff --git a/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_single-file.golden new file mode 100644 index 0000000..b08aac9 --- /dev/null +++ b/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_single-file.golden @@ -0,0 +1,442 @@ +{ + "format_version": 10, + "pipelines": { + "deploy-example-customer-1": { + "display_order": 5, + "group": "example", + "materials": { + "deploy-example-us-pipeline-complete": { + "pipeline": "deploy-example-us", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=customer-1" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, + "deploy-example-customer-2": { + "display_order": 6, + "group": "example", + "materials": { + "deploy-example-customer-1-pipeline-complete": { + "pipeline": "deploy-example-customer-1", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=customer-2" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, + "deploy-example-customer-4": { + "display_order": 7, + "group": "example", + "materials": { + "deploy-example-customer-2-pipeline-complete": { + "pipeline": "deploy-example-customer-2", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=customer-4" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, + "deploy-example-customer-7": { + "display_order": 8, + "group": "example", + "materials": { + "deploy-example-customer-4-pipeline-complete": { + "pipeline": "deploy-example-customer-4", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=customer-7" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, + "deploy-example-de": { + "display_order": 3, + "group": "example", + "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" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=de" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, + "deploy-example-s4s": { + "display_order": 9, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=s4s" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, + "deploy-example-s4s2": { + "display_order": 2, + "group": "example", + "materials": { + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=s4s2" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, + "deploy-example-us": { + "display_order": 4, + "group": "example", + "materials": { + "deploy-example-de-pipeline-complete": { + "pipeline": "deploy-example-de", + "stage": "pipeline-complete" + }, + "example_repo": { + "branch": "master", + "destination": "example", + "git": "git@github.com:getsentry/example.git" + } + }, + "stages": [ + { + "deploy": { + "jobs": { + "deploy": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "./deploy.sh --region=us" + } + ] + } + } + } + }, + { + "pipeline-complete": { + "fetch_materials": false, + "jobs": { + "pipeline-complete": { + "tasks": [ + { + "exec": { + "command": true + } + } + ] + } + } + } + } + ] + }, + "rollback-example": { + "display_order": 1, + "environment_variables": { + "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-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": "deploy", + "TRIGGERED_BY": "" + }, + "group": "example", + "lock_behavior": "unlockWhenFinished", + "materials": { + "deploy-example-customer-7-deploy": { + "pipeline": "deploy-example-customer-7", + "stage": "deploy" + } + }, + "stages": [ + { + "pause_pipelines": { + "approval": { + "type": "manual" + }, + "jobs": { + "rollback": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "##!/bin/bash\n\n## Note: $ALL_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${ALL_PIPELINE_FLAGS:-}\" ]]; then\n set -- $ALL_PIPELINE_FLAGS\nfi\n\n## The user that triggered the rollback\nTRIGGERED_BY=\"${TRIGGERED_BY:-}\"\n\npause_message='This pipeline is being rolled back, please check with team before un-pausing.'\n\n## Include triggered by in the pause message if it is not empty\nif [ -n \"$TRIGGERED_BY\" ]; then\n pause_message=\"$pause_message Triggered by: $TRIGGERED_BY\"\nfi\n\n## Pause all pipelines in the pipedream\ngocd-pause-and-cancel-pipelines \\\n --pause-message=\"$pause_message\" \\\n \"$@\"\n" + } + ] + } + } + } + }, + { + "start_rollback": { + "jobs": { + "rollback": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "##!/bin/bash\n\n## Note: $REGION_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${REGION_PIPELINE_FLAGS:-}\" ]]; then\n set -- $REGION_PIPELINE_FLAGS\nfi\n\n## The user that triggered the rollback\nTRIGGERED_BY=\"${TRIGGERED_BY:-}\"\n\npause_message='This pipeline was rolled back, please check with team before un-pausing.'\n\n## Include triggered by in the pause message if it is not empty\nif [ -n \"$TRIGGERED_BY\" ]; then\n pause_message=\"$pause_message Triggered by: $TRIGGERED_BY\"\nfi\n\n## Get sha from the given pipeline run to deploy to all pipedream pipelines.\nsha=$(gocd-sha-for-pipeline --material-name=\"${ROLLBACK_MATERIAL_NAME}\")\n\necho \"📑 Rolling back to sha: ${sha}\"\n\ngocd-emergency-deploy \\\n --material-name=\"${ROLLBACK_MATERIAL_NAME}\" \\\n --commit-sha=\"${sha}\" \\\n --deploy-stage=\"${ROLLBACK_STAGE}\" \\\n --pause-message=\"$pause_message\" \\\n \"$@\"\n" + } + ] + } + } + } + }, + { + "incident_resolved": { + "approval": { + "type": "manual" + }, + "jobs": { + "rollback": { + "elastic_profile_id": "example", + "tasks": [ + { + "script": "##!/bin/bash\n\n## Note: $ALL_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${ALL_PIPELINE_FLAGS:-}\" ]]; then\n set -- $ALL_PIPELINE_FLAGS\nfi\n\n## Unpause and unlock all pipelines in the pipedream\ngocd-unpause-and-unlock-pipelines \\\n \"$@\"\n" + } + ] + } + } + } + } + ] + } + } +} 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 878fc29..c8cb84b 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 @@ -27,6 +27,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -72,6 +73,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -117,6 +119,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -162,6 +165,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -207,6 +211,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -248,6 +253,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -289,6 +295,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -334,6 +341,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ 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 e3bf8a9..4ef64d2 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 @@ -26,6 +26,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -66,6 +67,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -106,6 +108,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -146,6 +149,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -186,6 +190,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -222,6 +227,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -258,6 +264,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ @@ -298,6 +305,7 @@ }, { "pipeline-complete": { + "fetch_materials": false, "jobs": { "pipeline-complete": { "tasks": [ From 4d173417819b2ccdfe81d6c272e2d000933f9e48 Mon Sep 17 00:00:00 2001 From: mchen-sentry Date: Thu, 5 Mar 2026 13:19:25 -0800 Subject: [PATCH 2/2] Remove orphaned golden files with no matching fixture --- ...stage-override.jsonnet_output-files.golden | 484 ------------------ ...-stage-override.jsonnet_single-file.golden | 442 ---------------- 2 files changed, 926 deletions(-) delete mode 100644 test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_output-files.golden delete mode 100644 test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_single-file.golden diff --git a/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_output-files.golden b/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_output-files.golden deleted file mode 100644 index bfd1be1..0000000 --- a/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_output-files.golden +++ /dev/null @@ -1,484 +0,0 @@ -{ - "deploy-example-customer-1.yaml": { - "format_version": 10, - "pipelines": { - "deploy-example-customer-1": { - "display_order": 5, - "group": "example", - "materials": { - "deploy-example-us-pipeline-complete": { - "pipeline": "deploy-example-us", - "stage": "pipeline-complete" - }, - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=customer-1" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - } - } - }, - "deploy-example-customer-2.yaml": { - "format_version": 10, - "pipelines": { - "deploy-example-customer-2": { - "display_order": 6, - "group": "example", - "materials": { - "deploy-example-customer-1-pipeline-complete": { - "pipeline": "deploy-example-customer-1", - "stage": "pipeline-complete" - }, - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=customer-2" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - } - } - }, - "deploy-example-customer-4.yaml": { - "format_version": 10, - "pipelines": { - "deploy-example-customer-4": { - "display_order": 7, - "group": "example", - "materials": { - "deploy-example-customer-2-pipeline-complete": { - "pipeline": "deploy-example-customer-2", - "stage": "pipeline-complete" - }, - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=customer-4" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - } - } - }, - "deploy-example-customer-7.yaml": { - "format_version": 10, - "pipelines": { - "deploy-example-customer-7": { - "display_order": 8, - "group": "example", - "materials": { - "deploy-example-customer-4-pipeline-complete": { - "pipeline": "deploy-example-customer-4", - "stage": "pipeline-complete" - }, - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=customer-7" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - } - } - }, - "deploy-example-de.yaml": { - "format_version": 10, - "pipelines": { - "deploy-example-de": { - "display_order": 3, - "group": "example", - "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" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=de" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - } - } - }, - "deploy-example-s4s.yaml": { - "format_version": 10, - "pipelines": { - "deploy-example-s4s": { - "display_order": 9, - "group": "example", - "materials": { - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=s4s" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - } - } - }, - "deploy-example-s4s2.yaml": { - "format_version": 10, - "pipelines": { - "deploy-example-s4s2": { - "display_order": 2, - "group": "example", - "materials": { - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=s4s2" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - } - } - }, - "deploy-example-us.yaml": { - "format_version": 10, - "pipelines": { - "deploy-example-us": { - "display_order": 4, - "group": "example", - "materials": { - "deploy-example-de-pipeline-complete": { - "pipeline": "deploy-example-de", - "stage": "pipeline-complete" - }, - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=us" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - } - } - }, - "rollback-example.yaml": { - "format_version": 10, - "pipelines": { - "rollback-example": { - "display_order": 1, - "environment_variables": { - "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-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": "deploy", - "TRIGGERED_BY": "" - }, - "group": "example", - "lock_behavior": "unlockWhenFinished", - "materials": { - "deploy-example-customer-7-deploy": { - "pipeline": "deploy-example-customer-7", - "stage": "deploy" - } - }, - "stages": [ - { - "pause_pipelines": { - "approval": { - "type": "manual" - }, - "jobs": { - "rollback": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "##!/bin/bash\n\n## Note: $ALL_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${ALL_PIPELINE_FLAGS:-}\" ]]; then\n set -- $ALL_PIPELINE_FLAGS\nfi\n\n## The user that triggered the rollback\nTRIGGERED_BY=\"${TRIGGERED_BY:-}\"\n\npause_message='This pipeline is being rolled back, please check with team before un-pausing.'\n\n## Include triggered by in the pause message if it is not empty\nif [ -n \"$TRIGGERED_BY\" ]; then\n pause_message=\"$pause_message Triggered by: $TRIGGERED_BY\"\nfi\n\n## Pause all pipelines in the pipedream\ngocd-pause-and-cancel-pipelines \\\n --pause-message=\"$pause_message\" \\\n \"$@\"\n" - } - ] - } - } - } - }, - { - "start_rollback": { - "jobs": { - "rollback": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "##!/bin/bash\n\n## Note: $REGION_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${REGION_PIPELINE_FLAGS:-}\" ]]; then\n set -- $REGION_PIPELINE_FLAGS\nfi\n\n## The user that triggered the rollback\nTRIGGERED_BY=\"${TRIGGERED_BY:-}\"\n\npause_message='This pipeline was rolled back, please check with team before un-pausing.'\n\n## Include triggered by in the pause message if it is not empty\nif [ -n \"$TRIGGERED_BY\" ]; then\n pause_message=\"$pause_message Triggered by: $TRIGGERED_BY\"\nfi\n\n## Get sha from the given pipeline run to deploy to all pipedream pipelines.\nsha=$(gocd-sha-for-pipeline --material-name=\"${ROLLBACK_MATERIAL_NAME}\")\n\necho \"📑 Rolling back to sha: ${sha}\"\n\ngocd-emergency-deploy \\\n --material-name=\"${ROLLBACK_MATERIAL_NAME}\" \\\n --commit-sha=\"${sha}\" \\\n --deploy-stage=\"${ROLLBACK_STAGE}\" \\\n --pause-message=\"$pause_message\" \\\n \"$@\"\n" - } - ] - } - } - } - }, - { - "incident_resolved": { - "approval": { - "type": "manual" - }, - "jobs": { - "rollback": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "##!/bin/bash\n\n## Note: $ALL_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${ALL_PIPELINE_FLAGS:-}\" ]]; then\n set -- $ALL_PIPELINE_FLAGS\nfi\n\n## Unpause and unlock all pipelines in the pipedream\ngocd-unpause-and-unlock-pipelines \\\n \"$@\"\n" - } - ] - } - } - } - } - ] - } - } - } -} diff --git a/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_single-file.golden b/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_single-file.golden deleted file mode 100644 index b08aac9..0000000 --- a/test/testdata/goldens/pipedream/rollback-final-stage-override.jsonnet_single-file.golden +++ /dev/null @@ -1,442 +0,0 @@ -{ - "format_version": 10, - "pipelines": { - "deploy-example-customer-1": { - "display_order": 5, - "group": "example", - "materials": { - "deploy-example-us-pipeline-complete": { - "pipeline": "deploy-example-us", - "stage": "pipeline-complete" - }, - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=customer-1" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - }, - "deploy-example-customer-2": { - "display_order": 6, - "group": "example", - "materials": { - "deploy-example-customer-1-pipeline-complete": { - "pipeline": "deploy-example-customer-1", - "stage": "pipeline-complete" - }, - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=customer-2" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - }, - "deploy-example-customer-4": { - "display_order": 7, - "group": "example", - "materials": { - "deploy-example-customer-2-pipeline-complete": { - "pipeline": "deploy-example-customer-2", - "stage": "pipeline-complete" - }, - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=customer-4" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - }, - "deploy-example-customer-7": { - "display_order": 8, - "group": "example", - "materials": { - "deploy-example-customer-4-pipeline-complete": { - "pipeline": "deploy-example-customer-4", - "stage": "pipeline-complete" - }, - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=customer-7" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - }, - "deploy-example-de": { - "display_order": 3, - "group": "example", - "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" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=de" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - }, - "deploy-example-s4s": { - "display_order": 9, - "group": "example", - "materials": { - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=s4s" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - }, - "deploy-example-s4s2": { - "display_order": 2, - "group": "example", - "materials": { - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=s4s2" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - }, - "deploy-example-us": { - "display_order": 4, - "group": "example", - "materials": { - "deploy-example-de-pipeline-complete": { - "pipeline": "deploy-example-de", - "stage": "pipeline-complete" - }, - "example_repo": { - "branch": "master", - "destination": "example", - "git": "git@github.com:getsentry/example.git" - } - }, - "stages": [ - { - "deploy": { - "jobs": { - "deploy": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "./deploy.sh --region=us" - } - ] - } - } - } - }, - { - "pipeline-complete": { - "fetch_materials": false, - "jobs": { - "pipeline-complete": { - "tasks": [ - { - "exec": { - "command": true - } - } - ] - } - } - } - } - ] - }, - "rollback-example": { - "display_order": 1, - "environment_variables": { - "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-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": "deploy", - "TRIGGERED_BY": "" - }, - "group": "example", - "lock_behavior": "unlockWhenFinished", - "materials": { - "deploy-example-customer-7-deploy": { - "pipeline": "deploy-example-customer-7", - "stage": "deploy" - } - }, - "stages": [ - { - "pause_pipelines": { - "approval": { - "type": "manual" - }, - "jobs": { - "rollback": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "##!/bin/bash\n\n## Note: $ALL_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${ALL_PIPELINE_FLAGS:-}\" ]]; then\n set -- $ALL_PIPELINE_FLAGS\nfi\n\n## The user that triggered the rollback\nTRIGGERED_BY=\"${TRIGGERED_BY:-}\"\n\npause_message='This pipeline is being rolled back, please check with team before un-pausing.'\n\n## Include triggered by in the pause message if it is not empty\nif [ -n \"$TRIGGERED_BY\" ]; then\n pause_message=\"$pause_message Triggered by: $TRIGGERED_BY\"\nfi\n\n## Pause all pipelines in the pipedream\ngocd-pause-and-cancel-pipelines \\\n --pause-message=\"$pause_message\" \\\n \"$@\"\n" - } - ] - } - } - } - }, - { - "start_rollback": { - "jobs": { - "rollback": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "##!/bin/bash\n\n## Note: $REGION_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${REGION_PIPELINE_FLAGS:-}\" ]]; then\n set -- $REGION_PIPELINE_FLAGS\nfi\n\n## The user that triggered the rollback\nTRIGGERED_BY=\"${TRIGGERED_BY:-}\"\n\npause_message='This pipeline was rolled back, please check with team before un-pausing.'\n\n## Include triggered by in the pause message if it is not empty\nif [ -n \"$TRIGGERED_BY\" ]; then\n pause_message=\"$pause_message Triggered by: $TRIGGERED_BY\"\nfi\n\n## Get sha from the given pipeline run to deploy to all pipedream pipelines.\nsha=$(gocd-sha-for-pipeline --material-name=\"${ROLLBACK_MATERIAL_NAME}\")\n\necho \"📑 Rolling back to sha: ${sha}\"\n\ngocd-emergency-deploy \\\n --material-name=\"${ROLLBACK_MATERIAL_NAME}\" \\\n --commit-sha=\"${sha}\" \\\n --deploy-stage=\"${ROLLBACK_STAGE}\" \\\n --pause-message=\"$pause_message\" \\\n \"$@\"\n" - } - ] - } - } - } - }, - { - "incident_resolved": { - "approval": { - "type": "manual" - }, - "jobs": { - "rollback": { - "elastic_profile_id": "example", - "tasks": [ - { - "script": "##!/bin/bash\n\n## Note: $ALL_PIPELINE_FLAGS has no quoting, for word expansion\n## shellcheck disable=SC2086\nif [[ \"${ALL_PIPELINE_FLAGS:-}\" ]]; then\n set -- $ALL_PIPELINE_FLAGS\nfi\n\n## Unpause and unlock all pipelines in the pipedream\ngocd-unpause-and-unlock-pipelines \\\n \"$@\"\n" - } - ] - } - } - } - } - ] - } - } -}