-
Notifications
You must be signed in to change notification settings - Fork 0
[feat] add java client library #44
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
Draft
muir
wants to merge
21
commits into
main
Choose a base branch
from
addJava
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,517
−203
Draft
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
fb77727
[feat] java library
muir 58d4950
more java
muir 1e83137
java: consolidate NO_ROLE skip logic into TestSkipUtil
muir 33d4bb6
test(java): capture build output on Go test server launch failure
muir b1314b0
test(java): mitigate ENOSPC during remote Go server build (cache clea…
muir afe0859
test(java): refine Go server build retry (conditional clean on ENOSPC…
muir 77223c4
tests pass
muir 93ad904
java CI
muir b7bafeb
adjust branch triggers
muir 29694b5
all tests passed locally
muir 8f85bb4
adjustments
muir d906db4
preflight java tests
muir 5ed4aa9
java: add ProviderContext + builder (S2IAMRequest), enforce GCP-only …
muir 782e30c
java: include updated tests with audience rename and builder context
muir 2495ad5
Prune redundant Java tests; keep assume-role e2e test; update builder…
muir bc79530
add skip
muir 6d32e23
python tests now report if extra probe would have helped
muir d28f6f1
python 3.9 change
muir 3c3ed94
java: move provider clients into subpackages (aws/gcp/azure) and remo…
muir 33367f7
more tweaks
muir 7752251
feat: Azure MSI retry/backoff; provider detection timing & cancellati…
muir 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 hidden or 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,10 +1,10 @@ | ||
name: Cloud Provider Tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
on: | ||
pull_request: | ||
branches: [ "**" ] | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -133,6 +133,16 @@ jobs: | |
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Upload Java coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
files: ./java-coverage.xml | ||
flags: java,${{ matrix.name }} | ||
fail_ci_if_error: true | ||
name: ${{ matrix.name }}-java-coverage | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Clean up remote directory (Make) | ||
if: always() | ||
env: | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,48 @@ | ||
name: java | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build-test-coverage: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: '21' | ||
cache: maven | ||
|
||
- name: Lint / formatting check | ||
run: make lint-java | ||
|
||
- name: Run tests with coverage (mvn verify) | ||
working-directory: java | ||
run: mvn -q -DskipTests=false verify | ||
|
||
- name: Show coverage summary | ||
if: always() | ||
run: | | ||
if [ -f java/target/site/jacoco/index.html ]; then | ||
echo "JaCoCo report generated" | ||
fi | ||
if [ -f java/target/site/jacoco/jacoco.xml ]; then | ||
grep -q '<report' java/target/site/jacoco/jacoco.xml && echo "jacoco.xml present" | ||
fi | ||
|
||
- name: Upload Java coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
files: java/target/site/jacoco/jacoco.xml | ||
flags: java | ||
fail_ci_if_error: true | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.