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

Add PostgreSQL 11 tests #181

Merged
merged 3 commits into from
Oct 17, 2019
Merged

Conversation

brianhlin
Copy link
Contributor

PG11 wouldn't start without the postgres-11-postgis-2.5-scripts package and this other hack: https://stackoverflow.com/questions/55161807/travis-ci-not-connecting-to-postgresql-11-2.

It looks like the tests themselves are failing with PG11, though. Unfortunately, I'm not familiar enough with Go or the test suite to understand if it's actually a problem or just an issue with the tests :(

@nicpottier
Copy link
Member

Looked into this some and it looks like the problem is that pg11 can't read dumps from pg10 and our mailroom_test.dump

It does look like dumps from 11 work fine in 10 though. So we'll just have to create those there. I'll update this PR with that dump in a sec.

@nicpottier nicpottier merged commit c4c51a4 into rapidpro:master Oct 17, 2019
@rowanseymour
Copy link
Contributor

@nicpottier I'm updating the dump in nyaruka#183 with PG10

@nicpottier
Copy link
Member

Gonna have to be pg11 then to pass both.

@nicpottier
Copy link
Member

Bugger, I was being trigged by the binaries on my dev box. Reverting all this. We're going to test with 10 only on mailroom.

@nicpottier
Copy link
Member

Finally figured out the problem here. Dump needs to be created in 11 and that'll work across 10 and 11. So we are testing both now:
nyaruka#186

Added assertion that the dump is being created in right version here:
nyaruka/rapidpro#2569

rasoro pushed a commit to Ilhasoft/mailroom that referenced this pull request Dec 5, 2024
Don't include templating variables if empty
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.

3 participants