Skip to content

Add additional checks in CI#109

Merged
bjosv merged 3 commits into
valkey-io:mainfrom
Nordix:add-ci-checks
Mar 11, 2026
Merged

Add additional checks in CI#109
bjosv merged 3 commits into
valkey-io:mainfrom
Nordix:add-ci-checks

Conversation

@bjosv
Copy link
Copy Markdown
Collaborator

@bjosv bjosv commented Mar 9, 2026

Verify that code formatting is correct, and that go.mod and generated code are up to date and committed.
Includes a correction of code formatting in an e2e test.

bjosv added 3 commits March 9, 2026 13:26
Verify that code formatting is correct and that go.mod and
generated code are up to date and committed.

Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
- name: Clone the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we add these steps as part of pre commit git hook instead of running on CICD. just thinking. if we added prehook it will not allow to commit at all.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm in favour of adding the checks in both places. Users can skip pre-commit checks with --no-verify, so we would still need CI checks to validate on the server side.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Isn't the pre-commit hook a local-only setup, i.e. a contributor need to perform additional steps to set it up?
..or is it possible to enforce it these days?

Copy link
Copy Markdown
Collaborator

@jdheyburn jdheyburn left a comment

Choose a reason for hiding this comment

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

It would be useful to have these checks in a pre-commit that developers could set up to improve DX (not waiting for failed CI builds remotely). Thanks for raising this!

@bjosv bjosv merged commit 04fb400 into valkey-io:main Mar 11, 2026
7 checks passed
@bjosv
Copy link
Copy Markdown
Collaborator Author

bjosv commented Mar 11, 2026

It would be useful to have these checks in a pre-commit that developers ..

Sounds good, I added #111 to track it.

@bjosv bjosv deleted the add-ci-checks branch March 11, 2026 10:15
@bjosv
Copy link
Copy Markdown
Collaborator Author

bjosv commented Mar 11, 2026

Triggered #112

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