Skip to content

flake: TestRemoveOrganizationMembers (multiple variants) #1345

@flake-investigator

Description

@flake-investigator

CI Failure Details

Root Cause Classification

  • Type: Flaky Test (CLI test failure on macOS; failure output missing)
  • Affected package: enterprise/cli
  • Failing tests:
    • TestRemoveOrganizationMembers/OK
    • TestRemoveOrganizationMembers/UserNotExists
    • TestRemoveOrganizationMembers (parent)

Error Evidence

=== FAIL: enterprise/cli TestRemoveOrganizationMembers/OK (unknown)
...
=== FAIL: enterprise/cli TestRemoveOrganizationMembers/UserNotExists (unknown)
...
=== FAIL: enterprise/cli TestRemoveOrganizationMembers (unknown)

sloghuman: failed to write entry: write /dev/ttys002: file already closed

Notes:

  • The test output did not include assertion traces in this run (only the summary and the sloghuman write error above).
  • The CLI requests themselves appeared to succeed (DELETE returned 204), suggesting a flaky CLI logging or I/O issue on macOS rather than API behavior.

Ownership / Assignment

Primary assignment uses test function blame per guidelines.

Relevant test lines:

  • File: enterprise/cli/organizationmembers_test.go
  • Function: TestRemoveOrganizationMembers (subtests "OK" and "UserNotExists") around lines ~20-80

Suggested blame commands:

grep -n "TestRemoveOrganizationMembers" enterprise/cli/organizationmembers_test.go
# -> line ~20

git blame -L 20,90 enterprise/cli/organizationmembers_test.go

Recent change context:

  • git log --oneline --follow enterprise/cli/organizationmembers_test.go shows commit 2c8b264d78 ("chore: remove multi-organization and custom role experiment") by Steven Masley as the most recent substantive change touching this test.

Assigning to Steven Masley (@Emyrk) for triage.

Related Issues

Reproduction

go test ./enterprise/cli -run TestRemoveOrganizationMembers -count=50

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions