Skip to content

Conversation

@tstirrat15
Copy link
Contributor

Part of parting out #2455

Description

This is the last component of #2455, with the exception of enabling the linters and fixing the garbage collection test. We're getting very close.

Changes

See comments

Testing

Review. See that tests pass.

@tstirrat15 tstirrat15 requested a review from a team as a code owner October 29, 2025 19:55
@github-actions github-actions bot added area/cli Affects the command line area/schema Affects the Schema Language area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Oct 29, 2025
@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

❌ Patch coverage is 80.64516% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.41%. Comparing base (bea31ec) to head (b0ca9c1).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pkg/cmd/server/server.go 50.00% 2 Missing ⚠️
internal/datastore/postgres/xid8.go 0.00% 1 Missing ⚠️
pkg/cmd/datastore/datastore.go 75.00% 1 Missing ⚠️
pkg/composableschemadsl/lexer/lex_def.go 80.00% 1 Missing ⚠️
pkg/schemadsl/lexer/lex_def.go 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2668      +/-   ##
==========================================
- Coverage   79.43%   79.41%   -0.01%     
==========================================
  Files         455      455              
  Lines       47156    47159       +3     
==========================================
- Hits        37455    37448       -7     
- Misses       6945     6957      +12     
+ Partials     2756     2754       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor Author

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

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

See comments


runErrCh := make(chan error, 1)
go func() {
require.NoError(t, srv.Run(ctx))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked to make sure that this test still runs, and it appears to.

Copy link
Contributor

Choose a reason for hiding this comment

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

what do you mean by that? why would this test not be running?

Comment on lines -1356 to +1357
if fd.Kind() == protoreflect.MessageKind {
if fd.IsList() {
l := v.List()
for i := 0; i < l.Len(); i++ {
filterSourcePositions(l.Get(i).Message())
}
} else if fd.IsMap() {
m := v.Map()
m.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool {
filterSourcePositions(v.Message())
return true
})
switch {
case fd.Kind() == protoreflect.MessageKind && fd.IsList():
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This satisfies the linter but also reads a little weird to me - I'm happy to try for a refactor if desired.

@tstirrat15 tstirrat15 added this pull request to the merge queue Oct 30, 2025
github-merge-queue bot pushed a commit that referenced this pull request Oct 30, 2025
Co-authored-by: James Thomas <[email protected]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 30, 2025
@tstirrat15 tstirrat15 added this pull request to the merge queue Oct 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 30, 2025
@tstirrat15 tstirrat15 added this pull request to the merge queue Oct 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 30, 2025
@tstirrat15 tstirrat15 enabled auto-merge October 30, 2025 21:45
@tstirrat15 tstirrat15 added this pull request to the merge queue Oct 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 30, 2025
@tstirrat15 tstirrat15 added this pull request to the merge queue Oct 30, 2025
Merged via the queue into main with commit ce17b29 Oct 30, 2025
47 checks passed
@tstirrat15 tstirrat15 deleted the lint-fixes-part-12 branch October 30, 2025 22:25
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/cli Affects the command line area/datastore Affects the storage system area/schema Affects the Schema Language area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants