screwdriver-api 7.0.197 → 7.0.199
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -186,52 +186,6 @@ executor:
|
|
|
186
186
|
launchVersion: LAUNCH_VERSION
|
|
187
187
|
# Prefix to the container
|
|
188
188
|
prefix: EXECUTOR_PREFIX
|
|
189
|
-
k8s-vm:
|
|
190
|
-
enabled: EXECUTOR_K8SVM_ENABLED
|
|
191
|
-
options:
|
|
192
|
-
# Configuration of Docker
|
|
193
|
-
kubernetes:
|
|
194
|
-
# The host or IP of the kubernetes cluster
|
|
195
|
-
host: K8S_HOST
|
|
196
|
-
# The jwt token used for authenticating kubernetes requests
|
|
197
|
-
token: K8S_TOKEN
|
|
198
|
-
jobsNamespace: K8S_JOBS_NAMESPACE
|
|
199
|
-
baseImage: K8S_BASE_IMAGE
|
|
200
|
-
# Resources for build pod
|
|
201
|
-
resources:
|
|
202
|
-
# Number of cpu cores
|
|
203
|
-
cpu:
|
|
204
|
-
micro: K8S_CPU_MICRO
|
|
205
|
-
low: K8S_CPU_LOW
|
|
206
|
-
high: K8S_CPU_HIGH
|
|
207
|
-
# Memory in GB
|
|
208
|
-
memory:
|
|
209
|
-
micro: K8S_MEMORY_MICRO
|
|
210
|
-
low: K8S_MEMORY_LOW
|
|
211
|
-
high: K8S_MEMORY_HIGH
|
|
212
|
-
# Default build timeout for all builds in this cluster
|
|
213
|
-
buildTimeout: K8S_VM_BUILD_TIMEOUT
|
|
214
|
-
# Default max build timeout
|
|
215
|
-
maxBuildTimeout: K8S_VM_MAX_BUILD_TIMEOUT
|
|
216
|
-
# k8s node selectors for build pod scheduling.
|
|
217
|
-
# Value is Object of format { label: 'value' } See
|
|
218
|
-
# https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#step-one-attach-label-to-the-node
|
|
219
|
-
# Eg: { dedicated: 'screwdriver' } to schedule pods on nodes having
|
|
220
|
-
# label-value of dedicated=screwdriver
|
|
221
|
-
nodeSelectors:
|
|
222
|
-
__name: K8S_VM_NODE_SELECTORS
|
|
223
|
-
__format: json
|
|
224
|
-
# k8s preferred node selectors for build pod scheduling
|
|
225
|
-
# See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature
|
|
226
|
-
preferredNodeSelectors:
|
|
227
|
-
__name: K8S_VM_PREFERRED_NODE_SELECTORS
|
|
228
|
-
__format: json
|
|
229
|
-
# Launcher image to use
|
|
230
|
-
launchImage: LAUNCH_IMAGE
|
|
231
|
-
# Launcher container tag to use
|
|
232
|
-
launchVersion: LAUNCH_VERSION
|
|
233
|
-
# Prefix to the container
|
|
234
|
-
prefix: EXECUTOR_PREFIX
|
|
235
189
|
jenkins:
|
|
236
190
|
enabled: EXECUTOR_JENKINS_ENABLED
|
|
237
191
|
options:
|
package/config/default.yaml
CHANGED
|
@@ -157,38 +157,6 @@ executor:
|
|
|
157
157
|
docker: {}
|
|
158
158
|
# Container tags to use
|
|
159
159
|
launchVersion: stable
|
|
160
|
-
k8s-vm:
|
|
161
|
-
enabled: true
|
|
162
|
-
options:
|
|
163
|
-
# Configuration of Docker
|
|
164
|
-
kubernetes:
|
|
165
|
-
# The host or IP of the kubernetes cluster
|
|
166
|
-
host: kubernetes.default
|
|
167
|
-
# The jwt token used for authenticating kubernetes requests
|
|
168
|
-
# Loaded from /var/run/secrets/kubernetes.io/serviceaccount/token by default
|
|
169
|
-
# Resources for build pod
|
|
170
|
-
resources:
|
|
171
|
-
# Number of cpu cores
|
|
172
|
-
cpu:
|
|
173
|
-
micro: 1
|
|
174
|
-
low: 2
|
|
175
|
-
high: 6
|
|
176
|
-
# Memory in GB
|
|
177
|
-
memory:
|
|
178
|
-
micro: 1
|
|
179
|
-
low: 2
|
|
180
|
-
high: 12
|
|
181
|
-
# Default build timeout for all builds in this cluster (in minutes)
|
|
182
|
-
buildTimeout: 90
|
|
183
|
-
# Default max build timeout (in minutes)
|
|
184
|
-
maxBuildTimeout: 120
|
|
185
|
-
# k8s node selectors for appropriate pod scheduling
|
|
186
|
-
nodeSelectors: {}
|
|
187
|
-
preferredNodeSelectors: {}
|
|
188
|
-
# Launcher image to use
|
|
189
|
-
launchImage: screwdrivercd/launcher
|
|
190
|
-
# Launcher container tag to use
|
|
191
|
-
launchVersion: stable
|
|
192
160
|
# jenkins:
|
|
193
161
|
# options:
|
|
194
162
|
# # Configuration of Jenkins
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screwdriver-api",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.199",
|
|
4
4
|
"description": "API server for the Screwdriver.cd service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"screwdriver-datastore-sequelize",
|
|
39
39
|
"screwdriver-executor-docker",
|
|
40
40
|
"screwdriver-executor-k8s",
|
|
41
|
-
"screwdriver-executor-k8s-vm",
|
|
42
41
|
"screwdriver-executor-queue",
|
|
43
42
|
"screwdriver-executor-router",
|
|
44
43
|
"screwdriver-models",
|
|
@@ -113,7 +112,6 @@
|
|
|
113
112
|
"screwdriver-executor-base": "^10.0.0",
|
|
114
113
|
"screwdriver-executor-docker": "^7.0.0",
|
|
115
114
|
"screwdriver-executor-k8s": "^16.0.0",
|
|
116
|
-
"screwdriver-executor-k8s-vm": "^5.0.0",
|
|
117
115
|
"screwdriver-executor-queue": "^5.0.0",
|
|
118
116
|
"screwdriver-executor-router": "^4.0.0",
|
|
119
117
|
"screwdriver-logger": "^2.0.0",
|
|
@@ -686,8 +686,8 @@ function getSubsequentJobs(workflowGraph, startNode) {
|
|
|
686
686
|
const nodeToEdgeDestsMap = Object.fromEntries(nodes.map(node => [node.name, []]));
|
|
687
687
|
|
|
688
688
|
let start = trimJobName(startNode);
|
|
689
|
-
// In rare cases, WorkflowGraph and startNode may have different start tildes
|
|
690
689
|
|
|
690
|
+
// In rare cases, WorkflowGraph and startNode may have different start tildes
|
|
691
691
|
if (!(start in nodeToEdgeDestsMap)) {
|
|
692
692
|
if (start.startsWith('~')) {
|
|
693
693
|
start = start.slice(1);
|
|
@@ -704,7 +704,14 @@ function getSubsequentJobs(workflowGraph, startNode) {
|
|
|
704
704
|
|
|
705
705
|
const visited = new Set(visiting);
|
|
706
706
|
|
|
707
|
-
edges.forEach(edge =>
|
|
707
|
+
edges.forEach(edge => {
|
|
708
|
+
// this is a temporary fix for the issue where the edge.src is not in the nodes array
|
|
709
|
+
// TODO: https://github.com/screwdriver-cd/screwdriver/issues/3206
|
|
710
|
+
if (!nodeToEdgeDestsMap[edge.src]) {
|
|
711
|
+
nodeToEdgeDestsMap[edge.src] = [];
|
|
712
|
+
}
|
|
713
|
+
nodeToEdgeDestsMap[edge.src].push(edge.dest);
|
|
714
|
+
});
|
|
708
715
|
if (edges.length) {
|
|
709
716
|
while (visiting.length) {
|
|
710
717
|
const currentNode = visiting.pop();
|