Skip to content

Need more disambiguation for the SaaS database name #151

@ahsimb

Description

@ahsimb

Currently, a frequent error is caused by creating two databases with the same name, when testing for a matrix of Python versions. An effort should be put in making the DB name unique.

At present, the name looks like this: "1767970322"EMCP-runne

The first 10 characters is the unix timestamp, the next 4 characters is the project code and the rest is the client name, sometimes truncated, as in the above example.

The idea is to shorten the timestamp, for instance use the number of minutes since the start of the year (6 digits, or 5 in hex) and fill the freed space with a randomly generated string.

There are different ways of producing the random string with the highest chance of being unique across different machines. One is to use the VM hash as a seed - the jobs a likely to run on different VMs. Also can get the nanoseconds, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnwanted / harmful behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions