Repository navigation
Commit b6879cd
committed
ci(cleanup): count the nested retain's deferred roots apart from the serial sweep's
The Amplify step now deletes one sandbox at a time (#1255) and counts
the sandboxes it defers to the next run in DEFERRED. This PR counted the
roots it defers after starting a nested retain in a variable of the same
name, so both summary lines printed the sum. It now has its own counter,
NESTED_DEFERRED.
The nested retain stays behind the one-at-a-time gate, so it never
starts while an earlier sandbox's delete may still be running, and its
nested delete is not awaited: the model stack holds no API Gateway
resource, so it doesn't compete for the REST API delete quota the wait
protects. A comment in the step says so.
Tests: a stuck and a normal sandbox in one run (the stuck root is
deferred on its own line, the normal one deleted and awaited), and no
nested delete once the wait budget is spent or while an earlier delete
is still running. The step tests use the step's poll override, so they
take seconds, not minutes.1 parent e3f3e90 commit b6879cd
2 files changed
Lines changed: 64 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
| 402 | + | |
| 403 | + | |
403 | 404 | | |
404 | 405 | | |
405 | 406 | | |
| |||
412 | 413 | | |
413 | 414 | | |
414 | 415 | | |
415 | | - | |
| 416 | + | |
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
| |||
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
550 | 559 | | |
551 | 560 | | |
552 | 561 | | |
| |||
557 | 566 | | |
558 | 567 | | |
559 | 568 | | |
560 | | - | |
| 569 | + | |
561 | 570 | | |
562 | 571 | | |
563 | 572 | | |
| |||
606 | 615 | | |
607 | 616 | | |
608 | 617 | | |
609 | | - | |
| 618 | + | |
610 | 619 | | |
611 | 620 | | |
612 | 621 | | |
| |||
627 | 636 | | |
628 | 637 | | |
629 | 638 | | |
630 | | - | |
| 639 | + | |
631 | 640 | | |
632 | 641 | | |
633 | 642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| |||
807 | 809 | | |
808 | 810 | | |
809 | 811 | | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
810 | 858 | | |
811 | 859 | | |
812 | 860 | | |
| |||
0 commit comments