Files
orca/tests
Neil d6cfb6bee0 feat(cloud): DS-40 Fix with agent for failed Orca Cloud environment builds (#301)
* feat(cloud): DS-40 Fix with agent for failed Orca Cloud environment builds

A failed environment build (Settings > Orca Cloud > Cloud environments) now offers, to admins on the
latest build, Try again next to Show error, plus Fix with agent when the install script is what failed.
Fix with agent opens the composer on Orca Cloud with the prompt prefilled ('The environment build
failed at {{step}}. Fix the install script so the build succeeds.'), the current install script and the
log lines already visible in the viewer (redacted, 60 lines / 6 KB, fences neutralized). The new cloud
workspace boots from the environment's last good build, or a blank sandbox if none succeeded, as every
new cloud workspace does. orca cloud env only works on the desktop, so the agent hands back the full
fixed script for an admin to save and rebuild.

Install scripts only run in environment builds (never during a workspace create), so this lives on
the environment panel's failure summary rather than the create sheet.

* fix(cloud): DS-40 design follow-ups: two actions, and clone failures

(a) The failed-build summary drops Show error: the failed step already opens on its error, and the
    summary title now jumps back to it (log scrolled, collapsed or virtualized). Actions are Try again
    (outline) and Fix with agent (ghost). The unused cloudEnvironment.log.showError key is pruned.
(b) Clone failures: from the visible log, repo-content failures (submodules, LFS, paths that can't be
    checked out) offer Fix with agent with 'The environment build failed while cloning {{repo}}. Fix
    the repository setup so the clone succeeds.' (no install script attached; the agent fixes the repo
    on a branch and opens a PR). Access and auth failures offer Give access (GitHub install for that
    repo), never an agent. Anything unrecognized, or a clone log that isn't loaded, offers neither.
    New fixtures panelCloneFailedContent / panelCloneFailedAccess; classifier and helper unit tests;
    fixture spec 3/3.
2026-11-10 11:47:23 -08:00
..