Skip to content

Commit 6253e95

Browse files
committed
Revert "Fix: rename 'timeout' containers to 'timeout_task' to avoid conflicts with docker keyword"
This reverts commit 5030564. Signed-off-by: Simone Tollardo <tollsimy.dev@protonmail.com>
1 parent d1b8ea5 commit 6253e95

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

config/logger.conf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ keys=root,
1616
send_kcidb,
1717
tarball,
1818
test_report,
19-
timeout-task,
20-
timeout-task-closing,
21-
timeout-task-holdoff,
19+
timeout,
20+
timeout-closing,
21+
timeout-holdoff,
2222
trigger
2323

2424
[handlers]
@@ -113,22 +113,22 @@ handlers=consoleHandler, timedRotatingHandler
113113
qualname=test_report
114114
propagate=0
115115

116-
[logger_timeout-task]
116+
[logger_timeout]
117117
level=DEBUG
118118
handlers=consoleHandler, timedRotatingHandler
119-
qualname=timeout-task
119+
qualname=timeout
120120
propagate=0
121121

122-
[logger_timeout-task-closing]
122+
[logger_timeout-closing]
123123
level=DEBUG
124124
handlers=consoleHandler, timedRotatingHandler
125-
qualname=timeout-task-closing
125+
qualname=timeout-closing
126126
propagate=0
127127

128-
[logger_timeout-task-holdoff]
128+
[logger_timeout-holdoff]
129129
level=DEBUG
130130
handlers=consoleHandler, timedRotatingHandler
131-
qualname=timeout-task-holdoff
131+
qualname=timeout-holdoff
132132
propagate=0
133133

134134
[logger_trigger]

doc/pipeline-details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Each environment needs to have its own API token set up locally to be able to su
7474

7575
### Timeout
7676

77-
The timeout-task service periodically checks all nodes' state. If a node is not in "done" state, then it checks whether the maximum wait time (timeout) is over. If so, it sets the node and all its child nodes to "done" state.
77+
The timeout service periodically checks all nodes' state. If a node is not in "done" state, then it checks whether the maximum wait time (timeout) is over. If so, it sets the node and all its child nodes to "done" state.
7878
If the node is in "available" state and not timed-out, it will check for holdoff time. If the holdoff reached, and all its child nodes are completed, the node state will be moved to "done", otherwise the state will be set to "closing".
7979
The parent node with "closing" state can not have any new child nodes.
8080
This will generate pub/sub event of node update.

docker-compose.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ services:
156156
- *setting-arg
157157
- 'loop'
158158

159-
timeout-task:
159+
timeout:
160160
<<: *base-service
161161
container_name: 'kernelci-pipeline-timeout'
162162
command:
@@ -166,7 +166,7 @@ services:
166166
- 'run'
167167
- '--mode=timeout'
168168

169-
timeout-task-closing:
169+
timeout-closing:
170170
<<: *base-service
171171
container_name: 'kernelci-pipeline-closing'
172172
command:
@@ -176,7 +176,7 @@ services:
176176
- 'run'
177177
- '--mode=closing'
178178

179-
timeout-task-holdoff:
179+
timeout-holdoff:
180180
<<: *base-service
181181
container_name: 'kernelci-pipeline-holdoff'
182182
command:

kube/aks/nodehandlers.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
app: timeout
2121
spec:
2222
containers:
23-
- name: timeout-task
23+
- name: timeout
2424
image: kernelci/kernelci:pipeline@sha256:bb01424c4dedcd2ffa87cef225b09116cf874bc2b91fc63ed6d993d6fc5c43cb
2525
imagePullPolicy: Always
2626
command:
@@ -68,7 +68,7 @@ spec:
6868
app: closing
6969
spec:
7070
containers:
71-
- name: timeout-task
71+
- name: timeout
7272
image: kernelci/kernelci:pipeline@sha256:bb01424c4dedcd2ffa87cef225b09116cf874bc2b91fc63ed6d993d6fc5c43cb
7373
imagePullPolicy: Always
7474
command:
@@ -112,7 +112,7 @@ spec:
112112
app: holdoff
113113
spec:
114114
containers:
115-
- name: timeout-task
115+
- name: timeout
116116
image: kernelci/kernelci:pipeline@sha256:bb01424c4dedcd2ffa87cef225b09116cf874bc2b91fc63ed6d993d6fc5c43cb
117117
imagePullPolicy: Always
118118
command:

kube/minikube/deployments/timeout-closing-deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
apiVersion: apps/v1
77
kind: Deployment
88
metadata:
9-
name: kernelci-pipeline-timeout-task-closing
9+
name: kernelci-pipeline-timeout-closing
1010
spec:
1111
replicas: 1
1212
selector:
1313
matchLabels:
14-
app: kernelci-pipeline-timeout-task-closing
14+
app: kernelci-pipeline-timeout-closing
1515
template:
1616
metadata:
1717
labels:
18-
app: kernelci-pipeline-timeout-task-closing
18+
app: kernelci-pipeline-timeout-closing
1919
spec:
2020
containers:
21-
- name: kernelci-pipeline-timeout-task-closing
21+
- name: kernelci-pipeline-timeout-closing
2222
image: kernelci/staging-kernelci
2323
env:
2424
- name: KCI_API_TOKEN

kube/minikube/deployments/timeout-holdoff-deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: kernelci-pipeline-timeout-task-holdoff
4+
name: kernelci-pipeline-timeout-holdoff
55
spec:
66
replicas: 1
77
selector:
88
matchLabels:
9-
app: kernelci-pipeline-timeout-task-holdoff
9+
app: kernelci-pipeline-timeout-holdoff
1010
template:
1111
metadata:
1212
labels:
13-
app: kernelci-pipeline-timeout-task-holdoff
13+
app: kernelci-pipeline-timeout-holdoff
1414
spec:
1515
containers:
16-
- name: kernelci-pipeline-timeout-task-holdoff
16+
- name: kernelci-pipeline-timeout-holdoff
1717
image: kernelci/staging-kernelci
1818
env:
1919
- name: KCI_API_TOKEN

src/timeout.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _submit_lapsed_nodes(self, lapsed_nodes, state, mode):
104104
class Timeout(TimeoutService):
105105

106106
def __init__(self, configs, args):
107-
super().__init__(configs, args, 'timeout-task')
107+
super().__init__(configs, args, 'timeout')
108108

109109
def _check_pending_nodes(self, pending_nodes):
110110
timeout_nodes = {}
@@ -131,7 +131,7 @@ def _run(self, ctx):
131131
class Holdoff(TimeoutService):
132132

133133
def __init__(self, configs, args):
134-
super().__init__(configs, args, 'timeout-task-holdoff')
134+
super().__init__(configs, args, 'timeout-holdoff')
135135

136136
def _get_available_nodes(self):
137137
nodes = self._api.node.find({
@@ -176,7 +176,7 @@ def _run(self, ctx):
176176
class Closing(TimeoutService):
177177

178178
def __init__(self, configs, args):
179-
super().__init__(configs, args, 'timeout-task-closing')
179+
super().__init__(configs, args, 'timeout-closing')
180180

181181
def _get_closing_nodes(self):
182182
nodes = self._api.node.find({'state': 'closing'})

0 commit comments

Comments
 (0)