SDK regeneration#223
Open
fern-api[bot] wants to merge 3 commits into
Open
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-ruby-sdk: 1.0.0-rc84
The /reporting/v1/load endpoint is asynchronous: a still-processing query
returns HTTP 200 with body {"error":"Continue wait"} instead of results, and
the identical request must be re-sent until results arrive.
- lib/square/reporting_helper.rb: reopens Square::Reporting::Client to add
load_and_wait, an exponential-backoff retry loop (2s->20s, factor 2, 20
attempts) around the Continue-wait sentinel. Cancellation via a should_cancel
predicate (Ruby idiom for an abort signal). Detects the sentinel via the
passthrough `error` extra field on LoadResponse (results stays nil).
- test/custom/test_reporting_helper.rb: offline unit tests (polls through,
returns immediately, times out, honors cancellation, + real-deserializer
sentinel check).
- test/custom/integration/client_tests/test_reporting.rb: live smoke test;
production-default, gated behind TEST_SQUARE_REPORTING (skips cleanly).
- README: hand-authored "Reporting API" section.
- .fernignore: protect the helper.
FER-11257
CI's `bundle install` failed at dependency resolution with "Could not find gem 'nokogiri' with platform 'x86_64-linux-musl'". The lock declared only the musl platform, but the GitHub Ubuntu runners (and ruby/setup-ruby) are glibc. bundler therefore tried to fetch a musl-platform nokogiri build that rubygems does not publish for the resolved version, aborting before any tests ran. nokogiri is pulled in transitively via the legacy SDK's apimatic_* dependencies. Declaring x86_64-linux (glibc) lets bundler install the published x86_64-linux-gnu nokogiri build. Pre-existing on master, unrelated to the Reporting API change; the durable fix belongs in the generator's lock platforms.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Automated SDK generation by Fern