Skip to content

Inline vitess-addons and remove private repo access scaffolding#868

Draft
sbaker617 wants to merge 6 commits into
slack-22.0from
v22-port-in-vitess-addons
Draft

Inline vitess-addons and remove private repo access scaffolding#868
sbaker617 wants to merge 6 commits into
slack-22.0from
v22-port-in-vitess-addons

Conversation

@sbaker617

Copy link
Copy Markdown

What's this?

Brings the vitess-addons code (durability policy + vtops external binary wrapper) directly into this repo and removes all the GH_ACCESS_TOKEN / GOPRIVATE plumbing that was needed to access the private dependency.

How it works

Commit 1: Copies go/durability/ and go/external/ from vitess-addons, updates the shim import, removes the module dependency.

Commit 2: Strips GH_ACCESS_TOKEN from Dockerfiles, build scripts, CI workflows, and the workflow generator. Regenerates all CI workflow YAMLs.

Testing

  • go build ./... passes
  • go test ./go/durability/... ./go/external/... ./go/vt/vtctl/reparentutil/policy/... all pass
  • Zero remaining references to vitess-addons/GH_ACCESS_TOKEN/GOPRIVATE outside of inert template conditionals

Most of this was written by Claude Code - I just provided direction.

sbaker617 and others added 2 commits June 3, 2026 04:35
Copy go/durability and go/external packages from vitess-addons into
this repo, update the shim import path, and remove the private module
dependency. This eliminates the need for GH_ACCESS_TOKEN to fetch
the private vitess-addons repo.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Signed-off-by: Steve Baker <s.baker@slack-corp.com>
Now that vitess-addons is inlined, there's no need for private repo
access scaffolding. Remove all GH_ACCESS_TOKEN build args, GOPRIVATE
env vars, and git config URL rewriting from Dockerfiles, build scripts,
CI workflows, and the workflow generator.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Signed-off-by: Steve Baker <s.baker@slack-corp.com>
@github-actions github-actions Bot added this to the v22.0.4 milestone Jun 3, 2026
sbaker617 and others added 2 commits June 3, 2026 04:52
These conditional blocks were Slack-specific additions not present in
upstream v22.0.4. Now that vitess-addons is inlined and goPrivate is
unused, remove the dead template conditionals and GoPrivate struct
fields from the workflow generator.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Signed-off-by: Steve Baker <s.baker@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Signed-off-by: Steve Baker <s.baker@slack-corp.com>
@codecov-commenter

codecov-commenter commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.92308% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.51%. Comparing base (dd873af) to head (1cd7a32).

Files with missing lines Patch % Lines
go/external/vtops.go 69.33% 23 Missing ⚠️
go/durability/slack_cross_cell.go 96.55% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           slack-22.0     #868      +/-   ##
==============================================
- Coverage       69.52%   69.51%   -0.01%     
==============================================
  Files            1606     1608       +2     
  Lines          214357   214461     +104     
==============================================
+ Hits           149021   149086      +65     
- Misses          65336    65375      +39     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

sbaker617 and others added 2 commits June 3, 2026 12:53
The removal of GOPRIVATE/GH_ACCESS_TOKEN left empty env: mappings and
empty with: blocks that are invalid YAML, causing GitHub Actions to
fail to parse the workflow files.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Signed-off-by: Steve Baker <s.baker@slack-corp.com>
The upgrade/downgrade tests check out an older release that still has
vitess-addons in its go.mod. Since we no longer have auth to the
private repo, use go mod edit -droprequire to strip the dep before
downloading. Also fixes empty env: and with: blocks from previous
cleanup.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Signed-off-by: Steve Baker <s.baker@slack-corp.com>
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.

2 participants