Skip to content

test(site): cover docs fetch clone paths against a local bare repo (RIG-9686) - #74

Merged
mattwilkinsonn merged 1 commit into
web/rig-9139-bundle-public-repo-docs-at-build-timefrom
web/rig-9686-cover-docs-fetch-clone-paths
Nov 12, 2026
Merged

mattwilkinsonn merged 1 commit into
web/rig-9139-bundle-public-repo-docs-at-build-timefrom
web/rig-9686-cover-docs-fetch-clone-paths

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

This PR is part of a stack containing 3 PRs:

  1. main
  2. feat(site): bundle public repo docs at build time (RIG-9139) #73
  3. "test(site): cover docs fetch clone paths against a local bare repo (RIG-9686)" (this PR)
  4. feat(site): re-add meissa to the bundled sources (RIG-9685) #75

Summary

Add optional FetchOptions.baseUrl (default GitHub) and test the fetch clone paths against a local bare repo: pinned SHA checkout, production ancestry rejection of a non-ancestor pin, .git removal, and fetched.json shape.

Verification

Pre-push gate on the offload pool runs the site tests.

Risks

Low. Production clone URLs are unchanged. The pinned-SHA test depends on the host git allowing fetch by SHA from a local repo.

Refs RIG-9686

Co-authored-by: Matt Wilkinson matt@rigel.build

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@rigel-mintaka rigel-mintaka changed the title test(site): cover docs fetch clone paths (RIG-9686) test(site): cover docs fetch clone paths against a local bare repo (RIG-9686) Nov 11, 2026
@linear-code

linear-code Bot commented Nov 11, 2026

Copy link
Copy Markdown

RIG-9686

@github-actions

Copy link
Copy Markdown

Rigel public design docs preview: https://web-rig-9686-cover-docs-fetc.docs-2ui.pages.dev

Deployed from web/rig-9686-cover-docs-fetch-clone-paths at 180cf7f.

@rigel-mintaka

Copy link
Copy Markdown
Contributor Author

Review round 1 at 180cf7f: 0 high, 0 medium, 3 low. All fixed in 35015eeb:

  • Sparse filtering was unasserted. The fixture now adds docs/x.md and src/main.ts, and the test asserts the first is fetched and the second is absent.
  • runGit labelled every -C call as git -C. It now names the subcommand (git merge-base failed (1)).
  • baseUrl needed a trailing slash. It is now normalized; production URLs are unchanged.

Gate run found a further issue: the clone tests exceeded the 5 s Bun default on a loaded VM (slowest 22.9 s). The file now sets setDefaultTimeout(30_000). Gate: 57 pass, 0 fail.

Note: rjc kept this bookmark at 180cf7f, so 35015eeb sits at the bottom of #75. Merge #74 and #75 together.

@rigel-mintaka

Copy link
Copy Markdown
Contributor Author

Interdiff review of the fix commit (now 7657ac4, at the bottom of #75): 0 high, 0 medium, 1 low. The low is that the setDefaultTimeout comment implies describe scope, but the call is file-wide. Accepted as is: comment wording only, and the behavior is harmless. All-clear for #74 at 180cf7f and the fix at 7657ac4.

@mattwilkinsonn
mattwilkinsonn added this pull request to stack #77 November 12, 2026 21:47
@mattwilkinsonn
mattwilkinsonn marked this pull request as ready for review November 12, 2026 21:48
@mattwilkinsonn
mattwilkinsonn self-requested a review as a code owner November 12, 2026 21:48
@mattwilkinsonn
mattwilkinsonn merged commit b9e0b54 into main Nov 12, 2026
2 checks passed
@mattwilkinsonn
mattwilkinsonn deleted the web/rig-9686-cover-docs-fetch-clone-paths branch November 12, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants