Commit 7cac5d2
authored
fix(integ-runner): integ-runner produces snapshot that doesn't validate (#666)
The integ-runner uses `synthFast` to produce the assembly that will be
used to compare the snapshot to, to determine if there is "a change".
However, when a snapshot has changed and a test is run, there is a fork:
- In dry-run mode: `synthFast` will be used to produce the updated
snapshot.
- In real-mode, the result of `this.deploy()` will be the updated
snapshot (but also: the next time it will be compared to the result of
`synthFast`).
We are running into a situation where the results of `synthFast` and
`this.deploy` are different, and snapshot validation fails.
In this change, we always generate the snapshot using `synthFast`, and
ignore the template produced by `this.deploy()`. This makes sure that
the templates will at least compile equal.
I'm not sure why this ever worked this way, because the template that is
deployed can be specialized to an account and region, but the snapshot
can never be, so we need to investigate a little more.
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license1 parent 628b04c commit 7cac5d2
File tree
3 files changed
+15
-25
lines changed- packages/@aws-cdk/integ-runner
- lib/runner
- test/runner
3 files changed
+15
-25
lines changedLines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | 240 | | |
| 241 | + | |
248 | 242 | | |
249 | 243 | | |
250 | | - | |
| 244 | + | |
251 | 245 | | |
252 | 246 | | |
253 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
341 | 337 | | |
342 | 338 | | |
343 | 339 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
626 | | - | |
| 626 | + | |
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
| |||
0 commit comments