forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit99351a8
committed
Improve isolationtester's timeout management.
isolationtester.c had a hard-wired limit of 3 minutes per test step.It now emerges that this isn't quite enough for some of the slowestbuildfarm animals. This isn't the first time we've had to raisethis limit (cf.1db439a), so let's make it configurable. Thispatch raises the default to 5 minutes, and introduces an environmentvariable PGISOLATIONTIMEOUT that can be set if more time is needed,following the precedent of PGCTLTIMEOUT.Also, modify isolationtester so that when the timeout is hit,it explicitly reports having sent a cancel. This makes the regressionfailure log considerably more intelligible. (In the worst case, atimed-out test might actually be reported as "passing" without thisextra output, so arguably this is a bug fix in itself.)In passing, update the README file, which had apparently not gottentouched when we added "make check" support here.Back-patch to 9.6; older versions don't have comparable timeout logic.Discussion:https://postgr.es/m/22964.1575842935@sss.pgh.pa.us1 parent2d0fdfa commit99351a8
2 files changed
+48
-14
lines changedLines changed: 21 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 |
| - | |
16 |
| - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 |
| |
20 | 24 |
| |
21 | 25 |
| |
22 | 26 |
| |
23 | 27 |
| |
24 | 28 |
| |
| 29 | + | |
| 30 | + | |
25 | 31 |
| |
| 32 | + | |
| 33 | + | |
26 | 34 |
| |
27 | 35 |
| |
28 | 36 |
| |
| |||
39 | 47 |
| |
40 | 48 |
| |
41 | 49 |
| |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
42 | 55 |
| |
43 | 56 |
| |
44 | 57 |
| |
| |||
108 | 121 |
| |
109 | 122 |
| |
110 | 123 |
| |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
115 | 128 |
| |
116 | 129 |
| |
117 | 130 |
| |
|
Lines changed: 27 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 |
| |
34 | 38 |
| |
35 | 39 |
| |
| |||
62 | 66 |
| |
63 | 67 |
| |
64 | 68 |
| |
| 69 | + | |
65 | 70 |
| |
66 | 71 |
| |
67 | 72 |
| |
| |||
103 | 108 |
| |
104 | 109 |
| |
105 | 110 |
| |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
106 | 119 |
| |
107 | 120 |
| |
108 | 121 |
| |
| |||
766 | 779 |
| |
767 | 780 |
| |
768 | 781 |
| |
769 |
| - | |
| 782 | + | |
770 | 783 |
| |
771 | 784 |
| |
772 | 785 |
| |
773 | 786 |
| |
774 | 787 |
| |
775 | 788 |
| |
776 | 789 |
| |
777 |
| - | |
| 790 | + | |
778 | 791 |
| |
779 | 792 |
| |
780 | 793 |
| |
| |||
783 | 796 |
| |
784 | 797 |
| |
785 | 798 |
| |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
786 | 806 |
| |
| 807 | + | |
787 | 808 |
| |
788 | 809 |
| |
789 | 810 |
| |
790 | 811 |
| |
791 | 812 |
| |
792 | 813 |
| |
793 | 814 |
| |
794 |
| - | |
| 815 | + | |
795 | 816 |
| |
796 | 817 |
| |
797 | 818 |
| |
798 | 819 |
| |
799 | 820 |
| |
800 |
| - | |
| 821 | + | |
801 | 822 |
| |
802 |
| - | |
803 |
| - | |
| 823 | + | |
| 824 | + | |
804 | 825 |
| |
805 | 826 |
| |
806 | 827 |
| |
|
0 commit comments
Comments
(0)