-
Notifications
You must be signed in to change notification settings - Fork 227
Unable to run CI tests on password-protected DB #3762
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
Comments
@sphuber One question: I see that we are using both this; aiida-core/.github/workflows/ci.yml Lines 99 to 104 in 12f9641
and this aiida-core/.github/workflows/ci.yml Line 118 in 12f9641
Is both necessary? |
One simple fix might just be to switch to using a (hardcoded) password here: aiida-core/.github/workflows/ci.yml Line 104 in 12f9641
Will give this a try |
|
Should this have been closed by #3763? |
No, there are a couple of underlying issues we should still investigate & fix:
|
*SQLAlchemy |
I've updated that point - it was not very clear |
What is the status of this? Is this still an active problem or can this be closed? |
The remaining issues are described here |
So, I have a feeling we may solve this by moving to GitHub Action's |
I've had another look at setting a password on the database for the aiida test profile in #5776 We're now down to this error:
which fails at
This test already fails at the existence check, which has been noticed in #5592 under different circumstances. The existence check could be fixed by switching to the aiida db user credentials here, but deleting the database will inevitably fail [1]. Todo:
[1] Why does the test work with the current |
This is because the test does not operate on the test profile that is being used for the test run, but rather only a completely separate and independent config+profile that is created especially for the test. Maybe this is related to the wrong user being passed and the test failing? |
If I understand correctly, this issue was related to a change in the CI. But since things have been running fine for a long time (and we have changed the CI setup significantly with regards to PostgreSQL) I am closing this. If it is still a problem, please feel free to reopen and update the problem description. |
It seems something changed in the postgresql configuration on github actions:
https://github.com/aiidateam/aiida-core/pull/3760/checks?check_run_id=448911931#step:8:32
E.g. one might expect something like this, if the configuration in the
pg_hba.conf
was changed from "trust" to "md5" (see also here ).The text was updated successfully, but these errors were encountered: