Skip to content

Update CI values - #147

Merged
torcolvin merged 3 commits into
mainfrom
ci-update
Jun 24, 2026
Merged

Update CI values#147
torcolvin merged 3 commits into
mainfrom
ci-update

Conversation

@torcolvin

@torcolvin torcolvin commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

prep for picking up go 1.25 in an upcoming commit

prereq for #146

add pre-commit support (see couchbase/sync_gateway#8379). Use of this is optional.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates CI/tooling configuration in preparation for a future Go toolchain bump, and introduces optional pre-commit hooks to help keep local formatting/licensing/linting consistent with CI.

Changes:

  • Add .pre-commit-config.yaml with local hooks for addlicense, goimports, and golangci-lint.
  • Refactor .github/workflows/ci.yml to centralize action/tool versions via YAML anchors and bump Go/golangci-lint/test-annotations versions.
  • Add an explanatory comment in views.go about using sort.Sort instead of slices.SortFunc.

Reviewed changes

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

File Description
views.go Adds rationale comment for the chosen in-place sort approach.
.pre-commit-config.yaml Adds optional pre-commit hooks for license headers, imports, and linting.
.github/workflows/ci.yml Centralizes versions and updates Go/lint/test-annotation tooling in CI.

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

Comment thread .pre-commit-config.yaml
Comment thread .github/workflows/ci.yml
Comment on lines +24 to +28
env:
ACTIONS_CHECKOUT_VERSION: &actions_checkout_version actions/checkout@v6
ACTIONS_SETUP_GO_VERSION: &actions_setup_go_version actions/setup-go@v6
GO_VERSION: &go_version 1.26.4
GO_TEST_ANNOTATIONS_VERSION: &go_test_annotations_version guyarb/golang-test-annotations@v0.9.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm OK about this mismatch. I think a lower version is OK for go.mod if we ever have to backport sg-bucket fixes to an older release.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@torcolvin
torcolvin merged commit 612ae3f into main Jun 24, 2026
19 checks passed
@torcolvin
torcolvin deleted the ci-update branch June 24, 2026 13:39
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.

3 participants