-
Notifications
You must be signed in to change notification settings - Fork 33
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
Spring boot 3.1.2 #398
Merged
Merged
Spring boot 3.1.2 #398
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
15e23c4
upgrade to java 17/kotlin 1.9.0
kozjan 263a403
upgrade gradle to 8.3
kozjan 75a2038
replace embedded-consul with testcontainers
kozjan fdaf072
upgrade Spring Boot to 3.1.2
kozjan be8dddc
change EchoContainer image to fix tests on arm
kozjan cb6c774
fix ports generation
kozjan c9789a3
replace deprecated WebSecurityConfigurerAdapter in ChaosController
kozjan 424ee2d
move jackson module config to separate file
kozjan dfbaa55
fix bad config test
kozjan 8fdf209
remove deprecated configuration from SynchronizationConfig
kozjan 54acc6a
update CHANGELOG.md
kozjan eb572b4
disable spring boot plugin while keeping dependency management
kozjan 4b89028
separate workflow for flaky tests
kozjan 833b8b9
do not free generated ports
kozjan 4962e16
update docker files
kozjan 0d542b8
fix security configuration
kozjan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Flaky tests | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
paths-ignore: | ||
- 'readme.md' | ||
|
||
jobs: | ||
flaky_test: | ||
name: flaky_test | ||
runs-on: ubuntu-latest | ||
env: | ||
GRADLE_OPTS: '-Dfile.encoding=utf-8 -Dorg.gradle.daemon=false' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: gradle/wrapper-validation-action@v1 | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
|
||
- name: Flaky tests | ||
run: ./gradlew clean -Penvironment=integration :envoy-control-tests:flakyTest | ||
|
||
- name: Junit report | ||
uses: mikepenz/action-junit-report@v2 | ||
if: always() | ||
with: | ||
report_paths: '**/build/test-results/test/TEST-*.xml' | ||
|
||
- name: Cleanup Gradle Cache | ||
run: | | ||
rm -f ~/.gradle/caches/modules-2/modules-2.lock | ||
rm -f ~/.gradle/caches/modules-2/gc.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/utils/Ports.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package pl.allegro.tech.servicemesh.envoycontrol.utils | ||
|
||
import java.net.ServerSocket | ||
import pl.allegro.tech.servicemesh.envoycontrol.logger | ||
|
||
object Ports { | ||
private val usedPorts: MutableSet<Int> = mutableSetOf() | ||
val logger by logger() | ||
|
||
@Synchronized | ||
fun nextAvailable(): Int { | ||
var randomPort: Int | ||
do { | ||
randomPort = ServerSocket(0).use { it.localPort } | ||
} while (usedPorts.contains(randomPort)) | ||
usedPorts.add(randomPort) | ||
logger.info("Generated port: {}", randomPort) | ||
logger.info("Used ports: {}", usedPorts) | ||
|
||
return randomPort | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe it can be moved to test, because it is only used there
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.
moving Ports to test causes errors in
envoy-control-tests
, since it hasevony-control-core
as a dependency