Repository navigation
docs(cli): explain why checkly import can find nothing - #855
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WL5whpDSr7Q5xKKT2Xwyf6
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
hlenke
left a comment
There was a problem hiding this comment.
Needs changes · One line to fix: import cancel --all only cancels the plans of the project you run it in, so say to run it in the project that created the plan. The rest of the section matches the CLI and the import API.
The new section sits in a sensible place on the page: after the subcommands it troubleshoots, before the general best practices.
Overlap. #774 (sentence case) also edits cli/checkly-import.mdx. It retitles ## Best Practices, the line right after this insertion, so the two PRs conflict: I merged both heads with git merge-tree and got a content conflict in this file. Whichever lands second needs a rebase. The fix is trivial: keep this section and take #774's ## Best practices.
CI is green and the PR merges cleanly into main.
Inline: 1 important, 1 wording.
What I checked
- Read the full diff (
cli/checkly-import.mdx, +9 lines) from merge basec6fb661and the whole page at the PR head. pr_impact.py: no findings.mainhas not changed the file since the merge base.gh pr checks 855: all pass.gh pr view: MERGEABLE, CLEAN.- Overlap:
gh pr listshows only #774 touching this file.git merge-tree --write-treeof #774 and #855 reports a conflict incli/checkly-import.mdx. - Message
No importable resources were found.: checkly-cliorigin/main@8076b31,packages/cli/src/rest/projects.ts(NoImportableResourcesFoundError, thrown when the API returns 404 with that message), andpackages/cli/src/commands/import/plan.ts, which prints it, then a hint that a resource may be reserved by a pending import and can be imported by ID. - Already in a project, in any repository: monorepo
origin/main@78812e3,apps/backend/api/src/repositories/projects/importable.ts. The importable read keeps only rows with no mapping row in any project of the account. - Applied but uncommitted plans reserve resources, and importing by ID takes them over: same file (an explicitly included ID with a pending mapping is still importable), and
apps/backend/api/src/common/services/import-plans/apply.ts, where applying writes the pending mappings. Creating a plan without applying it reserves nothing. import cancel --allis scoped to the current project: checkly-clipackages/cli/src/commands/import/cancel.tslists plans withfindImportPlans(logicalId)from the loaded config, which calls/next/projects/<logicalId>/imports. The PR description reports the same in its own test.- Playwright Check Suites are never imported, even by ID: monorepo
apps/backend/api/src/repositories/checks/import-plans.ts(excludes the Playwright check type) andapps/backend/api/src/common/services/import-plans/create.ts. This matches the existing note incli/importing.mdx. checkly whoamishows the account in use: checkly-clipackages/cli/src/commands/whoami.ts.- I did not run end-to-end tests: the local app was not started in this run, so the claims were checked against source. The PR description reports an end-to-end run with CLI 10.2.0 against a local stack.
- Could not verify: nothing outstanding.
hlenke
left a comment
There was a problem hiding this comment.
Ready to merge · Both suggestions from the last review are applied, and the section now says where to run import cancel --all. The only thing in the way is the failed docs-gate job, which isn't caused by this PR: re-run it.
This review covers the two commits since e0af7ee (both "Apply suggestion"). No merge from main in between.
CI. docs-gate failed after 30 minutes with "Timed out after 30m waiting for Mintlify checks." It waits for Mintlify's vale-spellcheck check, and Mintlify only posted that check about two hours later (04:37 UTC), as neutral, with a Vale configuration error. #853 and #854, pushed in the same few minutes, failed the same way. The gate counts neutral as passing, so a re-run should go green. Because Vale reported an error, it didn't actually spellcheck the page. I read the new text for spelling and found nothing.
Overlap. #774 (sentence case) still conflicts with this PR in cli/checkly-import.mdx: git merge-tree of both heads reports a content conflict. #774 retitles ## Best Practices, the line right after this section. Whichever lands second needs a rebase. Keep this section and take #774's heading.
No inline comments.
What I checked
- Diff
e0af7ee..3d639a5(2 changed lines) and the full PR diff from merge basec6fb661.mainhasn't changedcli/checkly-import.mdxsince then. pr_impact.py: no findings.gh pr checks 855: onlydocs-gatefails. I read its log (gh run view 44857326745 --log-failed) and thevale-spellcheckcheck run through the API (posted at 04:37 UTC,neutral, "There was an error running Vale").gh pr view: MERGEABLE. The merge state is BLOCKED by the failed check.- Overlap:
gh pr listshows only #774 touching this file. I rangit merge-tree --write-treeon #855 and #774: conflict incli/checkly-import.mdx. - Claims, re-checked against current source: checkly-cli
origin/main@c58d58c1has no changes topackages/cli/src/commands/import/,rest/projects.tsorwhoami.tssince the last review (8076b31).import cancelstill lists plans withfindImportPlans(logicalId), so it only sees the plans of the project it runs in. Since the last review (78812e3), monorepoorigin/main@6f20624069changed one import file,importable.ts, and only as a refactor: a renamed batch-size constant and a shared helper for the ID list. Which resources count as importable is unchanged. - End-to-end: not run. The changed lines restate claims verified against source in the last review, and the review scripts can't drive
checkly importagainst local Checkly. The PR description reports the author's own end-to-end run with CLI 10.2.0. - Could not verify: nothing outstanding.
Requested by Hannes · project thread
Affected Components
Notes for the Reviewer
What changed
Adds "When the import finds nothing" to the
checkly importpage, with the four reasons it can find no resources and what to do about each.Why
The page didn't explain why
checkly import plancan come back empty.How each claim was verified
Tested end to end with the published CLI (checkly 10.2.0) against a local stack built from monorepo main (7ff172a1), using two separate CLI projects.
No importable resources were found.import planin a project with nothing to importimport cancel --allcheck:<id>; found in b aftercancel --allin acheck:<id>found nothingcheckly whoamishows the accountNot tested / left out
checkly whoami's output was checked.import cancel --allwas run in the project that created the plan, and cancelled only that project's plan. In the test, project b also had to cancel its own by-ID plan before a plain plan found the check.🤖 Generated with Claude Code