Skip to content

Commit 18e2039

Browse files
committed
Add checklist items for mirroring to PR templates (#7299, PR #7427)
2 parents c7888f4 + bbe5115 commit 18e2039

File tree

6 files changed

+65
-0
lines changed

6 files changed

+65
-0
lines changed

.github/PULL_REQUEST_TEMPLATE/anvilprod-hotfix.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ Connected issue: #0000
8383
- [ ] Created backport PR and linked to it in a comment on this PR
8484

8585

86+
### Operator (mirroring)
87+
88+
- [ ] Started mirroring in `anvilprod` <sub>or neither this PR nor a failed, prior promotion requires it</sub>
89+
- [ ] Checked for, triaged and possibly requeued messages in mirror fail queue in `anvilprod` <sub>or neither this PR nor a failed, prior promotion requires it</sub>
90+
- [ ] Emptied mirror fail queue in `anvilprod` <sub>or neither this PR nor a failed, prior promotion requires it</sub>
91+
92+
8693
### Operator
8794

8895
- [ ] PR is assigned to no one

.github/PULL_REQUEST_TEMPLATE/anvilprod-promotion.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ Connected issue: #0000
102102
- [ ] Restarted `deploy_browser` job in the GitLab pipeline for this PR in `anvilprod` <sub>or this PR does not require reindexing `anvilprod`</sub>
103103

104104

105+
### Operator (mirroring)
106+
107+
- [ ] Started mirroring in `anvilprod` <sub>or this PR does not require mirroring `anvilprod`</sub>
108+
- [ ] Checked for, triaged and possibly requeued messages in mirror fail queue in `anvilprod` <sub>or this PR does not require mirroring `anvilprod`</sub>
109+
- [ ] Emptied mirror fail queue in `anvilprod` <sub>or this PR does not require mirroring `anvilprod`</sub>
110+
111+
105112
### Operator
106113

107114
- [ ] PR is assigned to only the system administrator

.github/PULL_REQUEST_TEMPLATE/prod-hotfix.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ Connected issue: #0000
7979
- [ ] Created backport PR and linked to it in a comment on this PR
8080

8181

82+
### Operator (mirroring)
83+
84+
- [ ] Started mirroring in `prod` <sub>or neither this PR nor a failed, prior promotion requires it</sub>
85+
- [ ] Checked for, triaged and possibly requeued messages in mirror fail queue in `prod` <sub>or neither this PR nor a failed, prior promotion requires it</sub>
86+
- [ ] Emptied mirror fail queue in `prod` <sub>or neither this PR nor a failed, prior promotion requires it</sub>
87+
88+
8289
### Operator
8390

8491
- [ ] PR is assigned to no one

.github/PULL_REQUEST_TEMPLATE/prod-promotion.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ Connected issue: #0000
9898
- [ ] Restarted `deploy_browser` job in the GitLab pipeline for this PR in `prod` <sub>or this PR does not require reindexing `prod`</sub>
9999

100100

101+
### Operator (mirroring)
102+
103+
- [ ] Started mirroring in `prod` <sub>or this PR does not require mirroring `prod`</sub>
104+
- [ ] Checked for, triaged and possibly requeued messages in mirror fail queue in `prod` <sub>or this PR does not require mirroring `prod`</sub>
105+
- [ ] Emptied mirror fail queue in `prod` <sub>or this PR does not require mirroring `prod`</sub>
106+
107+
101108
### Operator
102109

103110
- [ ] PR is assigned to only the system administrator

.github/pull_request_template.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,16 @@ title is `Fix: ` followed by the issue title
194194
- [ ] Restarted `deploy_browser` job in the GitLab pipeline for this PR in `anvildev` <sub>or this PR does not require reindexing `anvildev`</sub>
195195

196196

197+
### Operator (mirroring)
198+
199+
- [ ] Started mirroring in `dev` <sub>or this PR does not require mirroring `dev`</sub>
200+
- [ ] Started mirroring in `anvildev` <sub>or this PR does not require mirroring `anvildev`</sub>
201+
- [ ] Checked for, triaged and possibly requeued messages in mirror fail queue in `dev` <sub>or this PR does not require mirroring `dev`</sub>
202+
- [ ] Checked for, triaged and possibly requeued messages in mirror fail queue in `anvildev` <sub>or this PR does not require mirroring `anvildev`</sub>
203+
- [ ] Emptied mirror fail queue in `dev` <sub>or this PR does not require mirroring `dev`</sub>
204+
- [ ] Emptied mirror fail queue in `anvildev` <sub>or this PR does not require mirroring `anvildev`</sub>
205+
206+
197207
### Operator
198208

199209
- [ ] Propagated the `deploy:shared`, `deploy:gitlab`, `deploy:runner`, `API`, `reindex:partial`, `reindex:anvilprod` and `reindex:prod` labels to the next promotion PRs <sub>or this PR carries none of these labels</sub>

.github/pull_request_template.md.template.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,33 @@ def emit(t: T, target_branch: str):
10311031
'content': 'Created backport PR and linked to it in a comment on this PR'
10321032
})
10331033
]),
1034+
*iif(t in (T.default, T.hotfix, T.promotion), [
1035+
{
1036+
'type': 'h2',
1037+
'content': 'Operator (mirroring)'
1038+
},
1039+
*flatten(zip(*(
1040+
[
1041+
*[
1042+
{
1043+
'type': 'cli',
1044+
'content': f'{action} in `{d}`',
1045+
'alt': (
1046+
'or neither this PR nor a failed, prior promotion requires it'
1047+
if t is T.hotfix else
1048+
f'or this PR does not require mirroring `{d}`'
1049+
)
1050+
}
1051+
for action in [
1052+
'Started mirroring',
1053+
'Checked for, triaged and possibly requeued messages in mirror fail queue',
1054+
'Emptied mirror fail queue'
1055+
]
1056+
]
1057+
]
1058+
for d, s in t.target_deployments(target_branch).items()
1059+
)))
1060+
]),
10341061
{
10351062
'type': 'h2',
10361063
'content': 'Operator'

0 commit comments

Comments
 (0)