-
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #44 +/- ##
============================================
- Coverage 66.91% 63.09% -3.83%
- Complexity 0 59 +59
============================================
Files 20 41 +21
Lines 2914 3921 +1007
Branches 149 366 +217
============================================
+ Hits 1950 2474 +524
- Misses 787 1142 +355
- Partials 177 305 +128
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…suppress unraisable warnings
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.
Pull Request Overview
Copilot reviewed 54 out of 55 changed files in this pull request and generated 8 comments.
…lper, orchestrator validation, gcp rationale, builder test dedupe, detection simplification)
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.
Pull Request Overview
Copilot reviewed 55 out of 56 changed files in this pull request and generated 10 comments.
# Single metadata probe (no retries). GCP metadata is either immediately | ||
# reachable or absent; retries add latency and can hide real negative | ||
# signals (firewall / wrong environment). Fast fail mirrors Go impl. |
Copilot
AI
Oct 16, 2025
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.
Raising the single-attempt GCP metadata timeout to 10s increases worst-case negative-path latency (e.g., on non-GCP hosts) before other providers can win. Consider keeping a lower per-attempt timeout (e.g., previous 3s) and relying on the orchestrator’s overall 10s ceiling, or making this value configurable to avoid slowing failure cases.
Copilot uses AI. Check for mistakes.
trace_configs = [] | ||
want_trace = debugging | ||
tc: Optional[aiohttp.TraceConfig] = None | ||
if want_trace: | ||
tc = aiohttp.TraceConfig() |
Copilot
AI
Oct 16, 2025
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.
detect() has grown very large (setup, tracing, classification, cancellation handling, probing, diagnostics) making future changes error-prone. Splitting into focused helpers (e.g., _build_trace_configs(), _probe_metadata(), _handle_cancellation(), _classify_error()) would reduce cognitive load and isolate concerns without altering behavior.
Copilot generated this review using guidance from repository custom instructions.
tc.on_request_end.append(_trace_request_end) | ||
trace_configs.append(tc) | ||
|
||
async def _probe() -> None: |
Copilot
AI
Oct 16, 2025
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.
detect() has grown very large (setup, tracing, classification, cancellation handling, probing, diagnostics) making future changes error-prone. Splitting into focused helpers (e.g., _build_trace_configs(), _probe_metadata(), _handle_cancellation(), _classify_error()) would reduce cognitive load and isolate concerns without altering behavior.
Copilot generated this review using guidance from repository custom instructions.
…on + README spelling fix
This adds a java library that parallels the Go and Python libraries.
Some small adjustments were made to existing code along the way.