Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Test creating default db directory #144

Merged
merged 13 commits into from
Sep 29, 2022
Merged

Conversation

jlegrone
Copy link
Collaborator

@jlegrone jlegrone commented Sep 29, 2022

What changed?

This PR adds test cases for creating the default data directory when it doesn't already exist, returning an error when a custom db path is configured in a missing directory, and starting the server with a custom db path in an existing directory.

I've also removed panic logs in integration tests and increased timeouts in an attempt to decrease test flakiness. This was done with a new --log-format noop flag value.

Why?

This is basic behavior that I believe should be validated with an integration test. The test case for starting Temporal server with a default db path will also catch any breaking change that updates the default path.

How did you test it?

CI

Potential risks

I noticed a whole host of race conditions in the integration tests during development. Most have been quashed, however we should be on the lookout for new flakiness introduced by these test cases.

Is hotfix candidate?

No

@jlegrone jlegrone force-pushed the jlegrone/test-startup-create-dir branch from 3f71021 to 62ba25f Compare September 29, 2022 04:15
@jlegrone jlegrone force-pushed the jlegrone/test-startup-create-dir branch from 625eca5 to 8ce9f21 Compare September 29, 2022 16:49
@jlegrone jlegrone force-pushed the jlegrone/test-startup-create-dir branch from 8ce9f21 to 7ee3016 Compare September 29, 2022 17:00
@jlegrone jlegrone requested a review from cretz September 29, 2022 17:36
@jlegrone jlegrone merged commit f974733 into main Sep 29, 2022
@jlegrone jlegrone deleted the jlegrone/test-startup-create-dir branch September 29, 2022 17:52
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.

None yet

2 participants