Repository navigation
ci: bump golangci-lint to v2.15.0 in the agent workflows - #230
Merged
Merged
Conversation
v2.12.2 is built with Go 1.26 and refuses to lint a repository whose go.mod targets Go 1.27, so the pre-commit hook failed in every agent run on such a repository.
edenreich
added a commit
to inference-gateway/cli
that referenced
this pull request
Nov 9, 2026
Resolves #1786 ## Summary The computer image ran the whole desktop session with the POSIX locale (ANSI_X3.4-1968), so gnome-terminal-server refused to start and the D-Bus session bus kept re-spawning it with the same broken environment. The image env now sets LANG=C.UTF-8, so the locale is in place before computer/entrypoint.sh starts the session bus and GNOME Shell, and D-Bus-activated apps like gnome-terminal inherit it. ## Changes - computer/Dockerfile: add ENV LANG=C.UTF-8 to the session environment inherited by GNOME Shell, the D-Bus session bus and every process it activates An earlier commit on this branch also set DISPLAY=:0 for X11-only apps. It is removed again: DISPLAY alone does not reach Xwayland, which asks for the session's auth cookie, so an X11 app fails with "Authorization required". Making X11-only apps work needs XAUTHORITY handled and is left for a separate change. ## Verification - Ran the local computer image with and without LANG=C.UTF-8 in its env. Without it, gnome-terminal fails with "Process org.gnome.Terminal exited with status 8". With it, the terminal window opens on the first try. - The value was injected with `docker run -e` into an existing local image, which is equivalent for env but is not a build of this branch. - The pre-commit hook passes on the second commit. The first commit bypassed it because the agent workflow installed a golangci-lint built with Go 1.26, fixed in inference-gateway/.github#230. - The computer image is built and published by CI on the next release, so no manual release step and no other repos are affected. --------- Co-authored-by: inference-gateway-maintainer[bot] <246577062+inference-gateway-maintainer[bot]@users.noreply.github.com> Co-authored-by: Eden Reich <[email protected]>
edenreich
marked this pull request as ready for review
November 9, 2026 23:54
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
infer.ymlandclaude.ymlinstall golangci-lintv2.12.2, which is built with Go 1.26.2. golangci-lint refuses to run on a repository whosego.modtargets a newer Go than it was built with, so oninference-gateway/cli(Go 1.27.3) the pre-commit hook fails in every agent run:The agent on inference-gateway/cli#1788 hit this and committed with
--no-verify. This bumps the pin tov2.15.0, the version the CLI's ownci.ymlalready uses.Changes
.github/workflows/infer.yml- golangci-lintv2.12.2->v2.15.0.github/workflows/claude.yml- the same pinOperational effect
v2.15.0on its next agent run, since callers reference@main. A newer golangci-lint still lints repositories on an older Go, but it can report findings the older version did not.Validation
Not dispatched. The pin is the same value
inference-gateway/cliruns inci.yml, where thelintjob passes against Go 1.27.3. A manual@inferrun on the CLI after merge is the real check.