← Back to Pull requests

Do not fetch submodules when fetching upstream tags in doc build workflow #1889

Closed
unknown closed this pull request without merging on Oct 12, 2026 09:26 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 16:01 UTC
Author

I ran into this after pushing a branch to my fork: the "Fetch tags from main repository" step in test_doc_build.yml fails with fatal: remote error: upload-pack: not our ref 2f75d710... while fetching the docs_sphinx/resources submodule.

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 uses submodules: 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 in brian2-doc-resources anymore. 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-submodules to 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/37954950389

One 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 2f75d710 locally, pushing it back to brian2-doc-resources would fix the original error as well.

Diff: 182 lines (+136 / -46) across 2 files Reviewer: mstimberg Review duration: 3924m
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
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 35.6% (MEDIUM) · Higher = larger blast radius
35.6%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.1% · Safe to merge
14.1%