Skip to content

test flake: TestServerDBCrypt #10219

Closed
@datadog-coder-official

Description

@datadog-coder-official

Test execution link: TestServerDBCrypt
Service: coder
Branch: main
Commit: 127f65c98b7f7d900798de66cb2d1bccc3e7ea63
Author: Bruno Quaresma
Configurations:

  • test: gotests.xml

Error:

 Failed

=== RUN   TestServerDBCrypt
    server_dbcrypt_test.go:49: Generating unencrypted data
    server_dbcrypt_test.go:62: Generating data encrypted with cipher A
    dbgen.go:236: 
        	Error Trace:	/home/runner/actions-runner/_work/coder/coder/coderd/database/dbgen/dbgen.go:236
        	            				/home/runner/actions-runner/_work/coder/coder/enterprise/cli/server_dbcrypt_test.go:220
        	            				/home/runner/actions-runner/_work/coder/coder/enterprise/cli/server_dbcrypt_test.go:63
        	Error:      	Received unexpected error:
        	            	pq: duplicate key value violates unique constraint "idx_users_username"
        	Test:       	TestServerDBCrypt
        	Messages:   	insert user
    db.go:163: Dumped database to "/home/runner/actions-runner/_work/coder/coder/enterprise/cli/TestServerDBCrypt.2023105225420.test.sql" due to failed test. I hope you find what you're looking for!
--- FAIL: TestServerDBCrypt (1.08s)

Metadata

Metadata

Assignees

Labels

s4Internal bugs (e.g. test flakes), extreme edge cases, and bug risks

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions