Skip to content

[#4209] refactor(DER): use StandardCharsets.UTF_8 instead of hardcoded "UTF-8" #6285

[#4209] refactor(DER): use StandardCharsets.UTF_8 instead of hardcoded "UTF-8"

[#4209] refactor(DER): use StandardCharsets.UTF_8 instead of hardcoded "UTF-8" #6285

Re-run triggered August 7, 2024 02:51
Status Failure
Total duration 6m 18s
Artifacts

backend-integration-test.yml

on: pull_request
changes
7s
changes
Matrix: test-amd64-arch
Fit to window
Zoom out
Zoom in

Annotations

25 errors and 3 warnings
test-amd64-arch (linux/amd64, 11, deploy, mysql): task ':server-common:spotlessJavaCheck'#L1
Execution failed for task ':server-common:spotlessJavaCheck': The following files had format violations: src/main/java/org/apache/gravitino/server/authentication/KerberosServerUtils.java @@ -21,8 +21,8 @@ import·java.net.InetAddress; import·java.net.UnknownHostException; import·java.nio.ByteBuffer; +import·java.nio.charset.IllegalCharsetNameException; import·java.nio.charset.StandardCharsets; -import·java.nio.charset.IllegalCharsetNameException; import·java.util.ArrayList; import·java.util.HashSet; import·java.util.Iterator; @@ -351,7 +351,8 @@ ····String·getAsString()·{ ······try·{ -········return·new·String(bb.array(),·bb.arrayOffset()·+·bb.position(),·bb.remaining(),·StandardCharsets.UTF_8); +········return·new·String( +············bb.array(),·bb.arrayOffset()·+·bb.position(),·bb.remaining(),·StandardCharsets.UTF_8); ······}·catch·(UnsupportedEncodingException·e)·{ ········throw·new·IllegalCharsetNameException("UTF-8");·//·won't·happen. ······} Run './gradlew :server-common:spotlessApply' to fix these violations. at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:111) at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:53) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29) at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:248) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68) at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:233) at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:216) at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:199) at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:166) at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105) at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44) at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59) at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunn
test-amd64-arch (linux/amd64, 11, deploy, mysql)
Process completed with exit code 1.
test-amd64-arch (linux/amd64, 11, deploy, h2)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 11, deploy, h2): task ':server-common:spotlessJavaCheck'#L1
Execution failed for task ':server-common:spotlessJavaCheck': The following files had format violations: src/main/java/org/apache/gravitino/server/authentication/KerberosServerUtils.java @@ -21,8 +21,8 @@ import·java.net.InetAddress; import·java.net.UnknownHostException; import·java.nio.ByteBuffer; +import·java.nio.charset.IllegalCharsetNameException; import·java.nio.charset.StandardCharsets; -import·java.nio.charset.IllegalCharsetNameException; import·java.util.ArrayList; import·java.util.HashSet; import·java.util.Iterator; @@ -351,7 +351,8 @@ ····String·getAsString()·{ ······try·{ -········return·new·String(bb.array(),·bb.arrayOffset()·+·bb.position(),·bb.remaining(),·StandardCharsets.UTF_8); +········return·new·String( +············bb.array(),·bb.arrayOffset()·+·bb.position(),·bb.remaining(),·StandardCharsets.UTF_8); ······}·catch·(UnsupportedEncodingException·e)·{ ········throw·new·IllegalCharsetNameException("UTF-8");·//·won't·happen. ······} Run './gradlew :server-common:spotlessApply' to fix these violations. at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:111) at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:53) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29) at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:248) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29) at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68) at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:233) at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:216) at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:199) at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:166) at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105) at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44) at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59) at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunn
test-amd64-arch (linux/amd64, 11, deploy, h2)
The operation was canceled.
test-amd64-arch (linux/amd64, 17, embedded, h2)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 17, embedded, h2)
The operation was canceled.
test-amd64-arch (linux/amd64, 17, embedded, mysql)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 17, embedded, mysql)
The operation was canceled.
test-amd64-arch (linux/amd64, 17, deploy, mysql)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 17, deploy, mysql)
The operation was canceled.
test-amd64-arch (linux/amd64, 8, deploy, h2)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 8, deploy, h2)
The operation was canceled.
test-amd64-arch (linux/amd64, 11, embedded, h2)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 11, embedded, h2)
The operation was canceled.
test-amd64-arch (linux/amd64, 8, embedded, h2)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 8, embedded, h2)
The operation was canceled.
test-amd64-arch (linux/amd64, 8, deploy, mysql)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 8, deploy, mysql)
The operation was canceled.
test-amd64-arch (linux/amd64, 8, embedded, mysql)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 8, embedded, mysql)
The operation was canceled.
test-amd64-arch (linux/amd64, 11, embedded, mysql)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 11, embedded, mysql)
The operation was canceled.
test-amd64-arch (linux/amd64, 17, deploy, h2)
The job was canceled because "linux_amd64_11_deploy_mys" failed.
test-amd64-arch (linux/amd64, 17, deploy, h2)
The operation was canceled.
changes
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, dorny/paths-filter@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test-amd64-arch (linux/amd64, 11, deploy, mysql)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, docker/setup-qemu-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test-amd64-arch (linux/amd64, 17, deploy, h2)
Runner GitHub Actions 238 did not respond to a cancelation request with 00:05:00.