Repository navigation
Commit 38afca9
committed
fix(janitor): include previous finalized snapshots in scoped cleanup
When the invalidated environment is unfinalized, it still points at the
snapshots of its last finalized plan. Include them in the scoped cleanup
target, mirroring how SnapshotState.get_expired_snapshots treats them.
Also fold the duplicated global and scoped delete_expired_snapshots calls
into one, and revert an unrelated rewrite of the GitHub controller test.
Signed-off-by: mday-io <mdaytn@gmail.com>1 parent 613a0e7 commit 38afca9
3 files changed
Lines changed: 72 additions & 27 deletions
File tree
- sqlmesh/core
- tests
- core/integration
- integrations/github/cicd
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3185 | 3185 | | |
3186 | 3186 | | |
3187 | 3187 | | |
3188 | | - | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
3189 | 3199 | | |
3190 | 3200 | | |
3191 | 3201 | | |
| |||
3194 | 3204 | | |
3195 | 3205 | | |
3196 | 3206 | | |
3197 | | - | |
3198 | | - | |
3199 | | - | |
3200 | | - | |
3201 | | - | |
3202 | | - | |
3203 | | - | |
3204 | | - | |
3205 | | - | |
3206 | | - | |
3207 | | - | |
3208 | | - | |
3209 | | - | |
3210 | | - | |
3211 | | - | |
3212 | | - | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
3213 | 3211 | | |
3214 | | - | |
| 3212 | + | |
| 3213 | + | |
3215 | 3214 | | |
3216 | 3215 | | |
3217 | 3216 | | |
3218 | 3217 | | |
| 3218 | + | |
| 3219 | + | |
3219 | 3220 | | |
3220 | 3221 | | |
3221 | 3222 | | |
| |||
3225 | 3226 | | |
3226 | 3227 | | |
3227 | 3228 | | |
3228 | | - | |
| 3229 | + | |
3229 | 3230 | | |
3230 | 3231 | | |
3231 | 3232 | | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
3232 | 3236 | | |
3233 | 3237 | | |
3234 | 3238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
602 | 645 | | |
603 | 646 | | |
604 | 647 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
582 | | - | |
583 | | - | |
| 581 | + | |
584 | 582 | | |
585 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
592 | | - | |
593 | | - | |
594 | | - | |
| 592 | + | |
595 | 593 | | |
596 | 594 | | |
597 | | - | |
| 595 | + | |
598 | 596 | | |
599 | 597 | | |
600 | 598 | | |
| |||
0 commit comments