Skip to content
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

[IMP] enable database manager #48

Closed
wants to merge 1 commit into from
Closed

Conversation

yajo
Copy link
Member

@yajo yajo commented May 9, 2023

On OCA repos, sometimes there are incompatible modules. Or, at least, modules that introduce pollute others' behaviors.

When doing functional tests of a PR and the DB already contains all addons for the branch, it's easy to find out a bug that really won't be a bug in the current PR, but instead a side effect of another addon in the same repo. Many times, that addon isn't even used in production and the flaky use case is irrelevant.

It's helpful to have the possibility of installing an empty database. This way, only the wanted addons can be installed, and there's less chance for unwanted side-effects.

On a recent real use case that we have recorded, a user lost 30 minutes in the functional review, only to uninstall modules that polluted the one he wanted to test. At the end, there were still failures that we're not sure if belong to the important module.

For these reasons, I'm configuring Odoo runboat instances to have the database manager enabled by default, with a standard password: admin.

I took the chance to add a couple of good default parameters for any database.

@moduon @rafaelbn

On OCA repos, sometimes there are incompatible modules. Or, at least, modules that introduce pollute others' behaviors.

When doing functional tests of a PR and the DB already contains all addons for the branch, it's easy to find out a bug that really won't be a bug in the current PR, but instead a side effect of another addon in the same repo. Many times, that addon isn't even used in production and the flaky use case is irrelevant.

It's helpful to have the possibility of installing an empty database. This way, only the wanted addons can be installed, and there's less chance for unwanted side-effects.

On a recent real use case that we have recorded, a user lost 30 minutes in the functional review, only to uninstall modules that polluted the one he wanted to test. At the end, there were still failures that we're not sure if belong to the important module.

For these reasons, I'm configuring Odoo runboat instances to have the database manager enabled by default, with a standard password: `admin`.

I took the chance to add a couple of good default parameters for any database.
@sbidoul
Copy link
Member

sbidoul commented May 9, 2023

But then what is going to drop those user-created databases on runboat?

@sbidoul
Copy link
Member

sbidoul commented May 10, 2023

So yeah, I'm -1 on this, as this changes the promises of this image.

If we want a runboat db with only base installed that could be added as a runboat feature.

@sbidoul
Copy link
Member

sbidoul commented May 10, 2023

I created sbidoul/runboat#94 to track this.

@yajo
Copy link
Member Author

yajo commented May 10, 2023

OK, sorry. I assumed the whole postgres pod was volatile too.

@yajo yajo closed this May 10, 2023
@yajo yajo deleted the essential-conf branch May 10, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants