fix: atomic counter increment + gitignore overhaul (GH#2067)#2123
Merged
steveyegge merged 2 commits intomainfrom Feb 26, 2026
Merged
fix: atomic counter increment + gitignore overhaul (GH#2067)#2123steveyegge merged 2 commits intomainfrom
steveyegge merged 2 commits intomainfrom
Conversation
Apply changes from PR #2067 (follow-up to GH#2002 counter-mode review by gm2211): - Replace read-increment-write pattern in nextCounterIDTx with atomic UPDATE SET last_id = last_id + 1 to prevent duplicate IDs under concurrent transactions - Overhaul .beads/.gitignore with fork protection warning, legacy file cleanup patterns, and reorganized sections - Add nolint:gosec annotations for legitimate dynamic path usage - Fix unchecked error returns (logFile.Close, rows.Close, os.RemoveAll) - Clean up const block alignment in dolt.go Co-authored-by: gm2211 <gm2211@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
❌ 1 Tests Failed:
View the full list of 1 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix-merge of PR #2067 (follow-up to GH#2002 counter-mode review by @gm2211), which had merge conflicts with current main.
nextCounterIDTxwith atomicUPDATE SET last_id = last_id + 1to prevent duplicate issue IDs under concurrent transactions (GH#2002).beads/.gitignoreoverhaul: Reorganized sections, added fork protection warning against negation patterns, added legacy file cleanup patterns (daemon logs, JSONL sync files)nolint:gosecannotations for legitimate dynamic path usage across doltserver, migrations, testutil, and scriptslogFile.Close(),rows.Close(), andos.RemoveAllreturnsdolt.goChanges from PR #2067 that were already on main (via prior merges) and skipped:
doltServerConfigsignature cleanup (readOnly parameter removal)doctor_test.goPlatform map alignmentmigration.gotrailing newline removalgitignore_test.gocomment alignmentdoltserverprocess-group refactoring (setDetachedProcessGroup->procAttrDetached)sysproc_unix.go/sysproc_windows.go(superseded bydoltserver_unix.go/doltserver_windows.go)Closes #2067
Test plan
go build ./...passesgo vet ./cmd/bd/passesTestCreateIssue_CounterMode,TestCounterMode_SeedsFromExistingIssues,TestCounterMode_NoExistingIssues, etc.)Co-authored-by: gm2211 gm2211@users.noreply.github.com
🤖 Generated with Claude Code