- Notifications
You must be signed in to change notification settings - Fork928
Commit95ce697
authored
fix: schedule autobuild directly on TestExecutorAutostopTemplateDisabled (#10453)
Fixes flake seen here:https://github.com/coder/coder/actions/runs/6716682414/job/18253279654The test used a cron schedule to compute autobuild ticks, with ticks every hour on the hour. The default TTL was set to an hour. Usually, the next tick is less than one hour in the future, unless the test runs at :00 past the hour, which it did in my flake'drun. But, given that this is an autostop test, the cron schedule is irrelevant (such schedules are used for auto_start_). So, I've removed it from the test and compute the build ticks directly.Also, the test originally had the workspace TTL set to longer than the default template TTL, and then tested that no build happened when the tick was prior to both. This seems odd to me, as we want to demonstrate the the executor disregards the workspace TTL.So, I changed the test to set the workspace TTL shorter, and then send in a tick between the two, verify that we don't autostop, then a tick after the template TTL and verify that we do.1 parent94eb9b8 commit95ce697
1 file changed
+17
-6
lines changedLines changed: 17 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
743 | 743 |
| |
744 | 744 |
| |
745 | 745 |
| |
746 |
| - | |
747 | 746 |
| |
748 | 747 |
| |
749 | 748 |
| |
| |||
761 | 760 |
| |
762 | 761 |
| |
763 | 762 |
| |
764 |
| - | |
| 763 | + | |
765 | 764 |
| |
766 |
| - | |
| 765 | + | |
767 | 766 |
| |
768 | 767 |
| |
769 | 768 |
| |
770 | 769 |
| |
771 | 770 |
| |
772 | 771 |
| |
773 | 772 |
| |
774 |
| - | |
| 773 | + | |
775 | 774 |
| |
776 |
| - | |
777 |
| - | |
| 775 | + | |
778 | 776 |
| |
779 | 777 |
| |
780 | 778 |
| |
781 | 779 |
| |
782 | 780 |
| |
783 | 781 |
| |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
784 | 795 |
| |
785 | 796 |
| |
786 | 797 |
| |
|
0 commit comments
Comments
(0)