Skip to content

Migrate Go module path from openark to proxysql#25

Merged
renecannao merged 1 commit intomasterfrom
issue17-module-path-migration
Mar 23, 2026
Merged

Migrate Go module path from openark to proxysql#25
renecannao merged 1 commit intomasterfrom
issue17-module-path-migration

Conversation

@renecannao
Copy link
Copy Markdown

Summary

  • Update Go module path from github.com/openark/orchestrator to github.com/proxysql/orchestrator
  • Update golib import path from github.com/openark/golib to github.com/proxysql/golib
  • Update go/golib/go.mod module declaration to github.com/proxysql/golib
  • Replace all import paths across 82+ Go source files under go/
  • Re-vendor dependencies with go mod tidy && go mod vendor

Closes #17

Test plan

  • go build -o /dev/null go/cmd/orchestrator/main.go succeeds
  • go test -vet=off ./go/... all tests pass (vet failures are pre-existing, unrelated to this change)
  • No stale github.com/openark/orchestrator or github.com/openark/golib references remain in Go source files (excluding vendor)

Update module path from github.com/openark/orchestrator to
github.com/proxysql/orchestrator, and github.com/openark/golib to
github.com/proxysql/golib, across go.mod, go/golib/go.mod, and all
Go source files. Re-vendored dependencies.

Closes #17
Copilot AI review requested due to automatic review settings March 23, 2026 22:43
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 23, 2026

Warning

Rate limit exceeded

@renecannao has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 4 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e695ebbd-585c-4986-a115-e3e844ff053b

📥 Commits

Reviewing files that changed from the base of the PR and between 5d2170b and 7832001.

📒 Files selected for processing (108)
  • go.mod
  • go/agent/agent.go
  • go/agent/agent_dao.go
  • go/agent/instance_topology_agent.go
  • go/app/cli.go
  • go/app/cli_test.go
  • go/app/command_help.go
  • go/app/http.go
  • go/attributes/attributes_dao.go
  • go/cmd/orchestrator/main.go
  • go/collection/collection.go
  • go/config/config.go
  • go/config/config_test.go
  • go/db/db.go
  • go/db/tls.go
  • go/discovery/aggregated.go
  • go/discovery/metric.go
  • go/discovery/metric_json.go
  • go/discovery/queue.go
  • go/discovery/queue_aggregated_stats.go
  • go/golib/go.mod
  • go/golib/sqlutils/sqlutils.go
  • go/http/agents_api.go
  • go/http/api.go
  • go/http/api_test.go
  • go/http/httpbase.go
  • go/http/raft_reverse_proxy.go
  • go/http/web.go
  • go/inst/analysis.go
  • go/inst/analysis_dao.go
  • go/inst/analysis_test.go
  • go/inst/audit_dao.go
  • go/inst/binlog_test.go
  • go/inst/candidate_database_instance.go
  • go/inst/candidate_database_instance_dao.go
  • go/inst/cluster.go
  • go/inst/cluster_alias_dao.go
  • go/inst/cluster_domain_dao.go
  • go/inst/cluster_test.go
  • go/inst/dead_instance_filter.go
  • go/inst/downtime.go
  • go/inst/downtime_dao.go
  • go/inst/instance.go
  • go/inst/instance_binlog.go
  • go/inst/instance_binlog_dao.go
  • go/inst/instance_dao.go
  • go/inst/instance_dao_test.go
  • go/inst/instance_key.go
  • go/inst/instance_key_map_test.go
  • go/inst/instance_key_test.go
  • go/inst/instance_test.go
  • go/inst/instance_topology.go
  • go/inst/instance_topology_dao.go
  • go/inst/instance_topology_dao_test.go
  • go/inst/instance_topology_test.go
  • go/inst/maintenance.go
  • go/inst/maintenance_dao.go
  • go/inst/master_equivalence_dao.go
  • go/inst/oracle_gtid_set_test.go
  • go/inst/pool.go
  • go/inst/pool_dao.go
  • go/inst/postponed_functions.go
  • go/inst/resolve.go
  • go/inst/resolve_dao.go
  • go/inst/tag_dao.go
  • go/inst/tag_test.go
  • go/inst/write_buffer.go
  • go/kv/consul.go
  • go/kv/consul_test.go
  • go/kv/consul_txn.go
  • go/kv/consul_txn_test.go
  • go/kv/internal.go
  • go/kv/kv.go
  • go/kv/zk.go
  • go/logic/command_applier.go
  • go/logic/disable_recovery.go
  • go/logic/orchestrator.go
  • go/logic/snapshot_data.go
  • go/logic/topology_recovery.go
  • go/logic/topology_recovery_dao.go
  • go/metrics/graphite.go
  • go/metrics/metrics.go
  • go/metrics/query/aggregated.go
  • go/os/process.go
  • go/os/unixcheck.go
  • go/process/access_token_dao.go
  • go/process/election_dao.go
  • go/process/health.go
  • go/process/health_dao.go
  • go/process/host.go
  • go/raft/file_snapshot.go
  • go/raft/fsm.go
  • go/raft/http_client.go
  • go/raft/raft.go
  • go/raft/rel_store.go
  • go/raft/store.go
  • go/ssl/ssl.go
  • go/ssl/ssl_test.go
  • go/util/token_test.go
  • vendor/github.com/mattn/go-sqlite3/sqlite3_opt_percentile.go
  • vendor/github.com/proxysql/golib/log/log.go
  • vendor/github.com/proxysql/golib/math/math.go
  • vendor/github.com/proxysql/golib/sqlutils/dialect.go
  • vendor/github.com/proxysql/golib/sqlutils/sqlite_dialect.go
  • vendor/github.com/proxysql/golib/sqlutils/sqlutils.go
  • vendor/github.com/proxysql/golib/tests/spec.go
  • vendor/github.com/proxysql/golib/util/text.go
  • vendor/modules.txt
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue17-module-path-migration

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 and usage tips.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request executes a significant refactoring by migrating the project's Go module paths from the openark organization to proxysql. This change impacts the main orchestrator module and its internal golib dependency, requiring updates across numerous source files and the vendored dependencies. The primary purpose is to align the project with its new organizational identity, ensuring consistency in module and import paths throughout the codebase.

Highlights

  • Go Module Path Update: The main Go module path has been updated from github.com/openark/orchestrator to github.com/proxysql/orchestrator.
  • Golib Import Path Migration: The golib import path has been updated from github.com/openark/golib to github.com/proxysql/golib.
  • Internal Module Declaration: The go/golib/go.mod module declaration was updated to reflect github.com/proxysql/golib.
  • Widespread Import Path Replacement: All import paths across over 82 Go source files under go/ have been replaced to reflect the new module paths.
  • Dependency Re-vendoring: Dependencies were re-vendored using go mod tidy && go mod vendor to align with the new module structure.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the Go module path from github.com/openark/orchestrator to github.com/proxysql/orchestrator, and github.com/openark/golib to github.com/proxysql/golib. This is a large but straightforward find-and-replace operation across many files, including updating import paths and URLs in comments. The changes appear to be correct and complete according to the PR's goal. I have not found any issues.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the repository’s Go module and import paths from the legacy github.com/openark/... namespace to github.com/proxysql/..., updating both the main module and the local go/golib dependency, and regenerating vendored dependencies to match.

Changes:

  • Update root go.mod module path to github.com/proxysql/orchestrator and rewrite imports across Go packages under go/.
  • Migrate golib imports to github.com/proxysql/golib, update go/golib/go.mod, and adjust vendoring metadata accordingly.
  • Re-vendor dependencies, adding the vendor/github.com/proxysql/golib/... tree and updating vendor/modules.txt.

Reviewed changes

Copilot reviewed 99 out of 108 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
go.mod Switch main module path and update golib require/replace for migration
go/agent/agent.go Update internal import path to proxysql module
go/agent/agent_dao.go Update orchestrator/golib imports to proxysql paths
go/agent/instance_topology_agent.go Update golib/orchestrator imports to proxysql paths
go/app/cli.go Update orchestrator/golib imports to proxysql paths
go/app/cli_test.go Update golib/orchestrator imports to proxysql paths
go/app/command_help.go Update repository URL in header comment
go/app/http.go Update orchestrator/golib imports to proxysql paths
go/attributes/attributes_dao.go Update golib/orchestrator imports to proxysql paths
go/cmd/orchestrator/main.go Update orchestrator/golib imports to proxysql paths
go/collection/collection.go Update commented golib import + config import path
go/config/config.go Update golib import path
go/config/config_test.go Update golib imports to proxysql paths
go/db/db.go Update golib/config imports to proxysql paths
go/db/tls.go Update golib/config/ssl imports to proxysql paths
go/discovery/aggregated.go Update collection import path
go/discovery/metric.go Update inst import path
go/discovery/metric_json.go Update collection import path
go/discovery/queue.go Update golib/config/inst imports to proxysql paths
go/discovery/queue_aggregated_stats.go Update golib import path
go/golib/go.mod Set golib module path under proxysql namespace
go/golib/sqlutils/sqlutils.go Update golib/log import path
go/http/agents_api.go Update orchestrator imports to proxysql paths
go/http/api.go Update golib/util + orchestrator imports to proxysql paths
go/http/api_test.go Update golib/config imports to proxysql paths
go/http/httpbase.go Update orchestrator imports to proxysql paths
go/http/raft_reverse_proxy.go Update golib + raft imports to proxysql paths
go/http/web.go Update config/inst imports to proxysql paths
go/inst/analysis.go Update config import path
go/inst/analysis_dao.go Update golib + orchestrator imports to proxysql paths
go/inst/analysis_test.go Update golib/config imports to proxysql paths
go/inst/audit_dao.go Update golib + config/db imports to proxysql paths
go/inst/binlog_test.go Update golib/config imports to proxysql paths
go/inst/candidate_database_instance.go Update db import path
go/inst/candidate_database_instance_dao.go Update golib/sqlutils + config/db imports
go/inst/cluster.go Update config/kv imports to proxysql paths
go/inst/cluster_alias_dao.go Update golib/sqlutils + config/db imports
go/inst/cluster_domain_dao.go Update golib + config/db imports
go/inst/cluster_test.go Update golib/config imports to proxysql paths
go/inst/dead_instance_filter.go Update golib/config imports to proxysql paths
go/inst/downtime.go Update config import path
go/inst/downtime_dao.go Update golib/sqlutils + config/db imports
go/inst/instance.go Update golib + config imports to proxysql paths
go/inst/instance_binlog.go Update golib + config imports to proxysql paths
go/inst/instance_binlog_dao.go Update golib/sqlutils + config/db imports
go/inst/instance_dao.go Update golib + orchestrator imports to proxysql paths
go/inst/instance_dao_test.go Update golib/tests import to proxysql path
go/inst/instance_key.go Update config import path
go/inst/instance_key_map_test.go Update golib/config imports to proxysql paths
go/inst/instance_key_test.go Update golib/config imports to proxysql paths
go/inst/instance_test.go Update golib/config imports to proxysql paths
go/inst/instance_topology.go Update golib + config/os imports to proxysql paths
go/inst/instance_topology_dao.go Update golib/sqlutils + config/db/util imports
go/inst/instance_topology_dao_test.go Update golib/config imports to proxysql paths
go/inst/instance_topology_test.go Update golib/config imports to proxysql paths
go/inst/maintenance.go Update config import path
go/inst/maintenance_dao.go Update golib/sqlutils + config/db/process/util imports
go/inst/master_equivalence_dao.go Update golib/sqlutils + config/db imports
go/inst/oracle_gtid_set_test.go Update golib/tests import to proxysql path
go/inst/pool.go Update golib/config imports to proxysql paths
go/inst/pool_dao.go Update golib/sqlutils + config/db imports
go/inst/postponed_functions.go Update golib import path
go/inst/resolve.go Update golib/config imports to proxysql paths
go/inst/resolve_dao.go Update golib/sqlutils + config/db imports
go/inst/tag_dao.go Update golib/sqlutils + db imports
go/inst/tag_test.go Update golib/tests import to proxysql path
go/inst/write_buffer.go Update collection/config imports to proxysql paths
go/kv/consul.go Update config + golib imports to proxysql paths
go/kv/consul_test.go Update issue link in comment to proxysql repo
go/kv/consul_txn.go Update config + golib imports to proxysql paths
go/kv/consul_txn_test.go Update config import path
go/kv/internal.go Update golib/sqlutils + db imports
go/kv/kv.go Update config import path
go/kv/zk.go Update config import path
go/logic/command_applier.go Update orchestrator + golib imports
go/logic/disable_recovery.go Update golib/sqlutils + db imports
go/logic/orchestrator.go Update orchestrator + golib imports
go/logic/snapshot_data.go Update orchestrator + golib imports
go/logic/topology_recovery.go Update orchestrator + golib imports + issue link comment
go/logic/topology_recovery_dao.go Update orchestrator + golib imports
go/metrics/graphite.go Update orchestrator + golib imports
go/metrics/metrics.go Update config import path
go/metrics/query/aggregated.go Update collection import path
go/os/process.go Update golib/config imports
go/os/unixcheck.go Update golib import path
go/process/access_token_dao.go Update golib/sqlutils + orchestrator imports
go/process/election_dao.go Update golib/sqlutils + orchestrator imports
go/process/health.go Update orchestrator + golib imports
go/process/health_dao.go Update orchestrator + golib imports
go/process/host.go Update golib import path
go/raft/file_snapshot.go Update golib import path
go/raft/fsm.go Update golib import path
go/raft/http_client.go Update orchestrator + golib imports
go/raft/raft.go Update orchestrator + golib imports
go/raft/rel_store.go Update golib/sqlutils imports
go/raft/store.go Update golib import path
go/ssl/ssl.go Update golib/config imports
go/ssl/ssl_test.go Update config/ssl imports
go/util/token_test.go Update golib/tests import to proxysql path
vendor/modules.txt Update vendoring metadata from openark/golib to proxysql/golib
vendor/github.com/mattn/go-sqlite3/sqlite3_opt_percentile.go Add vendored build-tag file (from re-vendor)
vendor/github.com/proxysql/golib/log/log.go Add vendored proxysql/golib logging package
vendor/github.com/proxysql/golib/math/math.go Add vendored proxysql/golib math helpers
vendor/github.com/proxysql/golib/sqlutils/dialect.go Add vendored proxysql/golib sqlutils dialect helpers
vendor/github.com/proxysql/golib/sqlutils/sqlite_dialect.go Add vendored proxysql/golib sqlite dialect translations
vendor/github.com/proxysql/golib/sqlutils/sqlutils.go Update vendored sqlutils import path to proxysql/golib/log
vendor/github.com/proxysql/golib/tests/spec.go Add vendored test helper (contains minor comment typos)
vendor/github.com/proxysql/golib/util/text.go Add vendored proxysql/golib util helpers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread go/golib/go.mod
@@ -1,3 +1,3 @@
module golib
module github.com/proxysql/golib
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go/golib is a subdirectory module within this repo, but its module path is set to github.com/proxysql/golib (implying a separate repository). If the intent is to keep this as an in-repo module, consider changing the module path to github.com/proxysql/orchestrator/go/golib to match the directory layout and avoid requiring an external proxysql/golib module for downstream builds.

Suggested change
module github.com/proxysql/golib
module github.com/proxysql/orchestrator/go/golib

Copilot uses AI. Check for mistakes.
Comment thread go.mod
Comment on lines 20 to 22
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/proxysql/golib v0.0.0-20210531070646-355f37940af8
github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github.com/proxysql/golib is required here, but the codebase also vendors and replaces it from ./go/golib. If go/golib is intended to remain an in-repo submodule (no separate proxysql/golib repo), consider switching imports/require to github.com/proxysql/orchestrator/go/golib so downstream users of github.com/proxysql/orchestrator (as a dependency) don’t need an external github.com/proxysql/golib module.

Copilot uses AI. Check for mistakes.
Comment thread go.mod
replace (
github.com/hashicorp/raft => github.com/openark/raft v0.0.0-20170918052300-fba9f909f7fe
github.com/openark/golib => ./go/golib
github.com/proxysql/golib => ./go/golib
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This replace github.com/proxysql/golib => ./go/golib only applies when this repo is the main module; it won’t be honored when github.com/proxysql/orchestrator is used as a library dependency. If library consumption matters, either (a) make golib’s module path a subpath of this repo (e.g. github.com/proxysql/orchestrator/go/golib) and update imports accordingly, or (b) ensure github.com/proxysql/golib is a real standalone module published at the required version(s).

Suggested change
github.com/proxysql/golib => ./go/golib

Copilot uses AI. Check for mistakes.
@renecannao renecannao merged commit a3af992 into master Mar 23, 2026
6 of 8 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.

Go module path migration

2 participants