1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185 | --- log.suse.txt 2017-08-11 13:36:28.878354792 +0200
+++ log.ubuntu.txt 2017-08-11 14:06:17.136900441 +0200
@@ -1,48 +1,148 @@
-=== RUN TestOverlord
- t0: "2017-08-11 13:36:24.885101686 +0200 CEST"
+ t0: "2017-08-11 14:06:16.478040852 +0200 CEST"
CONTEXT: change 1 should be aborted as it has unfinished tasks
CONTEXT: change 2 should be pruned as it DONE and has no tasks
-waitForPrune interval: 752.6721ms
+waitForPrune interval: 50.503928ms
waitForPrune, cycles: -1
-time sice t0 > 100ms (1.189302931s), setting cycles=2
-Prune: now: "2017-08-11 13:36:26.074426517 +0200 CEST"
- pruneLimit: "2017-08-11 13:36:25.974426517 +0200 CEST"
- abortLimit: "2017-08-11 13:36:25.974426517 +0200 CEST"
+time sice t0 > 100ms (100.306443ms), setting cycles=2
+Prune: now: "2017-08-11 14:06:16.598316122 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.498316122 +0200 CEST"
+ abortLimit: "2017-08-11 14:06:16.498316122 +0200 CEST"
found 1 ready changes
change "1" is not ready
aborting change (before abort limit): "1"
change "2" is ready < pruneLimit || readycount > max
deleting change (before prune limit or after max ready changes): "2"
-waitForPrune interval: 340.307995ms
+waitForPrune interval: 59.115847ms
waitForPrune, cycles: 2
cycles decremented to 1
-Prune: now: "2017-08-11 13:36:26.414722761 +0200 CEST"
- pruneLimit: "2017-08-11 13:36:26.314722761 +0200 CEST"
- abortLimit: "2017-08-11 13:36:26.314722761 +0200 CEST"
+Prune: now: "2017-08-11 14:06:16.637477152 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.537477152 +0200 CEST"
+ abortLimit: "2017-08-11 14:06:16.537477152 +0200 CEST"
found 1 ready changes
-change "1" is ready < pruneLimit || readycount > max
-deleting task (before prune limit or after max ready changes): "1"
-deleting change (before prune limit or after max ready changes): "1"
-waitForPrune interval: 397.327843ms
+waitForPrune interval: 202.532µs
waitForPrune, cycles: 1
cycles decremented to 0
closing prune happened
-Prune: now: "2017-08-11 13:36:26.812077852 +0200 CEST"
- pruneLimit: "2017-08-11 13:36:26.712077852 +0200 CEST"
- abortLimit: "2017-08-11 13:36:26.712077852 +0200 CEST"
-found 0 ready changes
-waitForPrune interval: 341.536µs
-waitForPrune, cycles: 0
-
-----------------------------------------------------------------------
-FAIL: overlord_test.go:360: overlordSuite.TestEnsureLoopPrune
-
-overlord_test.go:432:
- c.Assert(st.Change(chg1.ID()), Equals, chg1)
-... obtained *state.Change = (*state.Change)(nil)
-... expected *state.Change = &state.Change{state:(*state.State)(0xc420094ee0), id:"1", kind:"abort", summary:"...", status:0, clean:false, data:state.customData{}, taskIDs:[]string{"1"}, lanes:0, ready:(chan struct {})(0xc4204f35c0), spawnTime:time.Time{sec:63638048184, nsec:885095191, loc:(*time.Location)(0xe869e0)}, readyTime:time.Time{sec:63638048186, nsec:74551525, loc:(*time.Location)(0xe869e0)}}
-
---- FAIL: TestOverlord (2.45s)
-FAIL
-exit status 1
-FAIL github.com/snapcore/snapd/overlord 2.547s
+Prune: now: "2017-08-11 14:06:16.79895237 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.69895237 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.79895237 +0200 CEST"
+found 1 ready changes
+change "2" is not ready
+change "1" is ready < pruneLimit || readycount > max
+deleting task (before prune limit or after max ready changes): "1"
+deleting change (before prune limit or after max ready changes): "1"
+Prune: now: "2017-08-11 14:06:16.847401308 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.747401308 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.847401308 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.848927289 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.748927289 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.848927289 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.85899401 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.75899401 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.85899401 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.869037083 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.769037083 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.869037083 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.878772154 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.778772154 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.878772154 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.888981671 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.788981671 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.888981671 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.898909124 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.798909124 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.898909124 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.908921658 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.808921658 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.908921658 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.918814551 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.818814551 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.918814551 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.928968298 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.828968298 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.928968298 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.938729461 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.838729461 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.938729461 +0200 CEST"
+found 0 ready changes
+change "2" is not ready
+Prune: now: "2017-08-11 14:06:16.98914439 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.88914439 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.98914439 +0200 CEST"
+found 1 ready changes
+Prune: now: "2017-08-11 14:06:16.9894161 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.8894161 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.9894161 +0200 CEST"
+found 1 ready changes
+Prune: now: "2017-08-11 14:06:16.998930373 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.898930373 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:16.998930373 +0200 CEST"
+found 1 ready changes
+Prune: now: "2017-08-11 14:06:17.008993444 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.908993444 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.008993444 +0200 CEST"
+found 1 ready changes
+Prune: now: "2017-08-11 14:06:17.018841727 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.918841727 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.018841727 +0200 CEST"
+found 1 ready changes
+Prune: now: "2017-08-11 14:06:17.028970685 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.928970685 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.028970685 +0200 CEST"
+found 1 ready changes
+Prune: now: "2017-08-11 14:06:17.038816139 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.938816139 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.038816139 +0200 CEST"
+found 1 ready changes
+Prune: now: "2017-08-11 14:06:17.048899245 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.948899245 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.048899245 +0200 CEST"
+found 1 ready changes
+change "2" is ready < pruneLimit || readycount > max
+deleting task (before prune limit or after max ready changes): "2"
+deleting change (before prune limit or after max ready changes): "2"
+Prune: now: "2017-08-11 14:06:17.098268604 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.998268604 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.098268604 +0200 CEST"
+found 0 ready changes
+Prune: now: "2017-08-11 14:06:17.098867563 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:16.998867563 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.098867563 +0200 CEST"
+found 0 ready changes
+Prune: now: "2017-08-11 14:06:17.108928567 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:17.008928567 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.108928567 +0200 CEST"
+found 0 ready changes
+Prune: now: "2017-08-11 14:06:17.118918886 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:17.018918886 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.118918886 +0200 CEST"
+found 0 ready changes
+Prune: now: "2017-08-11 14:06:17.128935239 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:17.028935239 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.128935239 +0200 CEST"
+found 0 ready changes
+Prune: now: "2017-08-11 14:06:17.138814373 +0200 CEST"
+ pruneLimit: "2017-08-11 14:06:17.038814373 +0200 CEST"
+ abortLimit: "2017-08-11 13:06:17.138814373 +0200 CEST"
+found 0 ready changes
+PASS
|