Skip to content

Add go-mod-reconcile-upstream hook to kopia oadp-1.4 config - #149

Merged
Joeavaikath merged 2 commits into
oadp-rebasebot:oadp-devfrom
Joeavaikath:worktree-add-reconcile-hook
Jul 15, 2026
Merged

Add go-mod-reconcile-upstream hook to kopia oadp-1.4 config#149
Joeavaikath merged 2 commits into
oadp-rebasebot:oadp-devfrom
Joeavaikath:worktree-add-reconcile-hook

Conversation

@Joeavaikath

@Joeavaikath Joeavaikath commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds the go-mod-reconcile-upstream.sh post-rebase hook to the kopia oadp-1.4 config, running before go-mod-tidy-and-commit.sh
  • Fixes prometheus/common version drift (v0.44.0v0.52.3) that caused oadp-must-gather build failures due to the missing expfmt.NewFormat API
  • The reconcile hook bumped 13 downgraded dependencies total during the rebase

Context

The oadp-must-gather oadp-1.4 images build was failing in CI because migtools/kopia:oadp-1.4 had prometheus/common at v0.44.0, while the upstream code from v0.17.0-velero.1 requires v0.52.3 for the expfmt.NewFormat() API (added in v0.46.0). The version was downgraded during rebase because downstream carry commits pinned older dependency versions, and go mod tidy resolved to the lower version without the reconcile hook to enforce upstream minimums.

Test plan

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added upstream Go module reconciliation to post-rebase automation across supported OADP and plugin configurations.
    • Rebase workflows now reconcile module changes before tidying dependencies and committing updates.

The reconcile hook compares go.mod require versions against the
upstream source and bumps any that were downgraded during rebase.
Without it, prometheus/common was stuck at v0.44.0 (vs upstream
v0.52.3), causing build failures in oadp-must-gather due to the
missing expfmt.NewFormat API added in v0.46.0.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bc778fcd-70db-4738-a187-4fadd95d0e8c

📥 Commits

Reviewing files that changed from the base of the PR and between 4958323 and b462bff.

📒 Files selected for processing (28)
  • rebase-configs/migtools_kopia_oadp-1.3.env.sh
  • rebase-configs/migtools_kopia_oadp-1.4.env.sh
  • rebase-configs/migtools_kopia_oadp-1.5.env.sh
  • rebase-configs/migtools_kopia_oadp-1.6.env.sh
  • rebase-configs/migtools_kopia_oadp-dev.env.sh
  • rebase-configs/migtools_kubevirt_velero_plugin_main.env.sh
  • rebase-configs/migtools_kubevirt_velero_plugin_oadp-1.3.env.sh
  • rebase-configs/migtools_kubevirt_velero_plugin_oadp-1.4.env.sh
  • rebase-configs/migtools_kubevirt_velero_plugin_oadp-1.5.env.sh
  • rebase-configs/migtools_kubevirt_velero_plugin_oadp-1.6.env.sh
  • rebase-configs/migtools_oadp_vmdp_oadp-1.6.env.sh
  • rebase-configs/migtools_oadp_vmdp_oadp-dev.env.sh
  • rebase-configs/openshift_velero_plugin_for_aws_oadp-1.3.env.sh
  • rebase-configs/openshift_velero_plugin_for_aws_oadp-1.4.env.sh
  • rebase-configs/openshift_velero_plugin_for_aws_oadp-1.5.env.sh
  • rebase-configs/openshift_velero_plugin_for_aws_oadp-1.6.env.sh
  • rebase-configs/openshift_velero_plugin_for_aws_oadp-dev.env.sh
  • rebase-configs/openshift_velero_plugin_for_csi_oadp-1.3.env.sh
  • rebase-configs/openshift_velero_plugin_for_gcp_oadp-1.3.env.sh
  • rebase-configs/openshift_velero_plugin_for_gcp_oadp-1.4.env.sh
  • rebase-configs/openshift_velero_plugin_for_gcp_oadp-1.5.env.sh
  • rebase-configs/openshift_velero_plugin_for_gcp_oadp-1.6.env.sh
  • rebase-configs/openshift_velero_plugin_for_gcp_oadp-dev.env.sh
  • rebase-configs/openshift_velero_plugin_for_microsoft_azure_oadp-1.3.env.sh
  • rebase-configs/openshift_velero_plugin_for_microsoft_azure_oadp-1.4.env.sh
  • rebase-configs/openshift_velero_plugin_for_microsoft_azure_oadp-1.5.env.sh
  • rebase-configs/openshift_velero_plugin_for_microsoft_azure_oadp-1.6.env.sh
  • rebase-configs/openshift_velero_plugin_for_microsoft_azure_oadp-dev.env.sh

📝 Walkthrough

Walkthrough

Changes

Post-rebase hook wiring

Layer / File(s) Summary
Migration configuration hook wiring
rebase-configs/migtools_*
Kopia, KubeVirt, and VMDP configurations add go-mod-reconcile-upstream.sh to their post-rebase hook sequences.
Provider configuration hook wiring
rebase-configs/openshift_velero_plugin_*
AWS, CSI, GCP, and Microsoft Azure configurations add the same reconciliation hook before subsequent maintenance hooks.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

  • oadp-rebasebot/oadp-rebase issue 140 — Covers adding go-mod-reconcile-upstream.sh to the listed rebase configurations.
  • oadp-rebasebot/oadp-rebase issue 150 — Covers wiring the hook into Kopia and other non-Velero configurations.

Possibly related PRs

Suggested reviewers: kaovilai

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes one real part of the changeset: adding the reconcile hook to the Kopia OADP 1.4 config.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

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

Adds the reconcile hook before go-mod-tidy-and-commit in every config
that rebases from a real upstream (source != dest). Hooks-only configs
(source == dest) are excluded since there is no upstream go.mod to
reconcile against.

Repos covered: kopia (1.3/1.5/1.6/dev), kubevirt-velero-plugin
(main/1.3-1.6), oadp-vmdp (1.6/dev), velero-plugin-for-aws
(1.3-1.6/dev), velero-plugin-for-csi (1.3), velero-plugin-for-gcp
(1.3-1.6/dev), velero-plugin-for-microsoft-azure (1.3-1.6/dev).

Velero configs already had it; kopia 1.4 was added in the prior commit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Joeavaikath
Joeavaikath marked this pull request as ready for review July 15, 2026 14:33
@Joeavaikath
Joeavaikath merged commit 075c740 into oadp-rebasebot:oadp-dev Jul 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant