Skip to content

SDK regeneration#223

Open
fern-api[bot] wants to merge 3 commits into
masterfrom
fern-bot/2026-06-15_10-28-54_589
Open

SDK regeneration#223
fern-api[bot] wants to merge 3 commits into
masterfrom
fern-bot/2026-06-15_10-28-54_589

Conversation

@fern-api

@fern-api fern-api Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Automated SDK generation by Fern

fern-api Bot and others added 3 commits June 15, 2026 10:28
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant