Skip to content

seed database used for test suite maybe should live in ./target? #548

Closed

Description

@davepacheco

While debugging #540, I realized that I was running cargo test from two different clones of omicron with the same value of $TMPDIR in my environment, and that they could totally stomp on each other if one of their "build" steps initialized $TMPDIR/crdb-base while the other one's test suite was running trying to create a new database directory from that directory.

If we move the seed directory to ./target, it will at least be scoped to one local clone of Omicron.

Activity

  1. davepacheco commented on Dec 23, 2021

    @davepacheco
    CollaboratorAuthor

    Another reason: it's surprising that cargo clean doesn't remove the seed directory, since that's generated by the build.

    This is obviated for now by #549 but eventually we'll probably want to re-add that and we'll want to address this.

  2. self-assigned this
    on Dec 27, 2021
  3. added a commit that references this issue on Jan 3, 2022
    747bcc8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Testing & Analysis

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions