feat(cli): add --cloud mode to recce init for CLL pre-computation#1284
Open
feat(cli): add --cloud mode to recce init for CLL pre-computation#1284
Conversation
Add `recce init --cloud --session-id <id>` that: 1. Downloads manifests + catalogs from Recce Cloud session 2. Downloads existing CLL cache (current session → base session fallback) 3. Computes per-node CLL and builds full CLL map 4. Uploads cll_map.json + cll_cache.db back to session S3 This enables the Cloud instance to pre-compute CLL data so the /cll endpoint can serve it without a running Recce instance (DRC-3183). The cache fallback chain (current → base → scratch) means the 200s+ cold-start only happens once per project on production metadata upload. Subsequent PR sessions reuse the warm cache. Also adds cll_map.json generation to local `recce init` (non-cloud), saved alongside the SQLite cache for local development use. Resolves DRC-3181 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: even-wei <evenwei@infuseai.io>
- Handle get_session 403 error explicitly (was producing misleading "missing org_id" error instead of "access denied") - Fix state_file_host override (was setting nonexistent .host attribute; now correctly overrides base_url and base_url_v2) - Wrap get_download_urls and get_base_session_download_urls in try/except for graceful error handling - Remove duplicate import requests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: even-wei <evenwei@infuseai.io>
Codecov Report❌ Patch coverage is
... and 4 files with indirect coverage changes 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR checklist
What type of PR is this?
Feature -- adds
recce init --cloudfor CLL pre-computationWhat this PR does / why we need it:
Adds
--cloudmode torecce initso it can download artifacts from Recce Cloud, compute CLL, and upload results (cll_map.json+cll_cache.db) back to the session S3 bucket.This enables the Cloud server to serve
/clldata before a Recce instance is available (DRC-3183).Key behaviors:
cll_map.jsoncll_map.jsongeneration to local (non-cloud)recce initWhich issue(s) this PR fixes:
Resolves DRC-3181
Special notes for your reviewer:
--cloudflag reuses the samerecce_cloud_optionsasrecce server --cloudDoes this PR introduce a user-facing change?:
Generated with Claude Code