Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Upgrade bolt to bbolt #1631

Merged
merged 4 commits into from
Jun 9, 2021
Merged

Upgrade bolt to bbolt #1631

merged 4 commits into from
Jun 9, 2021

Conversation

izaaklauer
Copy link
Contributor

@izaaklauer izaaklauer commented Jun 9, 2021

Boltdb is no longer maintained, and causes intermittent test failures. Bolt also causes a runtime crash when attempting to run go test with the -race flag.

Etcd's bbolt is api-compatible with boltdb, and it's database file appears to be structurally compatible too. I've tested reading builds, config, deployments, jobs, projects, status reports, and releases created by bolt, and writing and reading new values with bbolt, and it all works as expected.

There are no documented structural incompatibilities or related issues that I've found, and there are examples of other projects doing this successfully.

Note that raft-boltdb chose to perform this upgrade by migrating the database file, but moreso out of an abundance of caution than to work around any specific issues.

Closes #1537

@github-actions github-actions bot added the core label Jun 9, 2021
Copy link
Contributor

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

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

As long as tests pass I approve.

@@ -0,0 +1,3 @@
```release-note:improvement
core: Upgrade from unmaintained `boltdb/bolt` to `etcd-io/bbolt`
Copy link
Contributor

Choose a reason for hiding this comment

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

I almost feel like a changelog entry isn't even required for this change. I usually avoid non-user-impacting changes from the CL.

This reverts commit aff9cf4.
@izaaklauer izaaklauer added the pr/no-changelog No automatic changelog entry required for this pull request label Jun 9, 2021
@izaaklauer izaaklauer merged commit ce6a7bb into main Jun 9, 2021
@izaaklauer izaaklauer deleted the enhancement/bbolt branch June 9, 2021 22:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core pr/no-changelog No automatic changelog entry required for this pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade from bolt to bbolt
2 participants