Skip to content

chore: update to Go 1.25.6 and coder/preview to 1.08 (cherry 2.29)#23228

Merged
f0ssel merged 7 commits intorelease/2.29from
cherry/2.29_preview_update
Mar 25, 2026
Merged

chore: update to Go 1.25.6 and coder/preview to 1.08 (cherry 2.29)#23228
f0ssel merged 7 commits intorelease/2.29from
cherry/2.29_preview_update

Conversation

@Emyrk
Copy link
Member

@Emyrk Emyrk commented Mar 18, 2026

  • Update Go version from 1.24.11 to 1.25.6
  • Remove dependency on moby for namesgenerator
  • Disable any use of trivy in zizmor GH action linting (17532ef)

(cherry picked from commit 3ee4f6d)
(cherry picked from commit 091d312)
(cherry picked from commit b44a421)

- Update Go version from 1.24.11 to 1.25.6
- Update go.mod to specify Go 1.25.6
- Update GitHub Actions setup-go default version
- Update dogfood Dockerfile with new Go version and SHA256 checksum

🤖 Generated with [Claude Code](https://claude.com/claude-code) via
[Coder
Task](https://dev.coder.com/tasks/danny/42dcc0b6-17e1-4caf-bb44-8d6c8f346bef)

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
(cherry picked from commit 3ee4f6d)
zedkipp and others added 2 commits March 18, 2026 09:51
…21377)

Replace the external moby/moby/pkg/namesgenerator dependency with an
internal implementation using gofakeit/v7. The moby package has ~25k
unique name combinations, and with its retry parameter only adds a
random digit 0-9, giving ~250k possibilities. In parallel tests, this
has led to collisions (flakes).

The new internal API at coderd/util/namesgenerator eliminates the
external dependnecy and offers functions with explicit uniqueness
guarantees. This PR also consolidates fragmented name generation in a
few places to use the new package.

| Old (moby/moby)                     | New                    |
|-------------------------------------|------------------------|
| namesgenerator.GetRandomName(0)     | NameWith("_")          |
| namesgenerator.GetRandomName(>0)    | NameDigitWith("_")     |
| testutil.GetRandomName(t)           | UniqueName()           |
| testutil.GetRandomNameHyphenated(t) | UniqueNameWith("-")    |

namesgenerator package API:
- NameWith(delim): random name, not unique
- NameDigitWith(delim): random name with 1-9 suffix, not unique
- UniqueName(): guaranteed unique via atomic counter
- UniqueNameWith(delim): unique with custom delimiter

Names continue to be docker style `[adjective][delim][surname]`. Unique
names are truncated to 32 characters (preserving the numeric suffix) to
fit common name length limits in Coder.

Related test flakes:
coder/internal#1212
coder/internal#118
coder/internal#1068

(cherry picked from commit 091d312)
@Emyrk Emyrk changed the title chore: update to Go 1.25.6 (#21693) chore: update to Go 1.25.6 and coder/preview to 1.08 (cherry 2.29) Mar 18, 2026
@Emyrk Emyrk force-pushed the cherry/2.29_preview_update branch 3 times, most recently from 0af1bd0 to f8ec178 Compare March 18, 2026 21:11
@Emyrk Emyrk force-pushed the cherry/2.29_preview_update branch from f8ec178 to cbf32b5 Compare March 18, 2026 21:16
@Emyrk Emyrk force-pushed the cherry/2.29_preview_update branch from 81d2c00 to 3c26612 Compare March 19, 2026 14:24
@Emyrk Emyrk marked this pull request as ready for review March 23, 2026 20:52
@Emyrk Emyrk requested a review from jdomeracki-coder as a code owner March 23, 2026 20:52
@f0ssel f0ssel merged commit dc7be5f into release/2.29 Mar 25, 2026
71 of 79 checks passed
@f0ssel f0ssel deleted the cherry/2.29_preview_update branch March 25, 2026 19:47
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants