Skip to content

Commit 6ddc943

Browse files
authored
remove: Customer-3 removal (#78)
1 parent 153fcc0 commit 6ddc943

13 files changed

Lines changed: 32 additions & 422 deletions

libs/getsentry.libsonnet

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
'us',
1111
'customer-1',
1212
'customer-2',
13-
'customer-3',
1413
'customer-4',
1514
'customer-7',
1615
],

test/pipedream.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ test("ensure auto deploys is expected structure", async (t) => {
7878
const r = got.pipelines["rollback-example"];
7979
t.deepEqual(r["environment_variables"], {
8080
ALL_PIPELINE_FLAGS:
81-
"--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-3 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7",
81+
"--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",
8282
GOCD_ACCESS_TOKEN: "{{SECRET:[devinfra][gocd_access_token]}}",
8383
REGION_PIPELINE_FLAGS:
84-
"--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-3 --pipeline=deploy-example-customer-4 --pipeline=deploy-example-customer-7",
84+
"--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",
8585
ROLLBACK_MATERIAL_NAME: "example_repo",
8686
ROLLBACK_STAGE: "example_stage",
8787
TRIGGERED_BY: "",

test/testdata/fixtures/pipedream/exclude-regions-no-autodeploy.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local pipedream = import '../../../../libs/pipedream.libsonnet';
33
local pipedream_config = {
44
name: 'example',
55
auto_deploy: false,
6-
exclude_regions: ['s4s', 'us', 'customer-3'],
6+
exclude_regions: ['s4s', 'us'],
77
materials: {
88
init_repo: {
99
git: 'git@github.com:getsentry/init.git',

test/testdata/fixtures/pipedream/exclude-regions.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ local pipedream = import '../../../../libs/pipedream.libsonnet';
22

33
local pipedream_config = {
44
name: 'example',
5-
exclude_regions: ['s4s', 'us', 'customer-3'],
5+
exclude_regions: ['s4s', 'us'],
66
materials: {
77
init_repo: {
88
git: 'git@github.com:getsentry/init.git',

test/testdata/goldens/getsentry/regions.jsonnet_output-files.golden

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"us",
66
"customer-1",
77
"customer-2",
8-
"customer-3",
98
"customer-4",
109
"customer-7"
1110
]

test/testdata/goldens/pipedream/autodeploy.jsonnet_output-files.golden

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -83,57 +83,15 @@
8383
}
8484
}
8585
},
86-
"deploy-example-customer-3.yaml": {
87-
"format_version": 10,
88-
"pipelines": {
89-
"deploy-example-customer-3": {
90-
"display_order": 7,
91-
"group": "example",
92-
"materials": {
93-
"deploy-example-customer-2-pipeline-complete": {
94-
"pipeline": "deploy-example-customer-2",
95-
"stage": "pipeline-complete"
96-
},
97-
"example_repo": {
98-
"branch": "master",
99-
"destination": "example",
100-
"git": "git@github.com:getsentry/example.git",
101-
"shallow_clone": true
102-
}
103-
},
104-
"region": "customer-3",
105-
"stages": [
106-
{
107-
"example_stage": { }
108-
},
109-
{
110-
"pipeline-complete": {
111-
"jobs": {
112-
"pipeline-complete": {
113-
"tasks": [
114-
{
115-
"exec": {
116-
"command": true
117-
}
118-
}
119-
]
120-
}
121-
}
122-
}
123-
}
124-
]
125-
}
126-
}
127-
},
12886
"deploy-example-customer-4.yaml": {
12987
"format_version": 10,
13088
"pipelines": {
13189
"deploy-example-customer-4": {
13290
"display_order": 8,
13391
"group": "example",
13492
"materials": {
135-
"deploy-example-customer-3-pipeline-complete": {
136-
"pipeline": "deploy-example-customer-3",
93+
"deploy-example-customer-2-pipeline-complete": {
94+
"pipeline": "deploy-example-customer-2",
13795
"stage": "pipeline-complete"
13896
},
13997
"example_repo": {
@@ -295,9 +253,9 @@
295253
"rollback-example": {
296254
"display_order": 1,
297255
"environment_variables": {
298-
"ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-3 --pipeline=deploy-example-customer-4",
256+
"ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4",
299257
"GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}",
300-
"REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-3 --pipeline=deploy-example-customer-4",
258+
"REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4",
301259
"ROLLBACK_MATERIAL_NAME": "example_repo",
302260
"ROLLBACK_STAGE": "example_stage"
303261
},

test/testdata/goldens/pipedream/autodeploy.jsonnet_single-file.golden

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -75,49 +75,12 @@
7575
}
7676
]
7777
},
78-
"deploy-example-customer-3": {
79-
"display_order": 7,
80-
"group": "example",
81-
"materials": {
82-
"deploy-example-customer-2-pipeline-complete": {
83-
"pipeline": "deploy-example-customer-2",
84-
"stage": "pipeline-complete"
85-
},
86-
"example_repo": {
87-
"branch": "master",
88-
"destination": "example",
89-
"git": "git@github.com:getsentry/example.git",
90-
"shallow_clone": true
91-
}
92-
},
93-
"region": "customer-3",
94-
"stages": [
95-
{
96-
"example_stage": { }
97-
},
98-
{
99-
"pipeline-complete": {
100-
"jobs": {
101-
"pipeline-complete": {
102-
"tasks": [
103-
{
104-
"exec": {
105-
"command": true
106-
}
107-
}
108-
]
109-
}
110-
}
111-
}
112-
}
113-
]
114-
},
11578
"deploy-example-customer-4": {
11679
"display_order": 8,
11780
"group": "example",
11881
"materials": {
119-
"deploy-example-customer-3-pipeline-complete": {
120-
"pipeline": "deploy-example-customer-3",
82+
"deploy-example-customer-2-pipeline-complete": {
83+
"pipeline": "deploy-example-customer-2",
12184
"stage": "pipeline-complete"
12285
},
12386
"example_repo": {
@@ -259,9 +222,9 @@
259222
"rollback-example": {
260223
"display_order": 1,
261224
"environment_variables": {
262-
"ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-3 --pipeline=deploy-example-customer-4",
225+
"ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4",
263226
"GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}",
264-
"REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-3 --pipeline=deploy-example-customer-4",
227+
"REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4",
265228
"ROLLBACK_MATERIAL_NAME": "example_repo",
266229
"ROLLBACK_STAGE": "example_stage"
267230
},

test/testdata/goldens/pipedream/minimal-config.jsonnet_output-files.golden

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -83,57 +83,15 @@
8383
}
8484
}
8585
},
86-
"deploy-example-customer-3.yaml": {
87-
"format_version": 10,
88-
"pipelines": {
89-
"deploy-example-customer-3": {
90-
"display_order": 7,
91-
"group": "example",
92-
"materials": {
93-
"deploy-example-customer-2-pipeline-complete": {
94-
"pipeline": "deploy-example-customer-2",
95-
"stage": "pipeline-complete"
96-
},
97-
"example_repo": {
98-
"branch": "master",
99-
"destination": "example",
100-
"git": "git@github.com:getsentry/example.git",
101-
"shallow_clone": true
102-
}
103-
},
104-
"region": "customer-3",
105-
"stages": [
106-
{
107-
"example_stage": { }
108-
},
109-
{
110-
"pipeline-complete": {
111-
"jobs": {
112-
"pipeline-complete": {
113-
"tasks": [
114-
{
115-
"exec": {
116-
"command": true
117-
}
118-
}
119-
]
120-
}
121-
}
122-
}
123-
}
124-
]
125-
}
126-
}
127-
},
12886
"deploy-example-customer-4.yaml": {
12987
"format_version": 10,
13088
"pipelines": {
13189
"deploy-example-customer-4": {
13290
"display_order": 8,
13391
"group": "example",
13492
"materials": {
135-
"deploy-example-customer-3-pipeline-complete": {
136-
"pipeline": "deploy-example-customer-3",
93+
"deploy-example-customer-2-pipeline-complete": {
94+
"pipeline": "deploy-example-customer-2",
13795
"stage": "pipeline-complete"
13896
},
13997
"example_repo": {

test/testdata/goldens/pipedream/minimal-config.jsonnet_single-file.golden

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -75,49 +75,12 @@
7575
}
7676
]
7777
},
78-
"deploy-example-customer-3": {
79-
"display_order": 7,
80-
"group": "example",
81-
"materials": {
82-
"deploy-example-customer-2-pipeline-complete": {
83-
"pipeline": "deploy-example-customer-2",
84-
"stage": "pipeline-complete"
85-
},
86-
"example_repo": {
87-
"branch": "master",
88-
"destination": "example",
89-
"git": "git@github.com:getsentry/example.git",
90-
"shallow_clone": true
91-
}
92-
},
93-
"region": "customer-3",
94-
"stages": [
95-
{
96-
"example_stage": { }
97-
},
98-
{
99-
"pipeline-complete": {
100-
"jobs": {
101-
"pipeline-complete": {
102-
"tasks": [
103-
{
104-
"exec": {
105-
"command": true
106-
}
107-
}
108-
]
109-
}
110-
}
111-
}
112-
}
113-
]
114-
},
11578
"deploy-example-customer-4": {
11679
"display_order": 8,
11780
"group": "example",
11881
"materials": {
119-
"deploy-example-customer-3-pipeline-complete": {
120-
"pipeline": "deploy-example-customer-3",
82+
"deploy-example-customer-2-pipeline-complete": {
83+
"pipeline": "deploy-example-customer-2",
12184
"stage": "pipeline-complete"
12285
},
12386
"example_repo": {

test/testdata/goldens/pipedream/no-autodeploy.jsonnet_output-files.golden

Lines changed: 4 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -149,90 +149,15 @@
149149
}
150150
}
151151
},
152-
"deploy-example-customer-3.yaml": {
153-
"format_version": 10,
154-
"pipelines": {
155-
"deploy-example-customer-3": {
156-
"display_order": 7,
157-
"group": "example",
158-
"materials": {
159-
"deploy-example-customer-2-pipeline-complete": {
160-
"pipeline": "deploy-example-customer-2",
161-
"stage": "pipeline-complete"
162-
},
163-
"example_repo": {
164-
"branch": "master",
165-
"destination": "example",
166-
"git": "git@github.com:getsentry/example.git",
167-
"shallow_clone": true
168-
}
169-
},
170-
"region": "customer-3",
171-
"stages": [
172-
{
173-
"ready": {
174-
"jobs": {
175-
"ready": {
176-
"tasks": [
177-
{
178-
"exec": {
179-
"command": true
180-
}
181-
}
182-
]
183-
}
184-
}
185-
}
186-
},
187-
{
188-
"wait": {
189-
"approval": {
190-
"type": "manual"
191-
},
192-
"jobs": {
193-
"wait": {
194-
"tasks": [
195-
{
196-
"exec": {
197-
"command": true
198-
}
199-
}
200-
]
201-
}
202-
}
203-
}
204-
},
205-
{
206-
"example_stage": { }
207-
},
208-
{
209-
"pipeline-complete": {
210-
"jobs": {
211-
"pipeline-complete": {
212-
"tasks": [
213-
{
214-
"exec": {
215-
"command": true
216-
}
217-
}
218-
]
219-
}
220-
}
221-
}
222-
}
223-
]
224-
}
225-
}
226-
},
227152
"deploy-example-customer-4.yaml": {
228153
"format_version": 10,
229154
"pipelines": {
230155
"deploy-example-customer-4": {
231156
"display_order": 8,
232157
"group": "example",
233158
"materials": {
234-
"deploy-example-customer-3-pipeline-complete": {
235-
"pipeline": "deploy-example-customer-3",
159+
"deploy-example-customer-2-pipeline-complete": {
160+
"pipeline": "deploy-example-customer-2",
236161
"stage": "pipeline-complete"
237162
},
238163
"example_repo": {
@@ -568,9 +493,9 @@
568493
"rollback-example": {
569494
"display_order": 1,
570495
"environment_variables": {
571-
"ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-3 --pipeline=deploy-example-customer-4 --pipeline=deploy-example",
496+
"ALL_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4 --pipeline=deploy-example",
572497
"GOCD_ACCESS_TOKEN": "{{SECRET:[devinfra][gocd_access_token]}}",
573-
"REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-3 --pipeline=deploy-example-customer-4",
498+
"REGION_PIPELINE_FLAGS": "--pipeline=deploy-example-s4s --pipeline=deploy-example-us --pipeline=deploy-example-de --pipeline=deploy-example-customer-1 --pipeline=deploy-example-customer-2 --pipeline=deploy-example-customer-4",
574499
"ROLLBACK_MATERIAL_NAME": "example_repo",
575500
"ROLLBACK_STAGE": "example_stage"
576501
},

0 commit comments

Comments
 (0)