Repository navigation
terragucci reads: the reports project follows the checkout ?repo= names (behold#749) - #750
Merged
Merged
Conversation
…es, by <owner>/<name> (behold#749) Under serve --repos the kiosk frame switches ?repo= per scenario, but --terragucci-project pinned every request to one project, so a frame for fan-out-tofu drew fan-out-choudoufu's plan and run view. - --terragucci-project now names the command line checkout's project only. A request whose ?repo= names another checkout (view-repos.ts readsOtherRepo) reads that checkout's own project, or none: the reports, the run view (progress) and the timeline all take `strict`. - The project is the checkout remote's <host>/<path> when the index has it, else the one project with the same <owner>/<name> (matchProject): the demo host clones from localhost:3300/terragucci-admin/<name> while its pipeline names forgejo:3000/terragucci-admin/<name>. Two hosts with the same path name none. - A strict pick with no match refuses (422), never falling back to the pin or the index's only project, so that frame draws no plan. - A single-repo serve reads as before; one with no pin whose remote matches by <owner>/<name> now picks that project where it used to ask for one. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Live check, on the shared stack's loop (terragucci demo-fanout-all 7fe79aa1, cycle 603):
🤖 Generated with Claude Code |
Merged
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.
Closes #749
Under
serve --reposthe kiosk frame switches?repo=per scenario, but--terragucci-projectpinned every request to one project. A frame for fan-out-tofu on a serve pinned to demo-choudoufu-fanout drew choudoufu's plan.The mapping
I went with deriving it rather than a repeatable
--terragucci-project <repo>=<project>. The serve already knows each checkout's remote, and the index already lists the projects.<host>/<path>when the index has that, else the one project in the index with the same<owner>/<name>(matchProject). The demo host's checkouts come fromlocalhost:3300/terragucci-admin/<name>and the pipeline namesforgejo:3000/terragucci-admin/<name>, so the host can't be the key. If two hosts carry the same path, neither matches.--terragucci-projectnames the project of the command line's checkout only. A request whose?repo=names any other checkout (readsOtherRepo) reads that checkout's own project, or none. This applies to/api/terragucci, the run view (/api/terragucci/progress) and the timeline./api/projectreports the pin only for the serve's own checkout.Single-repo serve
Nothing changes when there is no
--repos, or for requests about the serve's own checkout. The one difference: a serve with no pin, whose remote matches a project by<owner>/<name>only, now picks that project. Before, it refused and asked for--terragucci-project.Tests
src/terragucci-repos-project.test.tscoversmatchProject, strict and non-strictpickProject, and the strict timeline. Over the example bucket with two projects it checks that, on a pinned serve with--repos, the serve's own checkout reads the pin and another checkout reads its own project; that a checkout with no project gets 422 from both the reports and the run view; that/api/projectreports the pin correctly; and that single-repo serves behave as before.npm test(232 files pass),tscandnpm run buildpass.🤖 Generated with Claude Code