-
Notifications
You must be signed in to change notification settings - Fork 0
#14 fixture operational saas database #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#14 fixture operational saas database #27
Conversation
test/integration/api_access.py
Outdated
| def _timestamp_name() -> str: | ||
| username = getpass.getuser() | ||
| timestamp = f'{datetime.now().timestamp():.0f}' | ||
| return f"{username}-{timestamp}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still can break for long user names, we need to shorten it differently. Furthermore, we still should mention from where the DB is from. So, mu suggestion would be something like the following
{Timestamp}{project_short_tag}_{username} and this overall string truncated to length
@tomuben what is the max length for the DB name in SaaS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input_parameter_limits = {
"max_database_name_length": 20, # in characters
"max_cluster_name_length": 40, # in characters
"autostop_min_idle_time": 15, # in minutes
"autostop_max_idle_time": 10000, # in minutes
"autostop_default_idle_time": 120,
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ckunki maybe we put the unshortened name as main cluster name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the other hand, I wonder if the user name is helpful in CI builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, the user name was runner, this would indicate the CI
Closes #14