Commit 9bc26fe
committed
Test e2e-image against staging environment
Previously the Docker image to run end to end tests and smoke tests was
being tested against both the dev and production environments before
pushing (dev environment for the end to end tests, production
environment for the smoke tests).
This seems a bit more convoluted than necessary, and was a cause for
surprise and failures with the e2e-image pipeline recently when I was
making changes to how forms-e2e-tests gets its configuration (see
PR #1940 for more details). In future we'd like to have the e2e-image
pipeline test the end to end tests and smoke tests against the same
environment, to simplify the configuration logic of forms-e2e-tests and
make it more consistent with the configuration of our apps.
Why weren't we using the same environment for testing both end to end
tests and smoke tests already? The reasons aren't documented, but we can
make some guesses... there is some sense to it; the smoke tests run
using the latest e2e-image, so we probably want to make sure the smoke
tests pass against production before promoting the image, and dev might
be different enough that a pass there doesn't mean a pass on production.
On the other hand, we might not want to run an untested version of the
end to end tests against production in case they mess up and do
something really bad... but then again the end to end tests are not
gated by the e2e-image pipeline in the same way as the smoke tests are
so this may not be as much of a concern.
Running the smoke tests and end to end tests against the staging
environment seems like a reasonable compromise; staging should be as
close to production as possible, but if the end to end tests do
something bad and break things then it's also less of an issue. This
also matches more closely what our app and terraform release pipelines
do; testing against staging before releasing to production.1 parent 6e97595 commit 9bc26fe
2 files changed
Lines changed: 12 additions & 12 deletions
File tree
- infra
- deployments/deploy/e2e-tests-image-builder
- modules/e2e-image-pipeline
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments