Skip to content

Commit b0c419c

Browse files
committed
Merge branch 'issues/688' of https://github.com/alexanderlz/kafka-ui into issues/688
2 parents 55a8fa3 + 416c57a commit b0c419c

File tree

386 files changed

+14354
-3415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

386 files changed

+14354
-3415
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"features": {
77
"ghcr.io/devcontainers/features/java:1": {
88
"version": "none",
9-
"installMaven": "true",
10-
"installGradle": "false"
9+
"installMaven": "false",
10+
"installGradle": "true"
1111
},
1212
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
1313
},

.github/CODEOWNERS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33

44
# BACKEND
5-
/pom.xml @kafbat/backend
5+
gradle/libs.versions.toml @kafbat/backend
6+
/build.gradle @kafbat/backend
7+
/gradle.properties @kafbat/backend
8+
/settings.gradle @kafbat/backend
9+
/gradle/ @kafbat/backend
610
/contract/ @kafbat/backend
711
/api/ @kafbat/backend
812
/serde-api/ @kafbat/backend

.github/dependabot.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,41 @@
11
version: 2
22
updates:
33

4-
- package-ecosystem: maven
4+
- package-ecosystem: gradle
55
directory: "/"
66
schedule:
77
interval: weekly
88
time: "10:00"
99
timezone: Europe/London
10-
reviewers:
11-
- "kafbat/backend"
1210
open-pull-requests-limit: 10
1311
labels:
1412
- "type/dependencies"
1513
- "scope/backend"
14+
groups:
15+
spring-boot-dependencies:
16+
patterns:
17+
- "org.springframework.boot:*"
18+
- "io.spring.dependency-management"
19+
# We will handle major upgrades manually
20+
update-types:
21+
- "patch"
22+
- "minor"
23+
other-dependencies:
24+
patterns:
25+
- "*"
26+
update-types:
27+
- "patch"
28+
- "minor"
1629

1730
- package-ecosystem: docker
1831
directory: "/api"
1932
schedule:
2033
interval: weekly
2134
time: "10:00"
2235
timezone: Europe/London
23-
reviewers:
24-
- "kafbat/backend"
2536
open-pull-requests-limit: 10
2637
ignore:
2738
- dependency-name: "azul/zulu-openjdk-alpine"
28-
# Limit dependabot pull requests to minor Java upgrades
2939
update-types: ["version-update:semver-major"]
3040
labels:
3141
- "type/dependencies"
@@ -37,22 +47,25 @@ updates:
3747
interval: weekly
3848
time: "10:00"
3949
timezone: Europe/London
40-
reviewers:
41-
- "kafbat/frontend"
4250
open-pull-requests-limit: 10
4351
versioning-strategy: increase-if-necessary
4452
labels:
4553
- "type/dependencies"
4654
- "scope/frontend"
55+
groups:
56+
pnpm-dependencies:
57+
patterns:
58+
- "*"
59+
update-types:
60+
- "patch"
61+
- "minor"
4762

4863
- package-ecosystem: "github-actions"
4964
directory: "/"
5065
schedule:
5166
interval: weekly
5267
time: "10:00"
5368
timezone: Europe/London
54-
reviewers:
55-
- "kafbat/devops"
5669
open-pull-requests-limit: 10
5770
labels:
5871
- "type/dependencies"

.github/workflows/aws_ami_publish.yml

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

.github/workflows/backend_main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ on:
44
push:
55
branches: [ "main" ]
66
paths:
7-
- "pom.xml"
7+
- "build.gradle"
8+
- "gradle.properties"
9+
- "settings.gradle"
10+
- "gradle/libs.versions.toml"
11+
812
- "contract/**"
913
- "api/**"
1014
- "serde-api/**"

.github/workflows/backend_pr.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ on:
55
pull_request_target:
66
types: [ "opened", "reopened", "synchronize" ]
77
paths:
8-
- "pom.xml"
8+
- "build.gradle"
9+
- "gradle.properties"
10+
- "settings.gradle"
11+
- "gradle/libs.versions.toml"
12+
913
- "contract/**"
1014
- "api/**"
1115
- "serde-api/**"

.github/workflows/backend_tests.yml

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Backend: build and test"
1+
name: "Backend: tests & sonar"
22

33
on:
44
workflow_call:
@@ -14,56 +14,24 @@ permissions:
1414
pull-requests: write
1515

1616
jobs:
17-
build-and-test:
17+
tests:
1818
runs-on: ubuntu-latest
1919
steps:
2020

2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # infered from @v4
2323
with:
2424
token: ${{ github.token }}
2525
fetch-depth: 0
2626
ref: ${{ github.event.pull_request.head.sha }}
2727

2828
- name: Set up JDK
29-
uses: actions/setup-java@v4
29+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # infered from @v4
3030
with:
3131
java-version: '21'
3232
distribution: 'zulu'
33-
cache: 'maven'
33+
cache: 'gradle'
3434

35-
- name: Cache SonarCloud packages
36-
uses: actions/cache@v4
37-
with:
38-
path: ~/.sonar/cache
39-
key: ${{ runner.os }}-sonar
40-
restore-keys: ${{ runner.os }}-sonar
41-
42-
- name: "Pull request: Maven tests & sonar"
43-
if: ${{ inputs.event_name == 'pull_request' || inputs.event_name == 'pull_request_target' }}
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_BACKEND }}
47-
HEAD_REF: ${{ github.head_ref }}
48-
BASE_REF: ${{ github.base_ref }}
49-
SKIP_SONAR: "true" # TODO remove when public
50-
run: |
51-
./mvnw -B -ntp versions:set -DnewVersion=${{ github.event.pull_request.head.sha }}
52-
./mvnw -B -V -ntp verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
53-
-Dsonar.skip=${SKIP_SONAR} \
54-
-Dsonar.projectKey=io.kafbat:kafbat-ui_backend \
55-
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
56-
-Dsonar.pullrequest.branch=$HEAD_REF \
57-
-Dsonar.pullrequest.base=$BASE_REF
58-
59-
- name: "Main: Maven tests & sonar"
60-
if: ${{ inputs.event_name == 'push' }}
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_BACKEND }}
64-
SKIP_SONAR: "true" # TODO remove when public
35+
- name: "Tests"
6536
run: |
66-
./mvnw -B -ntp versions:set -DnewVersion=$GITHUB_SHA
67-
./mvnw -B -V -ntp verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
68-
-Dsonar.skip=${SKIP_SONAR} \
69-
-Dsonar.projectKey=io.kafbat:kafbat-ui_backend
37+
./gradlew :api:test

.github/workflows/block_merge.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@ jobs:
66
block_merge:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: mheap/github-action-required-labels@v5
9+
- uses: mheap/github-action-required-labels@388fd6af37b34cdfe5a23b37060e763217e58b03 # infered from @v5
1010
with:
1111
mode: exactly
1212
count: 0
13-
labels: "status/blocked, status/needs-attention, status/on-hold, status/pending, status/triage, status/pending-backend, status/pending-frontend, status/pending-QA"
13+
labels: >
14+
status/blocked,
15+
status/needs-attention,
16+
status/on-hold,
17+
status/pending,
18+
status/triage,
19+
status/pending-backend,
20+
status/pending-frontend,
21+
status/pending-QA

.github/workflows/branch-deploy.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
if: ${{ github.event.label.name == 'status/feature_testing' || github.event.label.name == 'status/feature_testing_public' }}
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # infered from @v4
1919
with:
2020
ref: ${{ github.event.pull_request.head.sha }}
2121
token: ${{ github.token }}
@@ -27,11 +27,11 @@ jobs:
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
- name: Set up JDK
30-
uses: actions/setup-java@v4
30+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # infered from @v4
3131
with:
3232
java-version: '21'
3333
distribution: 'zulu'
34-
cache: 'maven'
34+
cache: 'gradle'
3535
- name: Build
3636
id: build
3737
run: |
@@ -40,36 +40,36 @@ jobs:
4040
export VERSION=$(./mvnw -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
4141
echo "version=${VERSION}" >> $GITHUB_OUTPUT
4242
- name: Set up QEMU
43-
uses: docker/setup-qemu-action@v3
43+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # infered from @v3
4444
- name: Set up Docker Buildx
4545
id: buildx
46-
uses: docker/setup-buildx-action@v3
46+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # infered from @v3
4747
- name: Cache Docker layers
48-
uses: actions/cache@v4
48+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # infered from @v4
4949
with:
5050
path: /tmp/.buildx-cache
5151
key: ${{ runner.os }}-buildx-${{ github.sha }}
5252
restore-keys: |
5353
${{ runner.os }}-buildx-
5454
- name: Configure AWS credentials for Kafka-UI account
55-
uses: aws-actions/configure-aws-credentials@v4
55+
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # infered from @v4
5656
with:
5757
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
5858
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
5959
aws-region: eu-central-1
6060
- name: Login to Amazon ECR
6161
id: login-ecr
62-
uses: aws-actions/amazon-ecr-login@v2
62+
uses: aws-actions/amazon-ecr-login@9238dd443b7a5941caf19ffbe68be34d4dbd61df # infered from @v4
6363
- name: Build and push
6464
id: docker_build_and_push
65-
uses: docker/build-push-action@v5
65+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # infered from @v6
6666
with:
6767
builder: ${{ steps.buildx.outputs.name }}
6868
context: api
6969
push: true
7070
tags: 297478128798.dkr.ecr.eu-central-1.amazonaws.com/kafka-ui:${{ steps.extract_branch.outputs.tag }}
7171
build-args: |
72-
JAR_FILE=api-${{ steps.build.outputs.version }}.jar
72+
JAR_FILE=build/libs/api-${{ steps.build.outputs.version }}.jar
7373
cache-from: type=local,src=/tmp/.buildx-cache
7474
cache-to: type=local,dest=/tmp/.buildx-cache
7575
outputs:
@@ -93,7 +93,7 @@ jobs:
9393
9494
- name: update status check for private deployment
9595
if: ${{ github.event.label.name == 'status/feature_testing' }}
96-
uses: Sibz/github-status-action@v1.1.6
96+
uses: Sibz/github-status-action@650dd1a882a76dbbbc4576fb5974b8d22f29847f # infered from @v1.1.6
9797
with:
9898
authToken: ${{secrets.GITHUB_TOKEN}}
9999
context: "Click Details button to open custom deployment page"
@@ -103,7 +103,7 @@ jobs:
103103

104104
- name: update status check for public deployment
105105
if: ${{ github.event.label.name == 'status/feature_testing_public' }}
106-
uses: Sibz/github-status-action@v1.1.6
106+
uses: Sibz/github-status-action@650dd1a882a76dbbbc4576fb5974b8d22f29847f # infered from @v1.1.6
107107
with:
108108
authToken: ${{secrets.GITHUB_TOKEN}}
109109
context: "Click Details button to open custom deployment page"

.github/workflows/branch-remove.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: ${{ (github.event.label.name == 'status/feature_testing' || github.event.label.name == 'status/feature_testing_public') || (github.event.action == 'closed' && (contains(github.event.pull_request.labels.*.name, 'status/feature_testing') || contains(github.event.pull_request.labels.*.name, 'status/feature_testing_public'))) }}
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # infered from @v4
1717
with:
1818
token: ${{ github.token }}
1919
- name: clone

0 commit comments

Comments
 (0)