forked from opensearch-project/opensearch-migrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into TrackableCompletableFutures
* main: (57 commits) [Index configuration tool] Add support for insecure HTTPS endpoint (opensearch-project#218) Refactor inner classes from ExpiringTrafficStreamMap into separate classes. One other refactorings to simplify data encapsulation between the main map itself and each ExpiringKeyQueue. Move ExpiringTrafficStreamMap file to a new package to accommodate refactoring in the next commit. Make getOrCreateNodeMap() less pessimistic and add a TODO for work that needs to be done to remove (or at least describe) an obscure and rare race condition. [index configuration tool] Change to parsing Data Prepper pipeline YAML as input (opensearch-project#215) changing argument and variable names + updating description run on any .py changes within the top cluster_migration_core directory run lint on all .py changes Removing accidentally included kafka.properties file Migrations-1150 - Enhance Setting Kafka Properties for Kafka Puller Disabling python related workflows for non-python directories Using wildcards to add coverage report files instead of adding individual files removing finalized renaming workflow + no longer double executing tests Introduce Copilot Deployments (opensearch-project#201) Wildcard isn't supported - add each cov file manually run gradle build instead of assemble Update codecov version Add github workflow Bump aws-cdk-lib in /deployment/cdk/opensearch-service-migration (opensearch-project#206) ... Signed-off-by: Greg Schohn <[email protected]> # Conflicts: # TrafficCapture/trafficReplayer/src/main/java/org/opensearch/migrations/replay/Accumulation.java # TrafficCapture/trafficReplayer/src/main/java/org/opensearch/migrations/replay/ExpiringTrafficStreamMap.java # TrafficCapture/trafficReplayer/src/main/java/org/opensearch/migrations/replay/CapturedTrafficToHttpTransactionAccumulator
- Loading branch information
Showing
56 changed files
with
2,006 additions
and
876 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
paths: | ||
- '**.py' | ||
pull_request: | ||
paths: | ||
- '**.py' | ||
|
||
jobs: | ||
lint: | ||
|
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,31 @@ | ||
name: Gradle Build and Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
gradle-build-and-test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Run Gradle Build | ||
run: ./gradlew build -x test | ||
working-directory: TrafficCapture | ||
|
||
- name: Run Tests with Coverage | ||
run: ./gradlew test jacocoTestReport --info | ||
working-directory: TrafficCapture | ||
|
||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: "TrafficCapture/**/jacocoTestReport.xml" | ||
flags: unittests | ||
fail_ci_if_error: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Running the Docker Solution | ||
|
||
While in the TrafficCapture directory, run the following command: | ||
|
||
`./gradlew :dockerSolution:composeUp` | ||
|
||
## Compatibility | ||
|
||
Must have Java version 11 installed. | ||
|
||
The tools in this directory can only be built if you have Java version 11 installed. | ||
|
||
The version is specified in `TrafficCapture/build.gradle` using a Java toolchain, which allows us | ||
to decouple the Java version used by Gradle itself from Java version used by the tools here. | ||
|
||
Any attempt to use a different version will cause the build to fail and will result in the following error (or similar) | ||
depending on which tool/project is being built. The below example shows the error printed when running e.g `./gradlew | ||
trafficCaptureProxyServer:build` | ||
|
||
``` | ||
* What went wrong: | ||
A problem occurred evaluating project ':trafficCaptureProxyServer'. | ||
> Could not resolve all dependencies for configuration ':trafficCaptureProxyServer:opensearchSecurityPlugin'. | ||
> Failed to calculate the value of task ':trafficCaptureProxyServer:compileJava' property 'javaCompiler'. | ||
> No matching toolchains found for requested specification: {languageVersion=10, vendor=any, implementation=vendor-specific}. | ||
> No locally installed toolchains match (see https://docs.gradle.org/8.0.2/userguide/toolchains.html#sec:auto_detection) and toolchain download repositories have not been configured (see https://docs.gradle.org/8.0.2/userguide/toolchains.html#sub:download_repositories). | ||
``` |
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
Oops, something went wrong.