Skip to content

ci: surface hidden CLI errors in test jobs (debug, do not merge) - #1650

Draft
l2ysho wants to merge 1 commit into
docs/remove-edit-page-linkfrom
debug/surface-create-errors-in-ci
Draft

l2ysho wants to merge 1 commit into
docs/remove-edit-page-linkfrom
debug/surface-create-errors-in-ci

Conversation

@l2ysho

@l2ysho l2ysho commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Debug only. Do not merge. Stacked on #1647 so the diff shows only the debug change.

Why

  • The Check workflow fails at random on docs: Remove Edit this page link #1647, on master, and on unrelated PRs.
  • Every failure starts the same way: apify create ends in ~100 ms and writes no files.
  • The command catches the error and vitest silent plus useConsoleSpy hide the message, so the logs do not show the cause.

What

  • When APIFY_CLI_DEBUG_ERROR_FILE is set, the command framework appends each caught error (with cause) to that file.
  • The manifest fetch error in create keeps its cause.
  • check.yaml sets the variable for the local, API and Python test steps. A new step prints the file after the tests.

How to read a failed run

  • Open the Print hidden CLI errors (debug) step of the red job.
  • Search for command=create. Ignore the Actor-name validation errors, those tests expect them.

Close this PR when the cause is known.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@pkg-pr-new

pkg-pr-new Bot commented Nov 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

npx https://pkg.pr.new/apify-cli@1650

commit: 598a9be

This branch has not been deployed

No deployments
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.

1 participant