Skip to content

ci: bump golangci-lint to v2.15.0 in the agent workflows - #230

Merged
edenreich merged 1 commit into
mainfrom
ci/bump-golangci-lint
Nov 9, 2026
Merged

edenreich merged 1 commit into
mainfrom
ci/bump-golangci-lint

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

infer.yml and claude.yml install golangci-lint v2.12.2, which is built with Go 1.26.2. golangci-lint refuses to run on a repository whose go.mod targets a newer Go than it was built with, so on inference-gateway/cli (Go 1.27.3) the pre-commit hook fails in every agent run:

can't load config: the Go language version (go1.26) used to build golangci-lint is lower than the targeted Go version (1.27.3)

The agent on inference-gateway/cli#1788 hit this and committed with --no-verify. This bumps the pin to v2.15.0, the version the CLI's own ci.yml already uses.

Changes

  • .github/workflows/infer.yml - golangci-lint v2.12.2 -> v2.15.0
  • .github/workflows/claude.yml - the same pin

Operational effect

  • Every Go repository that calls these workflows gets golangci-lint v2.15.0 on 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.
  • No permissions or secrets are touched.

Validation

Not dispatched. The pin is the same value inference-gateway/cli runs in ci.yml, where the lint job passes against Go 1.27.3. A manual @infer run on the CLI after merge is the real check.

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
edenreich marked this pull request as ready for review November 9, 2026 23:54
@edenreich
edenreich merged commit b184978 into main Nov 9, 2026
2 checks passed
@edenreich
edenreich deleted the ci/bump-golangci-lint branch November 9, 2026 23:54
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.

1 participant