Skip to content

feat: add zstd compression and ParentRequestID, sync with Apify OpenAPI spec v2-2026-11-09T143926Z - #34

Merged
Pijukatel merged 6 commits into
masterfrom
claude/upbeat-faraday-d87ffi
Nov 11, 2026
Merged

Pijukatel merged 6 commits into
masterfrom
claude/upbeat-faraday-d87ffi

Conversation

@Pijukatel

Copy link
Copy Markdown
Collaborator

Summary

Syncs the Go client with OpenAPI spec v2-2026-11-09T143926Z (apify/apify-docs#3084, #3199) and apify-client-js #1198, #1200 and #1205. Applies requirement updates from apify/apify-client-orchestration#66 and #67, and cleans up docs and comments. ClientVersion goes to 0.16.0.

Spec sync

  • APISpecVersion is v2-2026-11-09T143926Z.
  • #3084: actorPath was already present.
  • #3199: zstd is documented as a Content-Encoding value for key-value store records.

zstd request compression (JS #1200)

  • New RequestCompressionZstd, using klauspost/compress. Works with WithRequestCompression and for Server Actor requests.
  • One encoder is shared across goroutines.

ParentRequestID for Server Actor requests (JS #1198)

  • ActorServerRequestOptions.ParentRequestID is sent as X-Actor-Request-ID and replaces any header with the same name, whatever its casing.
  • docs/server_actors.md has a new section with a compiled example.
  • JS #1205 only regenerates JS types, so nothing was ported.

Batch add requests

  • BatchAddRequests now retries unprocessed requests 3 times and sends up to 5 batches at once, like the reference client. The first retry delay is capped.
  • New BatchAddRequestsWithOptions sets the retry count, parallelism and delay.
  • A batch that fails with an API or transport error returns its requests as unprocessed instead of failing the call. An invalid queue ID, an undecodable response or an ended context still returns an error.

Docs and comments cleanup

  • Shortened and corrected comments in the code, README, docs pages and CI workflow.
  • Removed reference-client and sibling-client provenance notes.
  • Split review_fixes_test.go into test files named by subject.

Tests

  • New request_queue_batch_test.go for retries, parallelism and failed batches.
  • Unit tests for zstd and ParentRequestID.

Generated by Claude Code

@Pijukatel Pijukatel added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Nov 10, 2026 — with Claude
@apify-service-account apify-service-account added the tested Temporary label used only programatically for some analytics. label Nov 10, 2026
@Pijukatel
Pijukatel merged commit 2c3b70d into master Nov 11, 2026
2 of 6 checks passed
@Pijukatel
Pijukatel deleted the claude/upbeat-faraday-d87ffi branch November 11, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants