Skip to content

flake: TestUserSkillAuditDiffTracksContent #1551

@flake-investigator

Description

@flake-investigator

CI Run: https://github.com/coder/coder/actions/runs/26556543979
Job: test-go-pg (windows-2022)
Commit: ca7f07142e83ddb6c9acbeeaca7c6d11a67affe6 (author: Ethan)

Failure:

=== FAIL: enterprise/coderd TestUserSkillAuditDiffTracksContent (1.36s)
    userskills_audit_test.go:80: expected ""; actual "initial"
    userskills_audit_test.go:81: expected "initial"; actual "after"
    userskills_audit_test.go:86: expected ""; actual "---\nname: audit-tracking\ndescription: initial\n---\n\ninitial body\n"
    userskills_audit_test.go:87: expected "---\nname: audit-tracking\ndescription: initial\n---\n\ninitial body\n"; actual "---\nname: audit-tracking\ndescription: after\n---\n\nnew body\n"
    userskills_audit_test.go:93: expected "initial"; actual ""
    userskills_audit_test.go:94: expected "after"; actual "initial"
    userskills_audit_test.go:99: expected initial content; actual ""
    userskills_audit_test.go:100: expected new content; actual initial content

Root cause classification: Flaky test (audit log ordering / diff content mismatch).

Notes:

  • The test assumes rows[1] is the create log and rows[0] is the update log. The observed diffs look swapped, suggesting audit log ordering is non-deterministic in this run.
  • No data race, panic, or OOM indicators in the job logs.

Assignment analysis:

  • git log --oneline -10 --follow enterprise/coderd/userskills_audit_test.go
    • e105e3af45 “test: cover personal skill API” (Michael Suchacz / @ibetitsmike)
      This commit introduced the test and is the most recent meaningful change in the file. Assigning to @ibetitsmike for triage.

Related issues searched (none found):

  • "TestUserSkillAuditDiffTracksContent", "userskills_audit_test", "audit-tracking", "UserSkill" in coder/internal

Reproduction (if needed):

  • go test ./enterprise/coderd -run TestUserSkillAuditDiffTracksContent -count=1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions