Files
zchao.007 aa5de22cab fix(drive): add rate limit recovery hints
Detect rate-limited Drive/Doc responses (SubtypeRateLimit, business code
99991400, or HTTP 429; excluding the 1063006 daily quota) and append
exponential-backoff-with-jitter guidance to the typed error hint, so AI
agents stop hammering and retry sensibly.

Apply the recovery hint explicitly inside each drive shortcut's Execute
via a defer, mirroring PR #2218's call-site style, instead of an implicit
blanket decorator over the shortcut registry. Also cover the docs
+resource-download cover path, which streams from the same Drive media
download endpoint.
2026-08-10 15:26:20 +08:00
..
2026-07-27 16:17:08 +08:00
2026-07-24 14:28:54 +08:00

CLI E2E Tests

This directory contains end-to-end tests for lark-cli.

The purpose of this module is to verify real CLI workflows from a user-facing perspective: run the compiled binary, execute commands end to end, and catch regressions that are not obvious from unit tests alone.

What Is Here

  • core.go, core_test.go: the shared E2E test harness and its own tests
  • demo/: reference testcase(s)
  • cli-e2e-testcase-writer/: the local skill for adding or updating testcase files in this module

For Contributors

When writing or updating testcases under tests/cli_e2e, install and use this skill first:

npx skills add ./tests/cli_e2e/cli-e2e-testcase-writer

Then follow tests/cli_e2e/cli-e2e-testcase-writer/SKILL.md.

Example prompt:

Use $cli-e2e-testcase-writer to write lark-cli xxx domain related testcases.
Put them under tests/cli_e2e/xxx.

Run

make build
go test ./tests/cli_e2e/... -count=1