GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(github-backup): --root adapter for plain_mirror_all (#15000 slice) by dezren39 · Pull Request #15440 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 26, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

One slice of #15000 (publisher half of #14964), taking exactly the blocker the design records:

doc/2026-11-25_design_backup-plane-hosted-recovery/main.md line 51: "plain_mirror_all.py resolves its root from configuration and accepts no CLI arguments, so a config/root adapter is required" — a hosted runner cannot point the plain-mirror driver at its ephemeral storage, while both sibling drivers (bundle_r2_all.py, rehost_publish_all.py) already accept --root.

Change

  • plain_mirror_all.py: strict argparse for the whole declared command line ([--root PATH]), parsed before any sync (Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352 operator-script argument contract, same pattern as the siblings); new run_all(root); --root defaults to the configured backup_root(). Unaccounted arguments still exit 2 before syncing. The no-argument invocation used by github-backup-mirror.service is unchanged.
  • test_plain_mirror_all.py: updated the unrecognized-argument expectation to argparse wording; added oracles that --root reaches every mirror_repo call and bypasses the configured root, and that the default root comes from configuration exactly once.

Verification

Remote only, per runbook: fleet queue dispatch is blocked by TLS defect #13185 (UnknownIssuer), so the same command was dispatched via the fleet-command.yml fallback workflow in developing-today/fleet — run 45778009734: python3 infra/github-backup/tests/test_plain_mirror_all.py && python3 infra/github-backup/tests/test_plain_mirror.py. Result recorded on #15000 when the run completes.

Refs #15000, #14964 — the hosted publisher workflows themselves (mirror/R2/rehost publish legs, registry rows) remain for later slices.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-26T07:48:24Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch/workspace/github-work/code-14964",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch/workspace/github-work/code-14964",
      "repo": "developing-today/code",
      "branch": "xaltha/15000-hosted-publisher",
      "sha": "53b4090b2a67175a86c7bbf8f2b9e698e908099e"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
feat(github-backup): --root adapter for plain_mirror_all (#15000 slice)
53b4090
The #14964 hosted-recovery design (main.md:51) requires a config/root
adapter for plain_mirror_all.py: it resolved its root only from laptop
configuration and accepted no CLI arguments, so a hosted runner could
not point it at ephemeral storage. Match the sibling drivers
(bundle_r2_all.py, rehost_publish_all.py): strict argparse parsed
before any sync (#3352), run_all(root), --root defaulting to the
configured backup_root. No-arg invocation (the systemd unit) is
unchanged. Tests: --root reaches every sync and bypasses the
configured root; default root comes from configuration; unaccounted
arguments still exit 2 before syncing.
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 88516b31-7158-43aa-b3e3-f6b011a07b89
Commits

Reviewing files that changed from the base of the PR and between 08e8cb5 and 53b4090.

Files selected for processing: 2

  • infra/github-backup/bin/plain_mirror_all.py
  • infra/github-backup/tests/test_plain_mirror_all.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 26, 2026
feature: publish GitHub mirrors, R2 bundles, and rehost from hosted runners #15000
Open
design: de-single-point the backup plane's laptop leg (mirrors, R2 bundles, rehost publisher, freshness probe, queue export) #14964
Closed
@dezren39
dezren39 merged commit 68e1672 into main Nov 26, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the xaltha/15000-hosted-publisher branch November 26, 2026 08:20
@dezren39

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · merged (verify-then-merge, no-queue shepherd lane P)

  • Agent: archer shepherd lane P (direct GitHub lane; fleet queue/laptop down, fleet-stalling: queue broker unreachable since 2026-11-25T14:00:28Z #15131)
  • Checks: premise + ownership read (PR body, all comments/reviews, linked feature: publish GitHub mirrors, R2 bundles, and rehost from hosted runners #15000/design: de-single-point the backup plane's laptop leg (mirrors, R2 bundles, rehost publisher, freshness probe, queue export) #14964 + comments) — author dezren39 (xaltha lane), slice claimed and progress-noted by that lane on feature: publish GitHub mirrors, R2 bundles, and rehost from hosted runners #15000, no other live claim, no merge hold, no changes-requested, not draft. Diff matches body (2 files: plain_mirror_all.py --root adapter + tests), no secrets. Remote verification run 45778009734 (developing-today/fleet) completed success. Mergeable re-read clean immediately before merge.
  • Result: MERGED via merge commit 68e1672 at 2026-11-26T08:20:43Z.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.