Add cf analyze for failed remote design runs - #30
Open
marwaneltoukhy wants to merge 1 commit into
Open
Conversation
Uses the login token to analyze the latest failed precheck, PnR, simulation, or tapeout run and prints a hint after remote poll failures. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
Adds
cf analyzeso a logged-in, linked project can ask the platform AI assistant about a failed remote precheck, PnR, simulation, or tapeout/DRC run. After remote--pollfailures, the CLI also prints a one-line hint to runcf analyze.Depends on backend https://github.com/chipfoundry/chipignite-backend-services/pull/176 (public API mounts the same
/projects/{id}/assistant/...routes). Companion PRs:Command
platform_project_idfrom the linked repo (cf link).$xx.xx), then an interactive follow-up loop (empty /q/quit/exitto stop).--questionsends one follow-up and exits.cf login).Hints after failure (and after completed-with-failed-checks when results are present):
cf precheck --remote --pollcf harden --remote --poll(PnR)cf verify --remote --poll(simulation)Test plan
Needs a published CLI pointing at an environment with backend PR 176 migrated,
cf login, and a reserved+linked project with a failed remote run.cf analyze --helplists--job-type,--job-id,--questioncf --helpincludesanalyze(tests/test_all_commands.pyupdated)cf login/cf link)--job-type/--job-idoverride works--questionsends one follow-up; interactive loop accepts a second question then empty exitcf precheck --remote --poll(and harden/verify) printscf analyze_format_api_errorVersion bump is not included here; bump
__version__when this is ready to publish.