Skip to content

Commit eacbe1a

Browse files
authored
remove swift:4.2 (#5160)
1 parent cf36299 commit eacbe1a

File tree

6 files changed

+8
-108
lines changed

6 files changed

+8
-108
lines changed

ansible/files/runtimes.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,6 @@
7373
}
7474
],
7575
"swift": [
76-
{
77-
"kind": "swift:4.2",
78-
"default": false,
79-
"image": {
80-
"prefix": "openwhisk",
81-
"name": "action-swift-v4.2",
82-
"tag": "nightly"
83-
},
84-
"deprecated": false,
85-
"attached": {
86-
"attachmentName": "codefile",
87-
"attachmentType": "text/plain"
88-
}
89-
},
9076
{
9177
"kind": "swift:5.1",
9278
"default": false,

core/controller/src/main/resources/apiv1swagger.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,6 @@
20102010
"go:1.15",
20112011
"go:default",
20122012
"sequence",
2013-
"swift:4.2",
20142013
"swift:5.1",
20152014
"swift:5.3",
20162015
"swift:5.4",

tests/src/test/scala/org/apache/openwhisk/core/controller/test/ActionsApiTests.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ class ActionsApiTests extends ControllerTestCommon with WhiskActionsApi {
899899
val nodeAction = WhiskAction(namespace, aname(), jsDefault(nonInlinedCode(entityStore)), Parameters("x", "b"))
900900
val swiftAction = WhiskAction(namespace, aname(), swift(nonInlinedCode(entityStore)), Parameters("x", "b"))
901901
val bbAction = WhiskAction(namespace, aname(), bb("bb", nonInlinedCode(entityStore), Some("bbMain")))
902-
val actions = Seq((javaAction, JAVA_DEFAULT), (nodeAction, NODEJS), (swiftAction, SWIFT4), (bbAction, BLACKBOX))
902+
val actions = Seq((javaAction, JAVA_DEFAULT), (nodeAction, NODEJS), (swiftAction, SWIFT5), (bbAction, BLACKBOX))
903903

904904
actions.foreach {
905905
case (action, kind) =>
@@ -1076,7 +1076,7 @@ class ActionsApiTests extends ControllerTestCommon with WhiskActionsApi {
10761076
val nodeAction = WhiskAction(namespace, aname(), jsDefault(nonInlinedCode(entityStore)), Parameters("x", "b"))
10771077
val swiftAction = WhiskAction(namespace, aname(), swift(nonInlinedCode(entityStore)), Parameters("x", "b"))
10781078
val bbAction = WhiskAction(namespace, aname(), bb("bb", nonInlinedCode(entityStore), Some("bbMain")))
1079-
val actions = Seq((nodeAction, NODEJS), (swiftAction, SWIFT4), (bbAction, BLACKBOX))
1079+
val actions = Seq((nodeAction, NODEJS), (swiftAction, SWIFT5), (bbAction, BLACKBOX))
10801080

10811081
actions.foreach {
10821082
case (action, kind) =>
@@ -1183,7 +1183,7 @@ class ActionsApiTests extends ControllerTestCommon with WhiskActionsApi {
11831183
val nodeAction = WhiskAction(namespace, aname(), jsDefault(nonInlinedCode(entityStore)), Parameters("x", "b"))
11841184
val swiftAction = WhiskAction(namespace, aname(), swift(nonInlinedCode(entityStore)), Parameters("x", "b"))
11851185
val bbAction = WhiskAction(namespace, aname(), bb("bb", nonInlinedCode(entityStore), Some("bbMain")))
1186-
val actions = Seq((nodeAction, NODEJS), (swiftAction, SWIFT4), (bbAction, BLACKBOX))
1186+
val actions = Seq((nodeAction, NODEJS), (swiftAction, SWIFT5), (bbAction, BLACKBOX))
11871187

11881188
actions.foreach {
11891189
case (action, kind) =>

tests/src/test/scala/org/apache/openwhisk/core/entity/test/ExecHelpers.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ trait ExecHelpers extends Matchers with WskActorSystem with StreamLogging {
3636
ExecManifest.initialize(config) should be a 'success
3737

3838
protected val NODEJS = "nodejs:14"
39-
protected val SWIFT4 = "swift:4.2"
39+
protected val SWIFT5 = "swift:5.3"
4040
protected val BLACKBOX = "blackbox"
4141
protected val JAVA_DEFAULT = "java:8"
4242

@@ -101,7 +101,7 @@ trait ExecHelpers extends Matchers with WskActorSystem with StreamLogging {
101101

102102
protected def swift(code: String, main: Option[String] = None) = {
103103
val attachment = attFmt[String].read(code.trim.toJson)
104-
val manifest = ExecManifest.runtimesManifest.resolveDefaultRuntime(SWIFT4).get
104+
val manifest = ExecManifest.runtimesManifest.resolveDefaultRuntime(SWIFT5).get
105105

106106
CodeExecAsAttachment(manifest, attachment, main.map(_.trim), Exec.isBinaryCode(code))
107107
}

tests/src/test/scala/org/apache/openwhisk/core/entity/test/SchemaTests.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ class SchemaTests extends FlatSpec with BeforeAndAfter with ExecHelpers with Mat
502502
val json = Seq[JsObject](
503503
JsObject("kind" -> "nodejs:14".toJson, "code" -> "js1".toJson, "binary" -> false.toJson),
504504
JsObject("kind" -> "nodejs:14".toJson, "code" -> "js2".toJson, "binary" -> false.toJson, "foo" -> "bar".toJson),
505-
JsObject("kind" -> "swift:4.2".toJson, "code" -> "swift1".toJson, "binary" -> false.toJson),
506-
JsObject("kind" -> "swift:4.2".toJson, "code" -> b64Body.toJson, "binary" -> true.toJson),
505+
JsObject("kind" -> "swift:5.3".toJson, "code" -> "swift1".toJson, "binary" -> false.toJson),
506+
JsObject("kind" -> "swift:5.3".toJson, "code" -> b64Body.toJson, "binary" -> true.toJson),
507507
JsObject("kind" -> "nodejs:14".toJson, "code" -> b64Body.toJson, "binary" -> true.toJson))
508508

509509
val execs = json.map { e =>
@@ -668,7 +668,7 @@ class SchemaTests extends FlatSpec with BeforeAndAfter with ExecHelpers with Mat
668668
assert(execs(0) == JsObject("kind" -> "blackbox".toJson, "image" -> "container".toJson, "binary" -> false.toJson))
669669
assert(execs(1) == JsObject("kind" -> "nodejs:14".toJson, "code" -> "js".toJson, "binary" -> false.toJson))
670670
assert(execs(2) == JsObject("kind" -> "nodejs:14".toJson, "code" -> "js".toJson, "binary" -> false.toJson))
671-
assert(execs(3) == JsObject("kind" -> "swift:4.2".toJson, "code" -> "swift".toJson, "binary" -> false.toJson))
671+
assert(execs(3) == JsObject("kind" -> "swift:5.3".toJson, "code" -> "swift".toJson, "binary" -> false.toJson))
672672
}
673673

674674
behavior of "Parameter"

tools/build/compile_swift.sh

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)