Skip to content

Update go git module (main)#3335

Merged
simonbaird merged 2 commits into
conforma:mainfrom
simonbaird:update-go-git
Jun 12, 2026
Merged

Update go git module (main)#3335
simonbaird merged 2 commits into
conforma:mainfrom
simonbaird:update-go-git

Conversation

@simonbaird

Copy link
Copy Markdown
Member

No description provided.

Sometimes the go mod tidy errors are about transitive dependencies
and are safe to ignore. Make it easier to handle that situation.
Commit created like this:

  hack/go-mod-upgrade-helper github.com/go-git/go-git/v5  --ignore-tidy-error
@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 86882505-522b-4ae0-b3fb-1d9a6d824c23

📥 Commits

Reviewing files that changed from the base of the PR and between c6df9ad and 358acfd.

⛔ Files ignored due to path filters (3)
  • acceptance/go.sum is excluded by !**/*.sum
  • go.sum is excluded by !**/*.sum
  • tools/go.sum is excluded by !**/*.sum
📒 Files selected for processing (4)
  • acceptance/go.mod
  • go.mod
  • hack/go-mod-upgrade-helper.sh
  • tools/go.mod

📝 Walkthrough

Walkthrough

Go module dependencies are bumped across acceptance, main, and tools modules to align versions of go-git, golang.org/x/exp, filepath-securejoin, and pjbgf/sha1cd, while klauspost/cpuid/v2 is newly added. The go-mod-upgrade-helper script is enhanced to support an optional --ignore-tidy-error flag that allows tidy operations to proceed despite errors.

Changes

Dependency Updates and Tooling

Layer / File(s) Summary
Dependency version updates across modules
acceptance/go.mod, go.mod, tools/go.mod
Module requirements are updated across all go.mod files: go-git/go-billy/v5 (v5.8.0 → v5.9.0), go-git/go-git/v5 (v5.17.1 → v5.19.1 in acceptance; v5.18.0 → v5.19.1 in main), golang.org/x/exp to newer pseudo-versions, filepath-securejoin (v0.6.0 → v0.6.1), klauspost/cpuid/v2 (newly added as v2.3.0), and pjbgf/sha1cd (v0.3.2 → v0.6.0).
Helper script argument parsing and tidy flag support
hack/go-mod-upgrade-helper.sh
Script now parses --ignore-tidy-error flag and translates it to go mod tidy's -e flag. Tidy arguments are passed during module update loops, and the commit message conditionally includes the flag in example usage when provided.

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive No description was provided by the author, making it impossible to evaluate whether any content is related to the changeset. Add a pull request description explaining the purpose and impact of updating the Go git module dependencies.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: updating Go git module dependencies across multiple go.mod files in the project.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@simonbaird

Copy link
Copy Markdown
Member Author

I didn't make a Jira for it, but this should fix a CVE violation I just saw.

@fullsend-ai-review

fullsend-ai-review Bot commented Jun 12, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:31 PM UTC · Completed 6:50 PM UTC
Commit: 47d3320 · View workflow run →

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
acceptance 53.56% <ø> (+<0.01%) ⬆️
generative 16.87% <ø> (ø)
integration 27.80% <ø> (ø)
unit 69.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium

  • [edge-case] hack/go-mod-upgrade-helper.sh:30 — Under set -o nounset, ${POSITIONAL[0]} will trigger an "unbound variable" error if no positional arguments are provided. The error message ("POSITIONAL[0]: unbound variable") is less clear than the old $1: unbound variable. Adding a usage guard before this line would improve the user experience.
    Remediation: Add a guard before line 30: if [[ ${#POSITIONAL[@]} -lt 1 ]]; then echo >&2 "Usage: $0 [--ignore-tidy-error] PKG [JIRA]"; exit 1; fi

Low

  • [logic-error] hack/go-mod-upgrade-helper.sh:40 — On Bash < 4.4 with set -o nounset, "${TIDY_ARGS[@]}" on an empty array triggers an unbound variable error. However, this is the same pattern already used by the existing "${JIRA_REF_OPT[@]}", so the script already has this incompatibility.

  • [logic-error] hack/go-mod-upgrade-helper.sh:54 — The reconstructed command in the commit message may contain extra whitespace when JIRA is empty (e.g., hack/go-mod-upgrade-helper PKG --ignore-tidy-error). This is purely cosmetic — copy-pasting the command would still work correctly because the argument parser handles --ignore-tidy-error in any position.

Info

  • [sub-agent-failure] The style-conventions sub-agent did not return findings: model unavailable on deployment.

  • [sub-agent-failure] The intent-coherence sub-agent did not return findings: model unavailable on deployment.

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Jun 12, 2026
@simonbaird simonbaird merged commit 8e0e5b5 into conforma:main Jun 12, 2026
19 checks passed
@fullsend-ai-retro

fullsend-ai-retro Bot commented Jun 12, 2026

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 8:58 PM UTC · Completed 9:03 PM UTC
Commit: 47d3320 · View workflow run →

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #3335 — Update go-git module

This was a straightforward human-authored PR by simonbaird to update the go-git dependency and fix a CVE, with minor enhancements to hack/go-mod-upgrade-helper.sh. The workflow ran smoothly overall:

  • CI (Lint, CodeQL, Checks) all passed within minutes.
  • Review agent completed in ~20 minutes and found 1 medium and 2 low findings in the helper script — all reasonable and accurately scoped to the changed code.
  • Human reviewer (cuipinghuo) approved ~30 minutes after the review posted. PR was merged manually ~1.5 hours after approval.

Observations

  1. Sub-agent model unavailability: The style-conventions and intent-coherence sub-agents both failed with "model unavailable on deployment." This is a known issue already tracked by #1771 (model fallback) and #1795 (qualify verdict on sub-agent failure).

  2. Review efficiency on dependency PRs: The 20-minute review duration for a 7-file, +59/-40 PR is reasonable given the script changes, but could be shortened by skipping lockfile (go.sum) analysis. This is covered by the existing cluster of issues: #1358, #1900, and #2171.

  3. Pre-existing pattern flagged as finding: The low-severity finding about TIDY_ARGS[@] empty array on Bash <4.4 was correctly noted as pre-existing. Suppression of pre-existing findings is tracked in #1562.

  4. Retro dispatch value: Running a full retro on a simple human-authored dependency update with minor review findings yields limited actionable insight. Skipping retros for such cases is tracked in #1675 and #939.

Verdict

No new proposals. All identified improvement opportunities are already covered by existing open issues in fullsend-ai/fullsend.

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

Labels

requires-manual-review Review requires human judgment size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants