Skip to content

Commit

Permalink
Fixed benchmarking test
Browse files Browse the repository at this point in the history
Signed-off-by: Guian Gumpac <[email protected]>
  • Loading branch information
GumpacG committed Sep 7, 2024
1 parent 54c64a4 commit 431e312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ jobs:
export ORG_GRADLE_PROJECT_centralManualTestingAuthHeaderName="Authorization"
export ORG_GRADLE_PROJECT_centralManualTestingAuthHeaderValue="Bearer $(echo "${{ secrets.CENTRAL_TOKEN_USERNAME }}:${{ secrets.CENTRAL_TOKEN_PASSWORD }}" | base64)"
export GLIDE_RELEASE_VERSION=${{ env.RELEASE_VERSION }}
./gradlew :benchmarks:run
./gradlew :benchmarks:run --args="--minimal --clients glide"
- name: Drop deployment if validation fails
if: ${{ failure() }}
Expand Down
2 changes: 2 additions & 0 deletions java/benchmarks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ run.dependsOn ':client:buildRustRelease'
application {
// Define the main class for the application.
mainClass = 'glide.benchmarks.BenchmarkingApp'
// Runs for GITHUB_ACTIONS for testing release Maven deployment. Force benchmarks to use glide-rs from Maven Central
// deployments.
if (!System.getenv("ORG_GRADLE_PROJECT_centralManualTestingAuthHeaderName")) {
applicationDefaultJvmArgs = ['-Djava.library.path=../target/release']
}
Expand Down

0 comments on commit 431e312

Please sign in to comment.