Skip to content

docs: make the README and docs accurate for v1 and simpler - #264

Merged
metalwarrior665 merged 2 commits into
ccr-86660633-vf05vgfrom
docs/v1-readme-and-docs
Nov 26, 2026
Merged

metalwarrior665 merged 2 commits into
ccr-86660633-vf05vgfrom
docs/v1-readme-and-docs

Conversation

@metalwarrior665

Copy link
Copy Markdown
Member

Stacked on #252: merge that first, then this one (or retarget it to master once #252 is in). Docs only, no code changes.

The README and the four docs it links were checked claim by claim against the code and the workflows, made simpler, and brought in line with the Apify style guide.

README

  • The PR workflow needs only the lint and test scripts. build-check is optional, with tsc --noEmit otherwise.
  • A platform test runs when test passes its Actor: the PR build, or the default build. There's no "all tests" mode.
  • Only the affected Actors' tests run, and the CLI also tests what it builds.
  • The default version isn't latest, which is a build tag.
  • The release and scheduled examples set report-slack-channel. Without it they post nothing to Slack.
  • The example PR workflow is pr-test.yaml with the job buildAndTest, since "devel" is gone.
  • The orchestrator note sits under its example, and the config table is shorter.

docs/lib.md

  • An Actor not in ACTOR_BUILDS doesn't run. Only the entry's missing buildNumber means the default build.
  • Only duration, failedRequests, requestsRetries and maxRetriesPerRequest take null. forbiddenLogs: [] turns that check off.
  • maxRetriesPerRequest takes a number, not a range.
  • getStatistics also returns the keys it summed, and throws for missing keys.
  • The ACTOR_BUILDS description is a small field table.

docs/cli.md

  • --actors and --ignore exist only on the commands that select Actors.
  • Unknown flags and arguments are errors.
  • notify has --dry-run, and only a dry run checks the Slack token with Slack.
  • Change detection lists its steps in the order the code applies them.
  • Smaller fixes to build, build-from-local, test, and delete-old-builds.

docs/workflows.md

  • SLACK_BOT_TOKEN is only needed with report-slack-channel.
  • Only the jobs using the setup action pin Node.js 24, and pnpm repos install with pnpm.
  • Corrected the review and @claude triggers.
  • The build and test workflows declare every secret optional. The doc says what happens when one is missing.
  • Fixed a sentence that was cut off.

docs/migrating-to-v1.md

  • The test command excludes **/dist/**, not the workflow.
  • The troubleshooting table quotes the errors as the code prints them. The parser messages were checked by running it.
  • The conversion and the workflow switch are numbered steps.

"Actor tokens" are "build tokens" throughout, to match buildTokenEnvVar.

To check

  • The troubleshooting row for a leftover TESTER_APIFY_TOKEN quotes GitHub's message, Invalid secret, TESTER_APIFY_TOKEN is not defined in the referenced workflow. It's from memory, not from a run.
  • README.md still tells consumers to set target and module to ES2022 in tsconfig.json. That still works with the new exports map, since types is set too, but someone who knows the consumer repos should say whether it's still the advice we want.

Testing

  • Every relative link with an anchor in the README, CONTRIBUTING and docs/ resolves to a heading.
  • Prettier, and the pre-commit hook with the full test suite, pass.

Generated by Claude Code

- The PR workflow needs only the lint and test scripts; build-check is
  optional, with tsc --noEmit otherwise.
- A platform test runs when `test` passes its Actor: the PR build, or
  the default build. There is no "all tests" mode.
- Only the affected Actors' tests run, and test-only changes reuse a
  build; the CLI also tests what it builds.
- The default version is not "latest", which is a build tag.
- The release and scheduled examples set report-slack-channel, without
  which they post nothing.
- The example PR workflow is pr-test.yaml with the job buildAndTest.
- The orchestrator note sits under its example, the config table is
  shorter, and the prose follows the Apify style guide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016XtpQsmuUu7Tv9c7DSAr1v
…and simpler

Each doc was checked claim by claim against the code. Among the fixes:
- lib: an Actor not in ACTOR_BUILDS doesn't run; only duration and the
  statistics checks take null; maxRetriesPerRequest takes a number;
  getStatistics returns the keys it summed and throws for missing keys.
- cli: --actors/--ignore are only on the commands that select Actors;
  unknown flags are errors; notify has --dry-run, and only a dry run
  verifies the Slack token; change detection lists its steps in order.
- workflows: SLACK_BOT_TOKEN is only needed with report-slack-channel;
  only the jobs using the setup action pin Node.js 24, pnpm repos
  install with pnpm; the review and Claude triggers; secrets are optional.
- migration guide: `test` excludes dist, not the workflow; the quoted
  errors match the code; the steps are numbered.
"Actor tokens" are "build tokens" throughout, and the prose follows the
Apify style guide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016XtpQsmuUu7Tv9c7DSAr1v
@metalwarrior665
metalwarrior665 merged commit b5484f5 into ccr-86660633-vf05vg Nov 26, 2026
10 checks passed
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.

2 participants