Skip to content

chore: bump omni to pick up trailing-comma tolerance#30

Merged
h3n4l merged 2 commits intomainfrom
bump-omni-trailing-comma
May 10, 2026
Merged

chore: bump omni to pick up trailing-comma tolerance#30
h3n4l merged 2 commits intomainfrom
bump-omni-trailing-comma

Conversation

@h3n4l
Copy link
Copy Markdown
Member

@h3n4l h3n4l commented May 9, 2026

Summary

  • Bumps github.com/bytebase/omni from v0.0.0-20260402100940-de2123e1bfb3 to v0.0.0-20260509021101-01140a7b9722.
  • Picks up bytebase/omni#127 — the mongo parser now accepts a single trailing comma in argument lists (mongosh / JS ES2017+ behavior).

After this lands, gomongo will accept statements like:

db.processed_files.find({user_id: "..."},).sort({created_at: -1})

Previously these failed with expected ,, got ")". The wild gomongoFallback telemetry shows 6 such statements falling back to mongosh; all 6 now parse cleanly through gomongo with this bump.

Changes

  • go.mod: omni version bump
  • go.sum: hash update

No gomongo source code changes.

Test plan

  • go build ./... clean
  • go mod tidy produces no further changes
  • All 6 trailing-comma statements from the gomongoFallback telemetry now parse cleanly through gomongo against this omni (verified via the harness — 5/6 then hit the deferred $sort: "-1" string-coercion issue at execution, which is expected and tracked separately)

🤖 Generated with Claude Code

Picks up bytebase/omni#127 — the mongo parser now accepts a single
trailing comma in argument lists (matching mongosh / JS ES2017+
behavior). With this bump, statements of the form
`db.coll.find({…},).sort({…})` parse cleanly through gomongo instead
of erroring with `expected ,, got ")"`.

No gomongo source changes — go.mod / go.sum bump only.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 9, 2026 08:52
@h3n4l h3n4l requested a review from a team as a code owner May 9, 2026 08:52
@d-bytebase d-bytebase requested a review from rebelice May 9, 2026 08:53
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

Bumps github.com/bytebase/omni to pick up upstream Mongo shell parser support for a single trailing comma in argument lists (mongosh / ES2017+ behavior), reducing fallbacks on otherwise-valid statements.

Changes:

  • Update github.com/bytebase/omni pseudo-version in go.mod.
  • Refresh corresponding go.sum entries for the updated omni version.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
go.mod Bumps github.com/bytebase/omni to a newer pseudo-version that includes trailing-comma tolerance.
go.sum Updates checksum entries to match the bumped omni version.

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

Comment thread go.mod
The omni bump in the previous commit pulls in a transitive closure that
requires Go ≥ 1.25.7. `go mod tidy` raises the main module's go directive
accordingly, which CI verifies. Reverting it manually to 1.25.5 caused
both the test job's tidy-diff check and the golangci-lint context loader
to fail.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@h3n4l h3n4l merged commit 8526a44 into main May 10, 2026
2 checks passed
@h3n4l h3n4l deleted the bump-omni-trailing-comma branch May 10, 2026 19:29
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