Skip to content

Commit 41f3cfe

Browse files
chore: update dependencies, ci (#61)
1 parent cf5e599 commit 41f3cfe

File tree

9 files changed

+54
-77
lines changed

9 files changed

+54
-77
lines changed

.github/workflows/pr-build.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,17 @@ on:
99

1010
jobs:
1111
build:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
steps:
1414
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
1515
- name: Check out code
16-
uses: actions/checkout@v2.3.4
16+
uses: actions/checkout@v3
1717
with:
1818
ref: ${{github.event.pull_request.head.ref}}
1919
repository: ${{github.event.pull_request.head.repo.full_name}}
2020
fetch-depth: 0
21-
22-
- name: create checksum file
23-
uses: hypertrace/github-actions/checksum@main
24-
25-
- name: Cache packages
26-
id: cache-packages
27-
uses: actions/cache@v2
28-
with:
29-
path: ~/.gradle
30-
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
31-
restore-keys: |
32-
gradle-packages-${{ runner.os }}-${{ github.job }}
33-
gradle-packages-${{ runner.os }}
3421

3522
- name: Build with Gradle
3623
uses: hypertrace/github-actions/gradle@main
3724
with:
3825
args: build
39-
40-
snyk-scan:
41-
runs-on: ubuntu-20.04
42-
steps:
43-
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
44-
- name: Check out code
45-
uses: actions/[email protected]
46-
with:
47-
ref: ${{github.event.pull_request.head.ref}}
48-
repository: ${{github.event.pull_request.head.repo.full_name}}
49-
fetch-depth: 0
50-
- name: Setup snyk
51-
uses: snyk/actions/[email protected]
52-
- name: Snyk test
53-
run: snyk test --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk --configuration-matching='^runtimeClasspath$' --remote-repo-url='${{ github.server_url }}/${{ github.repository }}.git'
54-
env:
55-
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

.github/workflows/pr-test.yml

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,46 @@ on:
77

88
jobs:
99
test:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
steps:
12-
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
12+
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
1313
- name: Check out code
14-
uses: actions/checkout@v2.3.4
14+
uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0
17-
18-
- name: create checksum file
19-
uses: hypertrace/github-actions/checksum@main
20-
21-
- name: Cache packages
22-
id: cache-packages
23-
uses: actions/cache@v2
24-
with:
25-
path: ~/.gradle
26-
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
27-
restore-keys: |
28-
gradle-packages-${{ runner.os }}-${{ github.job }}
29-
gradle-packages-${{ runner.os }}
3017

3118
- name: Unit test
3219
uses: hypertrace/github-actions/gradle@main
33-
with:
20+
with:
3421
args: jacocoTestReport
3522

3623
- name: Upload coverage to Codecov
37-
uses: codecov/codecov-action@v2
24+
uses: codecov/codecov-action@v3
3825
with:
3926
name: unit test reports
4027
flags: unit
4128

4229
- name: copy test reports
4330
uses: hypertrace/github-actions/gradle@main
44-
with:
31+
with:
4532
args: copyAllReports --output-dir=/tmp/test-reports
4633

4734
- name: Archive test reports
48-
uses: actions/upload-artifact@v1
35+
uses: actions/upload-artifact@v3
4936
with:
5037
name: test-reports
5138
path: /tmp/test-reports
5239
if: always()
53-
40+
5441
- name: Publish Unit Test Results
55-
uses: docker://ghcr.io/enricomi/publish-unit-test-result-action:v1.6
42+
uses: EnricoMi/publish-unit-test-result-action@v2
5643
if: always()
5744
with:
5845
github_token: ${{ secrets.GITHUB_TOKEN }}
59-
files: ./**/build/test-results/**/*.xml
46+
files: ./**/build/test-results/**/*.xml
47+
48+
dependency-check:
49+
runs-on: ubuntu-22.04
50+
steps:
51+
- name: Dependency Check
52+
uses: hypertrace/github-actions/dependency-check@main

.github/workflows/publish.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,14 @@ on:
88

99
jobs:
1010
publish-artifacts:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212
steps:
1313
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
1414
- name: Check out code
15-
uses: actions/checkout@v2.3.4
15+
uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
1818

19-
- name: create checksum file
20-
uses: hypertrace/github-actions/checksum@main
21-
22-
- name: Cache packages
23-
uses: actions/cache@v2
24-
with:
25-
path: ~/.gradle
26-
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
27-
restore-keys: |
28-
gradle-packages-${{ runner.os }}-${{ github.job }}
29-
gradle-packages-${{ runner.os }}
30-
3119
- name: publish java artifacts
3220
uses: hypertrace/github-actions/gradle@main
3321
with:

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
id("org.hypertrace.publish-plugin") version "1.0.4" apply false
99
id("org.hypertrace.jacoco-report-plugin") version "0.2.0" apply false
1010
id("org.hypertrace.code-style-plugin") version "1.1.2" apply false
11+
id("org.owasp.dependencycheck") version "8.2.1"
1112
}
1213

1314
subprojects {
@@ -27,3 +28,10 @@ subprojects {
2728
}
2829
}
2930
}
31+
32+
dependencyCheck {
33+
format = org.owasp.dependencycheck.reporting.ReportGenerator.Format.ALL.toString()
34+
suppressionFile = "owasp-suppressions.xml"
35+
scanConfigurations.add("runtimeClasspath")
36+
failBuildOnCVSS = 3.0F
37+
}

kafka-streams-framework/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ dependencies {
1717
api(project(":kafka-streams-serdes"))
1818
api("org.apache.kafka:kafka-streams:7.2.1-ccs")
1919
api("io.confluent:kafka-streams-avro-serde:7.2.1")
20-
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.11.2")
20+
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.12.0")
2121

2222
implementation("org.apache.avro:avro:1.11.1")
2323
implementation("org.apache.kafka:kafka-clients:7.2.1-ccs")
24-
implementation("org.hypertrace.core.serviceframework:platform-metrics:0.1.48")
25-
implementation("org.hypertrace.core.serviceframework:platform-service-framework:0.1.48")
24+
implementation("org.hypertrace.core.serviceframework:platform-metrics:0.1.52")
25+
implementation("org.hypertrace.core.serviceframework:platform-service-framework:0.1.52")
2626
implementation("org.apache.commons:commons-lang3:3.12.0")
2727

2828
testCompileOnly("org.projectlombok:lombok:1.18.26")

kafka-streams-partitioners/avro-partitioners/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@ dependencies {
1414
annotationProcessor("org.projectlombok:lombok:1.18.24")
1515
compileOnly("org.projectlombok:lombok:1.18.24")
1616

17-
implementation("com.google.guava:guava:31.1-jre")
17+
implementation("com.google.guava:guava:32.0.1-jre")
1818
implementation("org.apache.avro:avro:1.11.1")
1919
implementation("com.typesafe:config:1.4.2")
2020
implementation("org.apache.kafka:kafka-clients:7.2.1-ccs")
2121
implementation("org.apache.kafka:kafka-streams:7.2.1-ccs")
2222
implementation("org.slf4j:slf4j-api:1.7.36")
2323

24+
constraints {
25+
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.2")
26+
}
27+
2428
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
2529
testImplementation("org.junit-pioneer:junit-pioneer:1.7.1")
2630
testImplementation("org.mockito:mockito-core:4.5.1")

kafka-streams-partitioners/weighted-group-partitioner/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ dependencies {
1515

1616
api("com.typesafe:config:1.4.2")
1717
api("org.apache.kafka:kafka-streams:7.2.1-ccs")
18-
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.11.2")
19-
implementation("com.google.guava:guava:31.1-jre")
20-
implementation("org.hypertrace.core.grpcutils:grpc-context-utils:0.11.2")
18+
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.12.0")
19+
implementation("com.google.guava:guava:32.0.1-jre")
20+
implementation("org.hypertrace.core.grpcutils:grpc-context-utils:0.12.0")
2121
implementation("org.hypertrace.config.service:partitioner-config-service-api:0.1.46")
2222
implementation("org.slf4j:slf4j-api:1.7.36")
2323

2424
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
2525
testImplementation("org.junit-pioneer:junit-pioneer:1.7.1")
2626
testImplementation("org.mockito:mockito-core:4.5.1")
2727
testRuntimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.17.2")
28-
testRuntimeOnly("io.grpc:grpc-netty:1.45.1")
28+
testRuntimeOnly("io.grpc:grpc-netty:1.56.0")
2929
}

kafka-streams-serdes/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ dependencies {
1515
api("org.apache.avro:avro:1.11.1")
1616

1717
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
18+
19+
constraints {
20+
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.2")
21+
}
1822
}
1923

2024
// Disabling compatibility check for the test avro definitions.

owasp-suppressions.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
3+
<suppress>
4+
<notes><![CDATA[
5+
Any hypertrace core dep
6+
]]></notes>
7+
<packageUrl regex="true">^pkg:maven/org\.hypertrace\.core\..*@.*$</packageUrl>
8+
<cpe>cpe:/a:grpc:grpc</cpe>
9+
</suppress>
10+
</suppressions>

0 commit comments

Comments
 (0)