Skip to content

feat: add standalone "Test examples" CI step and complete documentation coverage - #3

Merged
Pijukatel merged 1 commit into
masterfrom
claude/peaceful-hawking-5pyas6
Jun 22, 2026
Merged

feat: add standalone "Test examples" CI step and complete documentation coverage#3
Pijukatel merged 1 commit into
masterfrom
claude/peaceful-hawking-5pyas6

Conversation

@Pijukatel

Copy link
Copy Markdown
Collaborator

Summary

Brings the Rust client into compliance with the updated client requirements (documentation/examples). This is a CI/docs compliance change only — the client is already at OpenAPI spec v2-2026-06-18T095846Z and there is no spec bump and no public-interface change.

Changes

  • Standalone Test examples CI step.github/workflows/rust-integration-tests.yml now has a step named exactly Test examples that actually runs the documentation example code: cargo test --test examples executes each of the 7 example programs end-to-end against the live API (via cargo run --example <name>), followed by cargo test --doc for the in-documentation snippets. Run integration tests now skips the example smoke tests (--skip example_) so the examples run only in the dedicated step, and the old doctests-only step was folded into Test examples.
  • All in-documentation snippets are compiled and checked — every docs/ page containing code is wired into doctests via #[doc = include_str!] (previously only the root README was doctest-checked). Doctests went from 7 to 21.
  • Documentation completeness — added field tables for the response/model types read by the README quick start and the examples (ActorRun, Actor, Build, User, storage-metadata .id fields, RequestQueueRequest, ActorStoreListItem, PaginationList, RequestQueueHead/OperationInfo, KeyValueStoreKeysPage), and surfaced every copy-paste dependency (serde_json, futures-util) and import in the installation sections.
  • Bumped crate version 0.2.00.2.1 and recorded the change in CHANGELOG.md.

Verification

  • cargo fmt --all -- --check and cargo clippy --all-targets -- -D warnings clean.
  • cargo test --doc — 21 doctests pass.
  • cargo test --lib --tests -- --skip example_ — unit/integration tests pass.
  • Test examples step: all 7 example programs run end-to-end against the live API and pass.

Generated by Claude Code

Align the client with the updated client requirements:

- CI: add a standalone `Test examples` step that actually runs the
  documentation example code end-to-end (`cargo test --test examples`,
  each example program executed against the live API) plus the
  in-documentation doctests (`cargo test --doc`). `Run integration tests`
  now skips the example smoke tests so they run only in the dedicated step.
- Docs: wire every docs/ page containing code into doctests via
  `#[doc = include_str!]` so all in-documentation snippets are compiled and
  checked (doctests 7 -> 21).
- Docs: document response-model fields read by the README quick start and
  examples (ActorRun, Actor, Build, User, storage metadata, RequestQueueRequest,
  ActorStoreListItem, PaginationList and friends) and surface all
  copy-paste dependencies (serde_json, futures-util) in the install sections.
- Bump version to 0.2.1 and record the change in CHANGELOG.md.
@Pijukatel Pijukatel added the adhoc Ad-hoc unplanned task added during the sprint. label Jun 22, 2026
@Pijukatel Pijukatel added this to the v0 milestone Jun 22, 2026
@github-actions github-actions Bot added t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics. labels Jun 22, 2026
@Pijukatel
Pijukatel merged commit 3cc4e81 into master Jun 22, 2026
2 of 3 checks passed
@Pijukatel
Pijukatel deleted the claude/peaceful-hawking-5pyas6 branch July 8, 2026 09: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