From c904e21e65a9dd310787caa6c1a2b4237ff16d0f Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Thu, 28 Nov 2024 13:36:59 +0530 Subject: [PATCH 01/15] Update dev-tools version --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index bb97cb88ef..f486c5db45 100644 --- a/gradle.properties +++ b/gradle.properties @@ -77,7 +77,7 @@ stdlibSqlVersion=1.15.0-20241116-124800-0bc6a40 persistToolVersion=1.4.0 # Dev Tools -devToolsVersion=1.5.0 +devToolsVersion=2.0.0-20241128-132700-112f36c ballerinaCommandVersion=1.4.3 # API Doc UI From f09875b50a339d353702c229b589245495ce21e1 Mon Sep 17 00:00:00 2001 From: Thisaru Guruge Date: Fri, 29 Nov 2024 10:27:47 +0530 Subject: [PATCH 02/15] Bump the depencencies for Update 11 release --- gradle.properties | 109 +++++++++++++++++++++++----------------------- 1 file changed, 55 insertions(+), 54 deletions(-) diff --git a/gradle.properties b/gradle.properties index bb97cb88ef..dd6bc2a8fe 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ group=org.ballerinalang version=2201.11.0-SNAPSHOT codeName=swan-lake -ballerinaLangVersion=2201.11.0-20241117-133400-a3054b77 +ballerinaLangVersion=2201.11.0-20241121-075100-c4c87cbc ballerinaJreVersion=2.0.1 dependencyJREVersion=jdk-21.0.5+11-jre specVersion=2024R1 @@ -13,88 +13,89 @@ balstdlibBranch=master devIdpUrl=https://dev.api.asgardeo.io/oauth2/token/.well-known/openid-configuration # Stdlib Level 01 -stdlibIoVersion=1.6.2-20241112-233100-995cf5f -stdlibJavaArraysVersion=1.4.1-20241112-232800-f3adad7 -stdlibTimeVersion=2.6.0-20241113-073800-201b904 -stdlibUrlVersion=2.4.1-20241113-073900-335ff51 -stdlibXmldataVersion=2.8.1-20241112-235200-752b9bc -observeVersion=1.4.0-20241113-092000-b83ae74 -stdlibMathVectorVersion=1.0.3-20241112-233200-6a39cd1 -stdlibLdapVersion=1.1.0-20241113-084300-d6cc91d +stdlibIoVersion=1.7.0-20241121-173300-0fbd5d4 +stdlibJavaArraysVersion=1.5.0-20241121-170900-f0de938 +stdlibTimeVersion=2.6.0-20241122-120400-97742a7 +stdlibUrlVersion=2.5.0-20241122-120400-67af694 +stdlibXmldataVersion=2.9.0-20241122-131100-9b834bd +stdlibMathVectorVersion=1.1.0-20241121-174700-b041a0e +observeVersion=1.4.0-20241122-184200-c596093 # Stdlib Level 02 -stdlibAvroVersion=1.0.3-20241113-081200-95b592a -stdlibConstraintVersion=1.6.0-20241113-090900-d276ad5 -stdlibCryptoVersion=2.7.3-20241113-081400-d015a39 -stdlibDataXmldataVersion=1.0.1-20241113-122800-f4e815c -stdlibLogVersion=2.10.1-20241113-120000-4577868 -stdlibOsVersion=1.8.1-20241113-122000-cca973b -stdlibProtobufVersion=1.6.2-20241113-122200-13cac06 -stdlibPersistVersion=1.4.1-20241113-122000-306cc63 -stdlibRandomVersion=1.5.1-20241113-122300-1bc770e -stdlibTaskVersion=2.5.1-20241113-123500-f905281 -stdlibXsltVersion=2.7.1-20241113-123200-11dc649 -observeInternalVersion=1.3.1-20241113-101700-265054d +stdlibAvroVersion=1.1.0-20241122-123200-afb9674 +stdlibConstraintVersion=1.6.0-20241122-133100-98689e2 +stdlibCryptoVersion=2.8.0-20241122-130800-24f1267 +stdlibDataXmldataVersion=1.1.0-20241122-195700-b63fee2 +stdlibLogVersion=2.11.0-20241122-150100-2e1a3ca +stdlibOsVersion=1.9.0-20241122-071800-1fae486 +stdlibPersistVersion=1.5.0-20241122-123800-2ae4d59 +stdlibProtobufVersion=1.7.0-20241125-093700-762f021 +stdlibRandomVersion=1.6.0-20241122-130800-df3a582 +stdlibTaskVersion=2.6.0-20241122-124800-cb84357 +stdlibXsltVersion=2.8.0-20241122-143500-88c9238 +observeInternalVersion=1.4.0-20241122-185200-9e5b1bb # Stdlib Level 03 -stdlibCacheVersion=3.8.1-20241113-125700-b75a1bf -stdlibFileVersion=1.10.1-20241113-151700-e1a2e38 -stdlibFtpVersion=2.11.1-20241113-154100-5317889 -stdlibMimeVersion=2.10.2-20241113-154200-d953747 -stdlibTcpVersion=1.12.0-20241120-110300-de99389 -stdlibUdpVersion=1.11.1-20241113-154800-7443083 -stdlibUuidVersion=1.8.1-20241113-154400-443c67b +stdlibCacheVersion=3.9.0-20241122-182900-c956a97 +stdlibFileVersion=1.11.0-20241122-180900-dff344c +stdlibFtpVersion=2.12.0-20241122-211900-c089ea8 +stdlibLdapVersion=1.2.0-20241122-183100-2b65a6a +stdlibMimeVersion=2.11.0-20241125-094600-bbddf94 +stdlibTcpVersion=1.12.0-20241122-183100-3fafa49 +stdlibUdpVersion=1.12.0-20241122-185800-71d3277 +stdlibUuidVersion=1.9.0-20241125-110300-5eb185d # Stdlib Level 04 -stdlibAuthVersion=2.12.1-20241113-162300-ded40eb -stdlibDataJsondataVersion=0.3.0-20241119-191600-348e6c9 -stdlibDataYamlVersion=0.1.1-20241113-122600-5fd87f8 -stdlibEdiVersion=1.3.1-20241113-171300-d9e62c8 -stdlibEmailVersion=2.10.1-20241113-171700-4b2c1fd -stdlibJwtVersion=2.13.1-20241113-162400-b59ccfa -stdlibMqttVersion=1.2.1-20241113-190800-260cda7 -stdlibOAuth2Version=2.12.1-20241113-162400-4c6ddfe -stdlibTomlVersion=0.6.1-20241113-170100-f224cf6 -stdlibYamlVersion=0.6.1-20241113-171500-62c6f03 +stdlibAuthVersion=2.13.0-20241125-094500-d380c71 +stdlibDataCsvVersion=0.7.0-20241127-103000-4aa1acb +stdlibDataJsondataVersion=1.0.0-20241125-114000-0c2f457 +stdlibDataYamlVersion=0.7.0-20241127-103000-78a1dfa +stdlibEdiVersion=1.4.0-20241125-112000-29a3e84 +stdlibEmailVersion=2.11.0-20241125-201500-229ff6e +stdlibJwtVersion=2.14.0-20241125-085500-10a9526 +stdlibMqttVersion=1.3.0-20241125-130000-19470f5 +stdlibOAuth2Version=2.13.0-20241126-071700-7eb9e0b +stdlibTomlVersion=0.7.0-20241125-114000-c99336b +stdlibYamlVersion=0.7.0-20241125-121700-09f7b69 # Stdlib Level 05 -stdlibHttpVersion=2.13.0-20241114-182900-7e9f66a +stdlibHttpVersion=2.13.0-20241126-181000-6585cc5 # Stdlib Level 06 -stdlibGrpcVersion=1.13.0-20241114-195700-5188f60 -stdlibSoapVersion=2.1.0-20241116-112000-3dd2c94 -stdlibTransactionVersion=1.10.1-20241116-112500-189a4e5 -stdlibWebsocketVersion=2.13.0-20241116-202000-ddd958d -stdlibWebsubVersion=2.13.0-20241114-233100-73205d6 -stdlibWebsubhubVersion=1.13.0-20241116-124900-2bb76a4 +stdlibGrpcVersion=1.13.0-20241126-215800-1a63b04 +stdlibSoapVersion=2.2.0-20241127-102000-fc4e7db +stdlibTransactionVersion=1.11.0-20241127-113000-c3f53c6 +stdlibWebsocketVersion=2.13.0-20241127-103500-476d1aa +stdlibWebsubVersion=2.13.0-20241127-090200-25c84df +stdlibWebsubhubVersion=1.13.0-20241127-090300-97f79fe # Stdlib Level 07 -stdlibGraphqlVersion=1.15.0-20241117-164000-4d95b39 -stdlibSqlVersion=1.15.0-20241116-124800-0bc6a40 +stdlibGraphqlVersion=1.15.0-20241127-145000-9be4f77 +stdlibSqlVersion=1.15.0-20241127-162900-c57df5b # Persist Tool -persistToolVersion=1.4.0 +persistToolVersion=1.5.0-20241128-120100-1da2be3 # Dev Tools -devToolsVersion=1.5.0 +devToolsVersion=2.1.0-20241128-232800-96939e6 ballerinaCommandVersion=1.4.3 # API Doc UI docUiApi=https://api.dev-central.ballerina.io/2.0/docs/doc-ui # GraphQL Tool -graphqlToolVersion=0.11.1-20241117-184300-39bc271 +graphqlToolVersion=0.12.0-20241128-093600-5948ff6 # Protoc Tool -protocToolVersion=0.3.0 +protocToolVersion=0.4.0-20241128-125500-66acf72 # OpenAPI Module -openapiToolVersion=2.1.0 +openapiToolVersion=2.2.0-20241127-220400-5c03618 # AsyncAPI Module -asyncapiToolVersion=0.9.0 +asyncapiToolVersion=0.10.0-20241128-143300-d509f06 -c2cVersion=3.1.0 +c2cVersion=3.2.0-20241128-063100-1c75035 installerVersion=f7b952b2-f64b-45f0-ab86-df7d892ffc21 From 70ec95b6edcfb99b4bb36cdd7acdc178b6205632 Mon Sep 17 00:00:00 2001 From: lnash94 Date: Fri, 29 Nov 2024 12:08:29 +0530 Subject: [PATCH 03/15] Update openapi tests --- .../OpenAPIDistributionArtifactCheck.java | 6 ++--- .../resources/openapi/expected/client.bal | 2 +- .../test/resources/openapi/expected/types.bal | 3 +++ .../test/resources/openapi/expected/utils.bal | 25 ++++--------------- 4 files changed, 12 insertions(+), 24 deletions(-) diff --git a/ballerina-test/src/test/java/org/ballerinalang/distribution/test/OpenAPIDistributionArtifactCheck.java b/ballerina-test/src/test/java/org/ballerinalang/distribution/test/OpenAPIDistributionArtifactCheck.java index 8fa98fa6a8..621379afa1 100644 --- a/ballerina-test/src/test/java/org/ballerinalang/distribution/test/OpenAPIDistributionArtifactCheck.java +++ b/ballerina-test/src/test/java/org/ballerinalang/distribution/test/OpenAPIDistributionArtifactCheck.java @@ -52,7 +52,7 @@ public void openapiAnnotationExistsTest() { .resolve("cache") .resolve("ballerina") .resolve("openapi") - .resolve("2.1.0") + .resolve("2.2.0") .resolve("bir"); Path jarPath = TEST_DISTRIBUTION_PATH @@ -61,7 +61,7 @@ public void openapiAnnotationExistsTest() { .resolve("cache") .resolve("ballerina") .resolve("openapi") - .resolve("2.1.0") + .resolve("2.2.0") .resolve("java21"); Path breLibPath = TEST_DISTRIBUTION_PATH @@ -83,7 +83,7 @@ public void openapiAnnotationExistsTest() { .resolve("lib"); Assert.assertTrue(Files.exists(birPath)); - Assert.assertTrue(Files.exists(jarPath.resolve("ballerina-openapi-2.1.0.jar"))); + Assert.assertTrue(Files.exists(jarPath.resolve("ballerina-openapi-2.2.0.jar"))); Assert.assertNotNull(TestUtils.findFileOrDirectory(breLibPath, "openapi-cli-")); Assert.assertNotNull(TestUtils.findFileOrDirectory(breLibPath, "openapi-validator-")); Assert.assertNotNull(TestUtils.findFileOrDirectory(breLibPath, "ballerina-to-openapi-")); diff --git a/ballerina-test/src/test/resources/openapi/expected/client.bal b/ballerina-test/src/test/resources/openapi/expected/client.bal index adbdc29ba1..aaa61dbee1 100644 --- a/ballerina-test/src/test/resources/openapi/expected/client.bal +++ b/ballerina-test/src/test/resources/openapi/expected/client.bal @@ -47,7 +47,7 @@ public isolated client class Client { remote isolated function getPaymentMethodsPaymentMethod(string payment_method, GetPaymentMethodsPaymentMethodHeaders headers, *GetPaymentMethodsPaymentMethodQueries queries) returns json|error { string resourcePath = string `/v1/payment_methods/${getEncodedUri(payment_method)}`; resourcePath = resourcePath + check getPathForQueryParam(queries); - map httpHeaders = getMapForHeaders(headers); + map httpHeaders = http:getHeaderMap(headers); return self.clientEp->get(resourcePath, httpHeaders); } diff --git a/ballerina-test/src/test/resources/openapi/expected/types.bal b/ballerina-test/src/test/resources/openapi/expected/types.bal index 37fce7e6de..14bc102a45 100644 --- a/ballerina-test/src/test/resources/openapi/expected/types.bal +++ b/ballerina-test/src/test/resources/openapi/expected/types.bal @@ -86,6 +86,9 @@ public type ConnectionConfig record {| http:ProxyConfig proxy?; # Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default boolean validation = true; + # Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional, + # and absent fields are handled as `nilable` types. Enabled by default. + boolean laxDataBinding = true; |}; public type customer_customer_body record { diff --git a/ballerina-test/src/test/resources/openapi/expected/utils.bal b/ballerina-test/src/test/resources/openapi/expected/utils.bal index fec8f54063..09e1da9f70 100644 --- a/ballerina-test/src/test/resources/openapi/expected/utils.bal +++ b/ballerina-test/src/test/resources/openapi/expected/utils.bal @@ -1,6 +1,7 @@ // AUTO-GENERATED FILE. DO NOT MODIFY. // This file is auto-generated by the Ballerina OpenAPI tool. +import ballerina/http; import ballerina/url; type SimpleBasicType string|boolean|int|float|decimal; @@ -198,12 +199,13 @@ isolated function getEncodedUri(anydata value) returns string { # + encodingMap - Details on serialization mechanism # + return - Returns generated Path or error at failure of client initialization isolated function getPathForQueryParam(map queryParam, map encodingMap = {}) returns string|error { + map queriesMap = http:getQueryMap(queryParam); string[] param = []; - if queryParam.length() > 0 { + if queriesMap.length() > 0 { param.push("?"); - foreach var [key, value] in queryParam.entries() { + foreach var [key, value] in queriesMap.entries() { if value is () { - _ = queryParam.remove(key); + _ = queriesMap.remove(key); continue; } Encoding encodingData = encodingMap.hasKey(key) ? encodingMap.get(key) : defaultEncoding; @@ -227,20 +229,3 @@ isolated function getPathForQueryParam(map queryParam, map en string restOfPath = string:'join("", ...param); return restOfPath; } - -# Generate header map for given header values. -# -# + headerParam - Headers map -# + return - Returns generated map or error at failure of client initialization -isolated function getMapForHeaders(map headerParam) returns map { - map headerMap = {}; - foreach var [key, value] in headerParam.entries() { - if value is SimpleBasicType[] { - headerMap[key] = from SimpleBasicType data in value - select data.toString(); - } else { - headerMap[key] = value.toString(); - } - } - return headerMap; -} From 6d0417518d51edb8334c876f558515cdaccb4d67 Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Fri, 29 Nov 2024 14:52:21 +0530 Subject: [PATCH 04/15] Update u11 dependencies with new xmldata version --- gradle.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index dd6bc2a8fe..c227377599 100644 --- a/gradle.properties +++ b/gradle.properties @@ -25,7 +25,7 @@ observeVersion=1.4.0-20241122-184200-c596093 stdlibAvroVersion=1.1.0-20241122-123200-afb9674 stdlibConstraintVersion=1.6.0-20241122-133100-98689e2 stdlibCryptoVersion=2.8.0-20241122-130800-24f1267 -stdlibDataXmldataVersion=1.1.0-20241122-195700-b63fee2 +stdlibDataXmldataVersion=1.2.0-20241129-110700-14aff6e stdlibLogVersion=2.11.0-20241122-150100-2e1a3ca stdlibOsVersion=1.9.0-20241122-071800-1fae486 stdlibPersistVersion=1.5.0-20241122-123800-2ae4d59 @@ -91,10 +91,10 @@ graphqlToolVersion=0.12.0-20241128-093600-5948ff6 protocToolVersion=0.4.0-20241128-125500-66acf72 # OpenAPI Module -openapiToolVersion=2.2.0-20241127-220400-5c03618 +openapiToolVersion=2.2.0-20241129-141200-1e5b575 # AsyncAPI Module -asyncapiToolVersion=0.10.0-20241128-143300-d509f06 +asyncapiToolVersion=0.10.0-20241129-132600-451c304 c2cVersion=3.2.0-20241128-063100-1c75035 From 24a69f677fa3701cdf523dc6437c4b33cf7b6c9a Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Mon, 2 Dec 2024 15:45:06 +0530 Subject: [PATCH 05/15] Update ballerina jre version --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index c227377599..6e071a164c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ version=2201.11.0-SNAPSHOT codeName=swan-lake ballerinaLangVersion=2201.11.0-20241121-075100-c4c87cbc -ballerinaJreVersion=2.0.1 +ballerinaJreVersion=3.0.0 dependencyJREVersion=jdk-21.0.5+11-jre specVersion=2024R1 slf4jVersion=1.7.30 From f4a69eff9172737bf290787a595d6c323c819c2a Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Tue, 10 Dec 2024 10:03:26 +0530 Subject: [PATCH 06/15] Update update-tool version --- ballerina-test-automation/gradle.properties | 4 ++-- gradle.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ballerina-test-automation/gradle.properties b/ballerina-test-automation/gradle.properties index c3e444e3d0..11ff89729b 100644 --- a/ballerina-test-automation/gradle.properties +++ b/ballerina-test-automation/gradle.properties @@ -1,7 +1,7 @@ swan-lake-latest-version=swan-lake-2201.11.0 swan-lake-latest-spec-version=2024R1 swan-lake-latest-version-display-text=2201.11.0 -swan-lake-latest-tool-version=1.4.3 -latest-tool-version=1.4.3 +swan-lake-latest-tool-version=1.4.5 +latest-tool-version=1.4.5 1-x-channel-latest-version=1.2.13 1-x-channel-latest-spec-version=2020R1 diff --git a/gradle.properties b/gradle.properties index 6e071a164c..4d235261b2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -79,7 +79,7 @@ persistToolVersion=1.5.0-20241128-120100-1da2be3 # Dev Tools devToolsVersion=2.1.0-20241128-232800-96939e6 -ballerinaCommandVersion=1.4.3 +ballerinaCommandVersion=1.4.5 # API Doc UI docUiApi=https://api.dev-central.ballerina.io/2.0/docs/doc-ui From 058c0109b5ddc7cacda107a41996a9d070099042 Mon Sep 17 00:00:00 2001 From: chiranSachintha Date: Tue, 10 Dec 2024 20:30:03 +0530 Subject: [PATCH 07/15] Update dependencies --- gradle.properties | 108 +++++++++++++++++++++++----------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/gradle.properties b/gradle.properties index 4d235261b2..e2f69b29da 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ group=org.ballerinalang version=2201.11.0-SNAPSHOT codeName=swan-lake -ballerinaLangVersion=2201.11.0-20241121-075100-c4c87cbc +ballerinaLangVersion=2201.11.0-20241209-162400-0c015833 ballerinaJreVersion=3.0.0 dependencyJREVersion=jdk-21.0.5+11-jre specVersion=2024R1 @@ -13,89 +13,89 @@ balstdlibBranch=master devIdpUrl=https://dev.api.asgardeo.io/oauth2/token/.well-known/openid-configuration # Stdlib Level 01 -stdlibIoVersion=1.7.0-20241121-173300-0fbd5d4 -stdlibJavaArraysVersion=1.5.0-20241121-170900-f0de938 -stdlibTimeVersion=2.6.0-20241122-120400-97742a7 -stdlibUrlVersion=2.5.0-20241122-120400-67af694 -stdlibXmldataVersion=2.9.0-20241122-131100-9b834bd -stdlibMathVectorVersion=1.1.0-20241121-174700-b041a0e -observeVersion=1.4.0-20241122-184200-c596093 +stdlibIoVersion=1.7.0-20241209-171400-26de7d8 +stdlibJavaArraysVersion=1.5.0-20241209-171300-bab0d8d +stdlibTimeVersion=2.6.0-20241209-171400-4b43c7d +stdlibUrlVersion=2.5.0-20241209-171400-b09a145 +stdlibXmldataVersion=2.9.0-20241209-171500-afe3e24 +stdlibMathVectorVersion=1.1.0-20241209-171300-8aceac7 +observeVersion=1.4.0-20241209-171500-9472db2 # Stdlib Level 02 -stdlibAvroVersion=1.1.0-20241122-123200-afb9674 -stdlibConstraintVersion=1.6.0-20241122-133100-98689e2 -stdlibCryptoVersion=2.8.0-20241122-130800-24f1267 -stdlibDataXmldataVersion=1.2.0-20241129-110700-14aff6e -stdlibLogVersion=2.11.0-20241122-150100-2e1a3ca -stdlibOsVersion=1.9.0-20241122-071800-1fae486 -stdlibPersistVersion=1.5.0-20241122-123800-2ae4d59 -stdlibProtobufVersion=1.7.0-20241125-093700-762f021 -stdlibRandomVersion=1.6.0-20241122-130800-df3a582 -stdlibTaskVersion=2.6.0-20241122-124800-cb84357 -stdlibXsltVersion=2.8.0-20241122-143500-88c9238 -observeInternalVersion=1.4.0-20241122-185200-9e5b1bb +stdlibAvroVersion=1.1.0-20241209-172200-e823cd4 +stdlibConstraintVersion=1.6.0-20241209-172100-2facdca +stdlibCryptoVersion=2.8.0-20241209-172100-28a92b5 +stdlibDataXmldataVersion=1.2.0-20241209-175000-04587de +stdlibLogVersion=2.11.0-20241209-174200-4ab1866 +stdlibOsVersion=1.9.0-20241209-172200-af4e3f3 +stdlibPersistVersion=1.5.0-20241209-172300-77418f4 +stdlibProtobufVersion=1.7.0-20241209-172300-61dc8a9 +stdlibRandomVersion=1.6.0-20241209-172900-bf49051 +stdlibTaskVersion=2.6.0-20241209-172700-f6bf4fc +stdlibXsltVersion=2.8.0-20241209-172300-a6802fb +observeInternalVersion=1.4.0-20241209-172400-71fe9c4 # Stdlib Level 03 -stdlibCacheVersion=3.9.0-20241122-182900-c956a97 -stdlibFileVersion=1.11.0-20241122-180900-dff344c -stdlibFtpVersion=2.12.0-20241122-211900-c089ea8 -stdlibLdapVersion=1.2.0-20241122-183100-2b65a6a -stdlibMimeVersion=2.11.0-20241125-094600-bbddf94 -stdlibTcpVersion=1.12.0-20241122-183100-3fafa49 -stdlibUdpVersion=1.12.0-20241122-185800-71d3277 -stdlibUuidVersion=1.9.0-20241125-110300-5eb185d +stdlibCacheVersion=3.9.0-20241209-173700-f1bd537 +stdlibFileVersion=1.11.0-20241209-180600-1aa2676 +stdlibFtpVersion=2.12.0-20241209-180700-5f0090a +stdlibLdapVersion=1.2.0-20241209-175000-d01d86a +stdlibMimeVersion=2.11.0-20241209-180600-aa73132 +stdlibTcpVersion=1.12.0-20241209-180800-78c5d39 +stdlibUdpVersion=1.12.0-20241209-180700-c8001f4 +stdlibUuidVersion=1.9.0-20241209-175500-c039f34 # Stdlib Level 04 -stdlibAuthVersion=2.13.0-20241125-094500-d380c71 -stdlibDataCsvVersion=0.7.0-20241127-103000-4aa1acb -stdlibDataJsondataVersion=1.0.0-20241125-114000-0c2f457 -stdlibDataYamlVersion=0.7.0-20241127-103000-78a1dfa -stdlibEdiVersion=1.4.0-20241125-112000-29a3e84 -stdlibEmailVersion=2.11.0-20241125-201500-229ff6e -stdlibJwtVersion=2.14.0-20241125-085500-10a9526 -stdlibMqttVersion=1.3.0-20241125-130000-19470f5 -stdlibOAuth2Version=2.13.0-20241126-071700-7eb9e0b -stdlibTomlVersion=0.7.0-20241125-114000-c99336b -stdlibYamlVersion=0.7.0-20241125-121700-09f7b69 +stdlibAuthVersion=2.13.0-20241209-180400-7e56348 +stdlibDataCsvVersion=0.7.0-20241209-190900-7b006d0 +stdlibDataJsondataVersion=1.0.0-20241209-185000-88cae6d +stdlibDataYamlVersion=0.7.0-20241209-175000-273a3e7 +stdlibEdiVersion=1.4.0-20241209-184900-bc86cb0 +stdlibEmailVersion=2.11.0-20241209-183500-a968912 +stdlibJwtVersion=2.14.0-20241209-180600-f1a51a1 +stdlibMqttVersion=1.3.0-20241209-182500-17948a1 +stdlibOAuth2Version=2.13.0-20241209-180800-22f19ac +stdlibTomlVersion=0.7.0-20241209-191100-95faee9 +stdlibYamlVersion=0.7.0-20241209-185100-a9e8260 # Stdlib Level 05 -stdlibHttpVersion=2.13.0-20241126-181000-6585cc5 +stdlibHttpVersion=2.13.0-20241209-200000-1b8535c # Stdlib Level 06 -stdlibGrpcVersion=1.13.0-20241126-215800-1a63b04 -stdlibSoapVersion=2.2.0-20241127-102000-fc4e7db -stdlibTransactionVersion=1.11.0-20241127-113000-c3f53c6 -stdlibWebsocketVersion=2.13.0-20241127-103500-476d1aa -stdlibWebsubVersion=2.13.0-20241127-090200-25c84df -stdlibWebsubhubVersion=1.13.0-20241127-090300-97f79fe +stdlibGrpcVersion=1.13.0-20241209-205200-960b8d4 +stdlibSoapVersion=2.2.0-20241209-204500-e9078c7 +stdlibTransactionVersion=1.11.0-20241206-113700-7d14d20 +stdlibWebsocketVersion=2.13.0-20241209-205700-4bd3b42 +stdlibWebsubVersion=2.13.0-20241209-204800-ddcac4b +stdlibWebsubhubVersion=1.13.0-20241209-204900-3c5abd8 # Stdlib Level 07 -stdlibGraphqlVersion=1.15.0-20241127-145000-9be4f77 -stdlibSqlVersion=1.15.0-20241127-162900-c57df5b +stdlibGraphqlVersion=1.15.0-20241210-134800-e896962 +stdlibSqlVersion=1.15.0-20241210-100400-b17bfc6 # Persist Tool -persistToolVersion=1.5.0-20241128-120100-1da2be3 +persistToolVersion=1.5.0-20241210-163000-32ebda7 # Dev Tools -devToolsVersion=2.1.0-20241128-232800-96939e6 +devToolsVersion=2.0.0-20241210-173000-d9820d6 ballerinaCommandVersion=1.4.5 # API Doc UI docUiApi=https://api.dev-central.ballerina.io/2.0/docs/doc-ui # GraphQL Tool -graphqlToolVersion=0.12.0-20241128-093600-5948ff6 +graphqlToolVersion=0.12.0-20241210-145300-941296c # Protoc Tool protocToolVersion=0.4.0-20241128-125500-66acf72 # OpenAPI Module -openapiToolVersion=2.2.0-20241129-141200-1e5b575 +openapiToolVersion=2.2.0-20241210-150200-7a1861e # AsyncAPI Module -asyncapiToolVersion=0.10.0-20241129-132600-451c304 +asyncapiToolVersion=0.10.0-20241210-145200-46cccc2 -c2cVersion=3.2.0-20241128-063100-1c75035 +c2cVersion=3.2.0-20241210-145600-aa8be0f installerVersion=f7b952b2-f64b-45f0-ab86-df7d892ffc21 From 2f08fc91204e9da3d5de9b70e3a269ebbe97bba6 Mon Sep 17 00:00:00 2001 From: Tharindu Weerasinghe <52607043+tharindu-nw@users.noreply.github.com> Date: Tue, 10 Dec 2024 22:49:17 +0530 Subject: [PATCH 08/15] Upgrade docker actions in the release pipeline --- .github/workflows/publish-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 66977cb498..f39ebbe9e6 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -87,17 +87,17 @@ jobs: - name: Copy zip artifact run: cp ballerina/build/distributions/ballerina-22*.zip module-ballerina-docker/base/docker/ - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_HUB_USER }} password: ${{ secrets.DOCKER_HUB_TOKEN }} - name: Build the docker image id: docker_build - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: module-ballerina-docker/base/docker/ load: true From 9e0dc8e5046330358f6a013e101c5e17d0a9d7a9 Mon Sep 17 00:00:00 2001 From: Tharindu Weerasinghe <52607043+tharindu-nw@users.noreply.github.com> Date: Tue, 10 Dec 2024 23:01:59 +0530 Subject: [PATCH 09/15] Set provenance to false in docker build push action --- .github/workflows/publish-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index f39ebbe9e6..4362177bcc 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -103,6 +103,7 @@ jobs: load: true push: false platforms: linux/amd64,linux/arm64 + provenance: false tags: ballerina/ballerina:release-test build-args: | BALLERINA_DIST=ballerina-${{ steps.version-set.outputs.sversion }}.zip From 45a8989f21ebd6f8f24649f3bbc6da41911f3576 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Tue, 10 Dec 2024 23:46:38 +0530 Subject: [PATCH 10/15] Fix windows installer build --- .github/workflows/daily-build.yml | 15 +++++++-------- .github/workflows/publish-release.yml | 17 ++++++++--------- .github/workflows/publish_release_bi.yml | 11 +++++------ 3 files changed, 20 insertions(+), 23 deletions(-) diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml index 1f02c0c322..9871c39e9e 100644 --- a/.github/workflows/daily-build.yml +++ b/.github/workflows/daily-build.yml @@ -462,20 +462,19 @@ jobs: - name: Set up Wix toolkit run: echo "${WIX}bin" >> $GITHUB_PATH shell: bash - - name: Download Windows Intaller Zip + - name: Download Windows Installer Zip uses: actions/download-artifact@v4 with: name: Windows Installer ZIP - name: Create windows-msi id: run_installers_msi run: | - move installers\windows .\ - ren windows w - cd w - .\build-ballerina-windows-x64.bat --version ${{ needs.ubuntu-build.outputs.project-version }} --path .\..\ + move installers\windows .\..\..\ + cd ..\..\windows + .\build-ballerina-windows-x64.bat --version ${{ needs.ubuntu-build.outputs.project-version }} --path .\..\ballerina-distribution\ballerina-distribution - name: Generate Hashes run: | - openssl dgst -sha256 -out ballerina-${{ needs.ubuntu-build.outputs.project-version }}-windows-x64.msi.sha256 w\target\msi\ballerina-*-windows-x64.msi + openssl dgst -sha256 -out ballerina-${{ needs.ubuntu-build.outputs.project-version }}-windows-x64.msi.sha256 D:\a\windows\target\msi\ballerina-*-windows-x64.msi - name: Archive Windows msi Hashes uses: actions/upload-artifact@v4 with: @@ -485,9 +484,9 @@ jobs: uses: actions/upload-artifact@v4 with: name: Windows Installer msi - path: w\target\msi\ballerina-*-windows-x64.msi + path: D:\a\windows\target\msi\ballerina-*-windows-x64.msi - name: Install Ballerina msi - run: msiexec /i w\target\msi\ballerina-${{ needs.ubuntu-build.outputs.project-version }}-windows-x64.msi /quiet /qr + run: msiexec /i D:\a\windows\target\msi\ballerina-${{ needs.ubuntu-build.outputs.project-version }}-windows-x64.msi /quiet /qr shell: cmd - name: Update Installer Test Configs run: | diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 4362177bcc..253d01a4fd 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -720,19 +720,18 @@ jobs: - name: Create windows-msi Installer id: run_installers_msi run: | - move installers\windows .\ - ren windows w - cd w - .\build-ballerina-windows-x64.bat --version ${{ needs.publish-release.outputs.project-version }} --path .\..\ + move installers\windows .\..\..\ + cd ..\..\windows + .\build-ballerina-windows-x64.bat --version ${{ needs.publish-release.outputs.project-version }} --path .\..\ballerina-distribution\ballerina-distribution - name: Sign the Windows installer run: | - cosign sign-blob w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi --output-certificate ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.pem --output-signature ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sig --yes + cosign sign-blob D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi --output-certificate ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.pem --output-signature ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sig --yes - name: Verify the Windows installer run: | - cosign verify-blob w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi --certificate ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.pem --signature ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sig --certificate-identity=https://github.com/ballerina-platform/ballerina-distribution/.github/workflows/publish-release.yml@${{ github.ref }} --certificate-oidc-issuer=https://token.actions.githubusercontent.com + cosign verify-blob D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi --certificate ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.pem --signature ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sig --certificate-identity=https://github.com/ballerina-platform/ballerina-distribution/.github/workflows/publish-release.yml@${{ github.ref }} --certificate-oidc-issuer=https://token.actions.githubusercontent.com - name: Generate Hashes run: | - openssl dgst -sha256 -out ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sha256 w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi + openssl dgst -sha256 -out ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sha256 D:\a\windows\target\msi\ballerina-*-windows-x64.msi - name: Upload Windows msi Hashes uses: actions/upload-release-asset@v1 env: @@ -749,7 +748,7 @@ jobs: with: upload_url: ${{ needs.publish-release.outputs.upload-asset-url }} asset_name: ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi - asset_path: w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi + asset_path: D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi asset_content_type: application/octet-stream - name: Upload Windows installer's Certificate uses: actions/upload-release-asset@v1 @@ -770,7 +769,7 @@ jobs: asset_path: ./ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sig asset_content_type: application/octet-stream - name: Install Ballerina msi - run: msiexec /i w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi /quiet /qr + run: msiexec /i D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi /quiet /qr shell: cmd - name: Update Installer Test Configs run: | diff --git a/.github/workflows/publish_release_bi.yml b/.github/workflows/publish_release_bi.yml index 8222eb788e..f5bac6313f 100644 --- a/.github/workflows/publish_release_bi.yml +++ b/.github/workflows/publish_release_bi.yml @@ -461,13 +461,12 @@ jobs: - name: Create windows-msi Installer id: run_installers_msi run: | - move installers\windows .\ - ren windows w - cd w - .\build-ballerina-windows-x64.bat --version ${{ needs.publish-release.outputs.project-version }} --path .\..\ + move installers\windows .\..\..\ + cd ..\..\windows + .\build-ballerina-windows-x64.bat --version ${{ needs.publish-release.outputs.project-version }} --path .\..\ballerina-distribution\ballerina-distribution - name: Generate Hashes run: | - openssl dgst -sha256 -out ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sha256 w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi + openssl dgst -sha256 -out ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi.sha256 D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi - name: Upload Windows msi Hashes uses: actions/upload-release-asset@v1 env: @@ -484,7 +483,7 @@ jobs: with: upload_url: ${{ needs.publish-release.outputs.upload-asset-url }} asset_name: ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi - asset_path: w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi + asset_path: D:\a\windows\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi asset_content_type: application/octet-stream # - name: Install Ballerina msi # run: msiexec /i w\target\msi\ballerina-${{ needs.publish-release.outputs.project-version }}-windows-x64.msi /quiet /qr From e87070145c8c8f0d2a553909021fdf29fb4ff371 Mon Sep 17 00:00:00 2001 From: anuruddhal Date: Wed, 11 Dec 2024 02:43:24 +0530 Subject: [PATCH 11/15] Remove load parameter from Docker action --- .github/workflows/publish-release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 253d01a4fd..b6c7ce5ffd 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -100,7 +100,6 @@ jobs: uses: docker/build-push-action@v6 with: context: module-ballerina-docker/base/docker/ - load: true push: false platforms: linux/amd64,linux/arm64 provenance: false From d06bc5cdf3c5cc56e5005f6948f4f2749382d831 Mon Sep 17 00:00:00 2001 From: anuruddhal Date: Wed, 11 Dec 2024 09:19:34 +0530 Subject: [PATCH 12/15] Remove multi-arch support for release-test image --- .github/workflows/publish-release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index b6c7ce5ffd..f97e19ef56 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -100,9 +100,8 @@ jobs: uses: docker/build-push-action@v6 with: context: module-ballerina-docker/base/docker/ + load: true push: false - platforms: linux/amd64,linux/arm64 - provenance: false tags: ballerina/ballerina:release-test build-args: | BALLERINA_DIST=ballerina-${{ steps.version-set.outputs.sversion }}.zip From 991e4e03cd1ae523c8fb86cb8e381cff2840f568 Mon Sep 17 00:00:00 2001 From: ballerina-bot Date: Wed, 11 Dec 2024 04:02:05 +0000 Subject: [PATCH 13/15] Update UUID for installer --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index e2f69b29da..18a86b37fc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -98,4 +98,4 @@ asyncapiToolVersion=0.10.0-20241210-145200-46cccc2 c2cVersion=3.2.0-20241210-145600-aa8be0f -installerVersion=f7b952b2-f64b-45f0-ab86-df7d892ffc21 +installerVersion=f1101815-37a5-4f30-aee4-d7e07ba2503e From bd880f8ca5ad9e0afae2160351823ced3cf70ad3 Mon Sep 17 00:00:00 2001 From: ballerina-bot Date: Wed, 11 Dec 2024 05:14:36 +0000 Subject: [PATCH 14/15] [Gradle Release Plugin] - pre tag commit: 'v2201.11.0-pre-rc1'. --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 18a86b37fc..e9e614946d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.caching=true group=org.ballerinalang # During the release workflow, the following will get bumped automatically -version=2201.11.0-SNAPSHOT +version=2201.11.0 codeName=swan-lake ballerinaLangVersion=2201.11.0-20241209-162400-0c015833 From f5b130c2fd6e2924f1b6ea755a955f1d5c5a9bd8 Mon Sep 17 00:00:00 2001 From: ballerina-bot Date: Wed, 11 Dec 2024 05:14:37 +0000 Subject: [PATCH 15/15] [Gradle Release Plugin] - new version commit: 'v2201.11.0-pre-rc1'. --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index e9e614946d..90524f8bd1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.caching=true group=org.ballerinalang # During the release workflow, the following will get bumped automatically -version=2201.11.0 +version=2201.11.1-SNAPSHOT codeName=swan-lake ballerinaLangVersion=2201.11.0-20241209-162400-0c015833