-
-
Notifications
You must be signed in to change notification settings - Fork 468
[DNM] Add Develocity build scan plugin #5379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
e84a32e
9b87d20
f46bf81
0d72252
6fad2ab
72134fd
4805aae
d89823c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,8 +10,8 @@ concurrency: | |
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build Job ubuntu-latest - Java 17 | ||
| test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
|
|
||
| env: | ||
|
|
@@ -41,8 +41,16 @@ jobs: | |
| with: | ||
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | ||
|
|
||
| - name: Run Tests with coverage and Lint | ||
| run: make preMerge | ||
| - name: Run Tests | ||
| run: > | ||
| ./gradlew | ||
| test | ||
| testReleaseUnitTest | ||
| jacocoTestReport | ||
| koverXmlReportRelease | ||
| -x :sentry-spring-boot:test | ||
| -x :sentry-spring-boot-jakarta:test | ||
| -x :sentry-spring-boot-4:test | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # pin@v4 | ||
|
|
@@ -55,19 +63,57 @@ jobs: | |
| if: always() | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| with: | ||
| name: test-results-build | ||
| name: test-results-test | ||
| path: | | ||
| **/build/reports/* | ||
|
|
||
| - name: Test Report | ||
| uses: phoenix-actions/test-reporting@f957cd93fc2d848d556fa0d03c57bc79127b6b5e # pin@v15 | ||
| if: always() | ||
| with: | ||
| name: JUnit Build | ||
| name: JUnit Test | ||
| list-suites: 'failed' | ||
| list-tests: 'failed' | ||
| path: | | ||
| **/build/test-results/**/*.xml | ||
| reporter: java-junit | ||
| output-to: step-summary | ||
| fail-on-error: false | ||
|
|
||
| lint: | ||
| name: Lint | ||
| runs-on: ubuntu-latest | ||
|
|
||
| env: | ||
| GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | ||
|
|
||
| steps: | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| submodules: 'recursive' | ||
|
|
||
| - name: Setup Java Version | ||
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '17' | ||
|
|
||
| # Workaround for https://github.com/gradle/actions/issues/21 to use config cache | ||
| - name: Cache buildSrc | ||
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | ||
| with: | ||
| path: buildSrc/build | ||
| key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }} | ||
|
|
||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c | ||
| with: | ||
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | ||
|
|
||
| - name: Run Lint | ||
| run: > | ||
| ./gradlew | ||
| apiCheck | ||
| animalsnifferMain | ||
| lint | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CI lint job missing detekt static analysis checksMedium Severity The new Reviewed by Cursor Bugbot for commit 72134fd. Configure here. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,6 +70,8 @@ tasks.withType<JavaCompile>().configureEach { | |
| } | ||
| } | ||
|
|
||
| tasks.withType<Test>().configureEach {} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Empty no-op test configuration block is dead codeLow Severity
Reviewed by Cursor Bugbot for commit d89823c. Configure here. |
||
|
|
||
| dependencies { | ||
| api(projects.sentry) | ||
| compileOnly(libs.jetbrains.annotations) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,12 +77,6 @@ tasks.register<Test>("systemTest").configure { | |
|
|
||
| outputs.upToDateWhen { false } | ||
|
|
||
| maxParallelForks = 1 | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. System tests lose sequential execution guaranteeMedium Severity
Additional Locations (2)Reviewed by Cursor Bugbot for commit 0d72252. Configure here. |
||
| // Cap JVM args per test | ||
| minHeapSize = "128m" | ||
| maxHeapSize = "1g" | ||
|
|
||
| filter { includeTestsMatching("io.sentry.systemtest*") } | ||
| } | ||
|
|
||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spring Boot module unit tests excluded from CI
High Severity
The
testjob explicitly excludes unit tests for:sentry-spring-boot,:sentry-spring-boot-jakarta, and:sentry-spring-boot-4via-xflags. Previously,make preMergeran./gradlew checkwhich included all module tests. The Spring Boot matrix workflows only run system tests (Python-based), not these Gradle unit tests, so these unit tests are no longer executed anywhere in CI.Reviewed by Cursor Bugbot for commit 72134fd. Configure here.