From c384d442cc14b445eb1e110598f3a5a51d342472 Mon Sep 17 00:00:00 2001 From: Alexandr Gorshenin Date: Fri, 5 Jun 2026 13:40:48 +0100 Subject: [PATCH 1/5] Fixed warnings of JDK21+ --- pom.xml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 0601d22bc..e08dd8345 100644 --- a/pom.xml +++ b/pom.xml @@ -260,16 +260,13 @@ jdk8-bootstrap [9,) - - argLine - - + org.apache.maven.plugins maven-compiler-plugin @@ -281,7 +278,7 @@ maven-surefire-plugin - ${argLine} -XX:+EnableDynamicAgentLoading + @{argLine} -XX:+EnableDynamicAgentLoading From 98c248f813a446006abc772d262950ca5d750014 Mon Sep 17 00:00:00 2001 From: Alexandr Gorshenin Date: Fri, 5 Jun 2026 13:44:34 +0100 Subject: [PATCH 2/5] Fixed tests on JDK25+ --- .../test/java/tech/ydb/table/impl/pool/FutureHelper.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/table/src/test/java/tech/ydb/table/impl/pool/FutureHelper.java b/table/src/test/java/tech/ydb/table/impl/pool/FutureHelper.java index 131889a52..1476e98e5 100644 --- a/table/src/test/java/tech/ydb/table/impl/pool/FutureHelper.java +++ b/table/src/test/java/tech/ydb/table/impl/pool/FutureHelper.java @@ -64,7 +64,11 @@ private void futureHasException(CompletableFuture future, String message) { Throwable reason = ex.getCause(); Assert.assertEquals("Completion exception message", message, reason.getMessage()); } catch (CancellationException ex) { - Assert.assertEquals("Exception message", message, ex.getMessage()); + if (ex.getCause() != null) { + Assert.assertEquals("Exception message", message, ex.getCause().getMessage()); + } else { + Assert.assertEquals("Exception message", message, ex.getMessage()); + } } catch (InterruptedException ex) { Assert.assertNotNull("Test interrupted", ex); } From 611666d0b93207b3ba533f9bb7e1e8490fe2745b Mon Sep 17 00:00:00 2001 From: Alexandr Gorshenin Date: Fri, 5 Jun 2026 13:47:15 +0100 Subject: [PATCH 3/5] Fixed SLO action --- .github/workflows/slo.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/slo.yml b/.github/workflows/slo.yml index 35e9dc2bd..78a8c63cf 100644 --- a/.github/workflows/slo.yml +++ b/.github/workflows/slo.yml @@ -150,6 +150,9 @@ jobs: permissions: pull-requests: write steps: + - name: Checkout current SDK version + uses: actions/checkout@v5 + - name: Remove SLO label from PR env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From d9c969842fbb5dfebb7d189cb9bc7053553960f0 Mon Sep 17 00:00:00 2001 From: Alexandr Gorshenin Date: Fri, 5 Jun 2026 13:57:05 +0100 Subject: [PATCH 4/5] Fix warnings by ai --- .github/workflows/slo.yml | 1 + pom.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/slo.yml b/.github/workflows/slo.yml index 78a8c63cf..4b8f05442 100644 --- a/.github/workflows/slo.yml +++ b/.github/workflows/slo.yml @@ -148,6 +148,7 @@ jobs: runs-on: ubuntu-latest name: Remove SLO Label permissions: + contents: read pull-requests: write steps: - name: Checkout current SDK version diff --git a/pom.xml b/pom.xml index e08dd8345..ef3f89852 100644 --- a/pom.xml +++ b/pom.xml @@ -266,7 +266,7 @@ - + org.apache.maven.plugins maven-compiler-plugin From fb0464212e3074361cd183de88ffb90bc8d3c4fd Mon Sep 17 00:00:00 2001 From: Alexandr Gorshenin Date: Fri, 5 Jun 2026 14:44:14 +0100 Subject: [PATCH 5/5] Disable SLO publishing --- .github/workflows/slo.yml | 66 ++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 36 deletions(-) diff --git a/.github/workflows/slo.yml b/.github/workflows/slo.yml index 4b8f05442..e5bdf1eae 100644 --- a/.github/workflows/slo.yml +++ b/.github/workflows/slo.yml @@ -2,7 +2,7 @@ name: SLO on: pull_request: - types: [opened, reopened, synchronize, labeled] + type: [labeled] jobs: ydb-slo-action: @@ -128,38 +128,32 @@ jobs: workload_baseline_image: ydb-app-baseline workload_baseline_command: ${{ matrix.sdk.command }} --read-rps 1000 --write-rps 100 - publish-slo-report: - needs: ydb-slo-action - runs-on: ubuntu-latest - name: Publish YDB SLO Report - permissions: - checks: write - contents: read - pull-requests: write - steps: - - name: Publish YDB SLO Report - uses: ydb-platform/ydb-slo-action/report@v2 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - github_run_id: ${{ github.event.workflow_run.id }} - - remove-slo-label: - needs: ydb-slo-action - runs-on: ubuntu-latest - name: Remove SLO Label - permissions: - contents: read - pull-requests: write - steps: - - name: Checkout current SDK version - uses: actions/checkout@v5 - - - name: Remove SLO label from PR - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PRS: ${{ toJSON(github.event.workflow_run.pull_requests) }} - REPO: ${{ github.event.workflow_run.repository.full_name }} - run: | - set -euo pipefail - PR=$(jq -r '.[0].number' <<<"$PRS") - gh pr edit "$PR" --repo "$REPO" --remove-label SLO +# publish-slo-report: +# needs: ydb-slo-action +# runs-on: ubuntu-latest +# name: Publish YDB SLO Report +# permissions: +# issues: write +# checks: write +# contents: read +# pull-requests: write +# steps: +# - name: Checkout current SDK version +# uses: actions/checkout@v5 +# +# - name: Publish YDB SLO Report +# uses: ydb-platform/ydb-slo-action/report@v2 +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# github_run_id: ${{ github.event.workflow_run.id }} +# +# - name: Remove SLO label from PR +# env: +# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# PRS: ${{ toJSON(github.event.workflow_run.pull_requests) }} +# REPO: ${{ github.event.workflow_run.repository.full_name }} +# run: | +# set -euo pipefail +# PR=$(jq -r '.[0].number' <<<"$PRS") +# gh pr edit "$PR" --repo "$REPO" --remove-label SLO +#