Repository navigation
feat(ripple): add 'ripple simulate' and 'lane updates' commands - #10712
Conversation
PR Summary by QodoAdd Ripple simulations and lane cascade update management
AI Description
Diagram
High-Level Assessment
Files changed (9)
|
Code Review by Qodo
1. Undo removes unexported local updates
|
|
Code review by qodo was updated up to the latest commit 442ce3a |
|
Code review by qodo was updated up to the latest commit 0191ced |
…ons, undo only resolved entries
|
Code review by qodo was updated up to the latest commit 600d9e4 |
|
Code review by qodo was updated up to the latest commit a47bbc1 |
|
Code review by qodo was updated up to the latest commit 5f111b7 |
|
Code review by qodo was updated up to the latest commit 98cec89 |
…remote-error hint
|
Code review by qodo was updated up to the latest commit 7c3bfb0 |
|
Code review by qodo was updated up to the latest commit b347cac |
…the simulate poll
|
Code review by qodo was updated up to the latest commit 7f3b20a |
|
Code review by qodo was updated up to the latest commit c7bf31b |
| * the log-streaming endpoint (`getContainerLog`) deliberately stays on the global fetch - it reads the | ||
| * response as a web stream (`body.getReader()`), which the agent-wrapped node-fetch response doesn't have. |
There was a problem hiding this comment.
3. Proxy users cannot read simulation logs 🐞 Bug ☼ Reliability
getContainerLog() continues to call global fetch even though the new fetcher routes Ripple GraphQL traffic through Bit's configured network agent. When a proxy, custom certificate authority, or other agent setting is required, simulations can start successfully but their container logs and error details cannot be retrieved.
Agent Prompt
## Issue description
Ripple simulation GraphQL requests honor Bit's configured proxy and certificate settings, but `getContainerLog()` bypasses the agent-aware fetcher. Users requiring those settings can start simulations but cannot retrieve their logs or error details.
## Fix Focus Areas
- scopes/cloud/ripple/ripple.main.runtime.ts[212-229]
- scopes/cloud/ripple/ripple.main.runtime.ts[294-351]
## Recommended Fix
Use the agent-aware fetcher for the container-log request as well, and update stream consumption to support both WHATWG `ReadableStream` responses and the Node readable stream returned by the agent-wrapped fetch implementation. Preserve the existing abort, idle-timeout, SSE parsing, and cleanup behavior.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Code review by qodo was updated up to the latest commit 2501073 |
This PR adds three CLI verbs. Agents can use them to find what a lane change breaks in its dependents.
bit ripple simulatestarts a Ripple CI simulation for the current lane, or for the lane given with--lane. Ripple CI builds the dependents of the lane components against the lane heads. It does not merge and it does not publish. By default it searches for dependents in the lane scope, because the server cannot resolve the graph without a network filter. Use--scopes,--ownersand--exclude-scopesto widen or narrow the search. The command rejects main and rejects a lane that was never exported. The mutation returns the job before it is persisted, so the command fetches the persisted job by slug to report a usable job id.bit lane updateslists the dependents that Ripple CI cascaded onto the lane (the hiddenupdateDependentsentries). It reads the remote lane first. It uses the local lane object only when the remote lane is not available.bit lane updates --undoremoves these entries. An export does not remove hidden entries from the remote, because the remote merge walks only the incoming entries. The command removes them on the remote through the GraphQL field that the cloud UI uses, and then removes them locally.bit ripple listnow marks simulation jobs. Unit tests cover the simulate request shape and command guards with a stubbed fetch, and list and undo against a mock bare scope. The simulate command was verified against bit.cloud on a throwaway lane: the simulation reported the planted compile error in the dependent.