Skip to content

[pull] main from abuzuhri:main#241

Merged
pull[bot] merged 6 commits into
J-W-Chan:mainfrom
abuzuhri:main
Jun 12, 2026
Merged

[pull] main from abuzuhri:main#241
pull[bot] merged 6 commits into
J-W-Chan:mainfrom
abuzuhri:main

Conversation

@pull

@pull pull Bot commented Jun 12, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

abuzuhri and others added 6 commits June 11, 2026 13:44
Amazon's orders_2026-01-01 model exposes Order.payment (OrderPayment ->
paymentExecutions[] -> PaymentExecution), which was missing from the SDK.

Add OrderPayment and PaymentExecution model classes and wire the Payment
property into Order (DataMember "payment", constructor, ToString/Equals/
GetHashCode), following the existing model conventions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
A single RateLimits instance is shared across all concurrent requests of a
given RateLimitType. With no synchronization, parallel calls race on the
token-bucket state: when the bucket is full, each thread advances LastRequest
by ratePeriodMs, so the wait target keeps receding and the limiter never
recovers until the process restarts (the reported "stuck until restart"
symptom). The logic is correct single-threaded; the bug is purely concurrency.

Gate NextRate behind a per-instance SemaphoreSlim (logic moved to NextRateCore).
Each RateLimitType owns its own instance/gate, so distinct endpoints do not
block each other.

Also repair RateLimitsTests, which referenced the rolled-back
WaitForPermittedRequest API and no longer compiled, and add a concurrency
regression test that drives 10 parallel requests and asserts they drain within
a bounded window.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators Jun 12, 2026
@pull pull Bot added the ⤵️ pull label Jun 12, 2026
@pull pull Bot merged commit ba22ba0 into J-W-Chan:main Jun 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant