Skip to content

add ci-normalize tool - #439

Merged
okraport merged 2 commits into
mainfrom
okraport/ci-normalize-tool-flat
Feb 2, 2026
Merged

add ci-normalize tool#439
okraport merged 2 commits into
mainfrom
okraport/ci-normalize-tool-flat

Conversation

@okraport

Copy link
Copy Markdown
Contributor

This is a MVP to get some metrics going into our results bucket, there is likely a lot of things that could be done tidier and will likely need more iteration in the future with expanded coverage.

@okraport
okraport requested review from a team as code owners January 16, 2026 16:35
@socket-security

socket-security Bot commented Jan 16, 2026

Copy link
Copy Markdown

@okraport

Copy link
Copy Markdown
Contributor Author

@okraport
okraport requested a review from rosstimothy January 16, 2026 16:36
Comment thread tools/ci-normalize/cmd/ci-normalize.go Outdated
Comment thread tools/ci-normalize/dispatch/adapter/adapter.go Outdated
Comment thread tools/ci-normalize/encoder/encoder.go Outdated
Comment thread tools/ci-normalize/pkg/writer/s3.go Outdated
Comment thread tools/ci-normalize/pkg/writer/s3.go Outdated
Comment thread tools/ci-normalize/README.md Outdated
Comment thread tools/ci-normalize/dispatch/dispatch.go
Comment thread tools/ci-normalize/pkg/dispatch/dispatch.go Outdated
Comment thread tools/ci-normalize/pkg/dispatch/dispatch.go Outdated
Comment thread tools/ci-normalize/pkg/dispatch/dispatch.go Outdated
@okraport

Copy link
Copy Markdown
Contributor Author

Comment thread tools/ci-normalize/dispatch/dispatch.go Outdated
Comment thread tools/ci-normalize/dispatch/dispatch.go Outdated
Comment on lines +172 to +176
select {
case <-d.ctx.Done():
return d.ctx.Err()
default:
}

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.

Should we teach sw.Write to respect contexts instead of checking once here?

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.

Internally it sw.Write checks the same context, this is just a escape hatch to error early if we already cancelled the context.

Comment thread tools/ci-normalize/dispatch/dispatch.go
Comment thread tools/ci-normalize/dispatch/dispatch.go
Comment thread tools/ci-normalize/dispatch/dispatch.go Outdated
Comment thread tools/ci-normalize/writer/s3.go Outdated
Comment thread tools/ci-normalize/cmd/ci-normalize.go Outdated

@rosstimothy rosstimothy 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.

Looks better but it still feels overly abstracted in some places. I know that you were initially thinking to make this apply to junit files and benchmark tests which may be contributing to the abstractions and complexity. Can we pare this down a bit more?

Comment thread tools/ci-normalize/dispatch/dispatch.go Outdated
Comment thread tools/ci-normalize/dispatch/dispatch.go Outdated
Comment thread tools/ci-normalize/dispatch/adapter/adapter.go Outdated
Comment thread tools/ci-normalize/meta/file_test.go Outdated
Comment on lines +25 to +27
errFn: func(tt require.TestingT, err error, i ...interface{}) {
assert.NoError(tt, err)
},

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.

Did this get reverted?

Comment thread tools/ci-normalize/meta/file_test.go Outdated
Comment thread tools/ci-normalize/input/junit.go Outdated
Comment thread tools/ci-normalize/dispatch/dispatch.go Outdated
Comment thread tools/ci-normalize/dispatch/dispatch.go Outdated
Comment thread tools/ci-normalize/cmd/ci-normalize.go Outdated
Comment thread tools/ci-normalize/dispatch/dispatch.go Outdated
Comment thread tools/ci-normalize/dispatch/dispatch.go Outdated
Comment thread tools/ci-normalize/dispatch/dispatch.go Outdated
@okraport
okraport force-pushed the okraport/ci-normalize-tool-flat branch from 711ecab to 42380b9 Compare January 30, 2026 15:12
@rosstimothy

Copy link
Copy Markdown
Contributor

Could we please get a review from the @gravitational/cloud-team?

@okraport
okraport merged commit 2428a7f into main Feb 2, 2026
12 checks passed
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