Move runs/ to its own repository, neurodata/prolearn-runs

未关闭
#268 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
技术栈
git, github-actions, python

调研方向

Start with the listed touch points: experiments/run.py, experiments/run_skipjack.py, experiments/push_runs.py, the workflow files, and the runs_data tests. Read the design and its nine open questions, plus #244, #257, and #266, before planning the repository split. Done means runs and related workflows use neurodata/prolearn-runs as specified, with the cutover and follow-up deletion completed; this spans repositories, deploy keys, CI, docs, and pushers.

由索引模型根据 Issue 内容生成。

描述

The pushers commit runs/ to main with no pull request. Since 2026-12-03, 450 of the 618 commits on main are pusher commits. Ruleset 28643441 lets every deploy key bypass all rules on main, and runs-guard.yml catches misuse only after the push lands. Pull requests also show red checks for data bugs their authors did not cause, because the docs job in ci.yml draws the real runs.

Design

Three stores, with dependencies that run one way only. Each store reads the one before it, pinned by SHA. No required check reads a later store.

prolearn (code + docs source)  ->  prolearn-runs (results + model state)  ->  site
  reviewed PRs, required CI         pushers, no PRs, never blocked            manual build, always deploys
  1. Runs never block code. Required checks on prolearn read only fixtures committed in tests/. No required job checks out prolearn-runs.
  2. Code never blocks runs. Pushers commit to prolearn-runs with no pull request. Its CI validates each push against the code's result.schema.json and reports failures to an issue. It never rejects a push.
  3. Runs never block the site. The site builds from a code SHA and a runs SHA, and records both. A figure that fails to draw becomes a placeholder, the site still deploys, and the failure opens an issue.
  4. Code never blocks the site. The site builds from main on request, as decided in #257.
  5. The schema is the only contract. Code owns result.schema.json, and each run records the schema version it was written with. A breaking schema change ships with a reader for old versions, or with a migration in prolearn-runs.
  6. One gate stays. A run needs reviewed code, as AGENTS.md says.

The trade-off: a data bug shows as an issue on prolearn-runs or a failed figure, not as a red check on a pull request. Fixtures can drift from real runs, and rule 2's checks catch that drift only after the fact.

Prior art: scikit-learn's sklearn-benchmark-bot commits results to scikit-learn/scikit-learn-benchmarks, and its docs build pushes to scikit-learn/scikit-learn.github.io. Neither writes to the code repository. astropy-benchmarks keeps results off its main branch, and results commits trigger the site build. PyTorch sends benchmark results to S3 through pytorch/test-infra's upload-benchmark-results action.

Decided by the maintainer:

  • One new repository, neurodata/prolearn-runs, in the neurodata org. No new org.
  • Code and docs source stay together in neurodata/prolearn, so a pseudocode page and its code are reviewed in one pull request.
  • Model state goes in prolearn-runs with Git LFS. #244 holds what to push and in what format.

Touch points

Go away: .github/workflows/runs-guard.yml, the DeployKey bypass in the main ruleset, paths-ignore: ["runs/**"] in ci.yml, and the outside-runs/ refusal in check_ahead in experiments/push_runs.py.

Change:

  • experiments/run.py: URL, results_clone(), and line 386, which runs merge-base --is-ancestor in the results clone. The results clone shares no history with the code after the split.
  • experiments/run_skipjack.py: PUSH_URL and the clone lines.
  • The pushers. The Mac launchd agent runs the results clone's own copy of push_runs.py, which a runs-only repository will not hold.
  • The two write deploy keys move to prolearn-runs.
  • docs.yml checks out prolearn-runs. The ci.yml docs job draws from fixtures. draw_settings.py needs a default runs location.
  • runs-data.yml and the runs_data tests in tests/test_board.py and tests/test_result_files.py.
  • AGENTS.md and the runboard plist.

Questions

  1. Layout. Keep a top-level runs/ folder in prolearn-runs, so root / "runs" / ... paths stay as they are, or put settings at the top level.
    Proposed default: keep runs/.

  2. History. Carry the history of runs/ into prolearn-runs with git filter-repo, or start fresh. Either way, prolearn keeps its old history and is not rewritten.
    Proposed default: carry the history.

  3. Plan. experiments/plan.toml stays in prolearn, where planning an arm is a light pull request, or moves next to the runs it checks.
    Proposed default: stays. prolearn-runs CI checks out prolearn to compare the plan with the runs.

  4. Reviews and status. runs/_reviews/<sha>.md and runs/<setting>/status.toml move with the runs, or the reviews move to the code repository.
    Proposed default: both move with the runs.

  5. Runs data checks. runs-data.yml and the runs_data tests move to prolearn-runs CI, or stay in prolearn on a schedule. Its failure issue, now #266, then lives in whichever repository runs them.
    Proposed default: move them to prolearn-runs, run on each push.

  6. Docs pin. Each site build records the prolearn-runs SHA it drew from.
    Proposed default: yes, in the page footer and the build log.

  7. LFS bandwidth. Checkouts for CI and docs skip LFS, so model state does not download on every run.
    Proposed default: lfs: false, fetching LFS only in jobs that draw from model state.

  8. Fixtures. The figure tests and the PR docs job draw from fixtures in tests/, made from a few real runs, so no required or PR check reads prolearn-runs.
    Proposed default: yes, landing first as its own pull request, before the split.

  9. Cutover. Pause both pushers, take a final push, create the repository, then merge one pull request that flips the URLs and keys. A second pull request deletes runs/ from prolearn. Then the pushers restart.
    Proposed default: as above.

Refs #244, #257, #266.

🤖 Generated with Claude Code

主要语言
Python
星标
0
派生
0
平均合并
2 小时 9 分钟
30 天内合并 PR
164

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

neurodata/prolearn 的其他 Issue

查看 neurodata/prolearn 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。