Do not fetch submodules when fetching upstream tags in doc build workflow #1889
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 182 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.312
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1889"
general
weight: 0.35
mstimberg
I ran into this after pushing a branch to my fork: the "Fetch tags from main repository" step in
test_doc_build.ymlfails withfatal: remote error: upload-pack: not our ref 2f75d710...while fetching thedocs_sphinx/resourcessubmodule.From what I can tell, here's what's going on. A fork usually only has
master, so fetching from upstream pulls in all of Brian's other branches too. Since the checkout usessubmodules: true(added in #1479), git then also tries to fetch the submodule commits those branches point to. One of them,2f75d710(set in 3308b52e, "Update resource submodule"), doesn't exist inbrian2-doc-resourcesanymore. In the main repository this step has nothing new to fetch, which is why it never shows up there.The step only needs the tags, so this PR just adds
--no-recurse-submodulesto the fetch. I reproduced the error locally with a fresh clone of my fork, and with the flag the fetch goes through fine. On my fork, "Fetch tags from main repository" now passes: https://github.com/Anish-185/brian2/actions/runs/37954950389One heads-up, not fixed here: that run then fails at "Setup Conda and Python," because the workflow now picks up Python 3.15, which conda-forge can't install yet. The last scheduled run on master (Oct 5) passed, so the next one will probably hit the same failure.
Also, if you still have
2f75d710locally, pushing it back tobrian2-doc-resourceswould fix the original error as well.