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

Refactor CI for postgres #3389

Closed
wants to merge 19 commits into from
Closed

Conversation

ChrisLR
Copy link
Contributor

@ChrisLR ChrisLR commented Jan 2, 2024

Brief overview of PR changes/additions

PSQL tests usually fail after 30 minutes, looking at the actions file I saw the pg version is very outdated.

Motivation for adding to Evennia

Fixing the CI

Other info (issues closed, discussion etc)

Copy link
Member

@Griatch Griatch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A commendable effort (it's really weird that the CI builds fail so often, but not always, they seem very slow so they time out).
However:

  • This PR removes testing for python 3.10 + postgresql
  • The postgresql+3.11 tests added here is still not working in CI.

We test with an old version of Postgres because this is the minimim version supported by Django. If you have any other ideas for how to improve the postgresql tests I'm all ears though!

@ChrisLR
Copy link
Contributor Author

ChrisLR commented Jan 8, 2024

@Griatch the only change worth keeping so far is using postgres by declaring it in services instead of using another action, it should let us provide a conf to postgres more easily, I did research a few ways to make the tests faster, using one or a few parameters mentioned here

https://www.postgresql.org/docs/current/non-durability.html

However I don't understand why the pg tests would be that slow compared to other databases so I would have to investigate more.

@ChrisLR
Copy link
Contributor Author

ChrisLR commented Jan 8, 2024

Its on the TODO pile, I'll come back to it 😅

@Griatch
Copy link
Member

Griatch commented Jan 28, 2024

Ping. :)

@Griatch
Copy link
Member

Griatch commented Mar 8, 2024

@ChrisLR Another ping

@ChrisLR ChrisLR changed the title Increment CI pg version Refactor CI for postgres Mar 8, 2024
@ChrisLR
Copy link
Contributor Author

ChrisLR commented Mar 8, 2024

@Griatch Still experimenting, unsure why having the two pg tests run in parallel makes one of them fail while one after the other works

@Griatch
Copy link
Member

Griatch commented Mar 21, 2024

@ChrisLR Added Python3.12 to the CI matrix, and the postgres issue remains 😞

@ChrisLR
Copy link
Contributor Author

ChrisLR commented Mar 22, 2024

@Griatch using the code from this PR ? :(

@Griatch
Copy link
Member

Griatch commented Mar 22, 2024

Nono, just adding a data point since you were looking at this.

@ChrisLR
Copy link
Contributor Author

ChrisLR commented Mar 22, 2024

@Griatch 😌 great, so there's a chance this PR is sufficient, I will add 3.12 to it and see

@Griatch
Copy link
Member

Griatch commented Apr 27, 2024

@ChrisLR This is still marked as a Draft. Is this still being worked on?

@ChrisLR
Copy link
Contributor Author

ChrisLR commented May 6, 2024

@Griatch sorry about the delay, yes this is still on my plate.

# Conflicts:
#	.github/workflows/github_action_test_suite.yml
@ChrisLR ChrisLR closed this May 16, 2024
@ChrisLR
Copy link
Contributor Author

ChrisLR commented May 16, 2024

No longer worked after resolving conflicts.
It likely didn't solve the root issue.
Closing for now.

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.

None yet

2 participants