Skip to content

Flaky integration tests in main module  #11

@migmartri

Description

@migmartri

The main module tests relies on Vault launched using testingContainers for integration tests. These seem to be flaky.

Note that we are using testing containers but with PostgreSQL in the backend and we've not noticed any flakiness, so I'd suggest to make sure the healthchecks and retries are properly set in this case.

--- FAIL: TestVaultIntegration (14.17s)
    --- FAIL: TestVaultIntegration/TestDeleteCreds (7.87s)
        keyval_test.go:125: 
            	Error Trace:	/home/runner/work/chainloop/chainloop/internal/credentials/vault/keyval_test.go:125
            	Error:      	Received unexpected error:
            	            	validating client: error writing secret to secret/data//chainloop-healthcheck: context deadline exceeded
            	Test:       	TestVaultIntegration/TestDeleteCreds
FAIL
FAIL	github.com/chainloop-dev/chainloop/internal/credentials/vault	14.177s
ok  	github.com/chainloop-dev/chainloop/internal/ociauth	0.003s
ok  	github.com/chainloop-dev/chainloop/internal/robotaccount/cas	0.035s

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions