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

Drop support for postgres 9.4 #1617

Merged
merged 1 commit into from Oct 15, 2020

Conversation

wolfgangwalther
Copy link
Member

Postgres 9.4 is EOL since February and #1615 introduces new code, that can be better done without pg 9.4 support. It would make sense to drop pg 9.4 now.

@monacoremo can you have a look at the nix stuff? I just removed everything that looked like 9.4... ;)

@steve-chavez There is a test-suite PgVersion95Spec. I understand this as stuff that is only supported from 9.5 on. Since 9.5 is our minimum version now, we can probably move those tests to other files, where they belong. Correct?

@steve-chavez
Copy link
Member

steve-chavez commented Oct 13, 2020

There is a test-suite PgVersion95Spec. I understand this as stuff that is only supported from 9.5 on. Since 9.5 is our minimum version now, we can probably move those tests to other files, where they belong. Correct?

@wolfgangwalther Yes, in fact I've already done that, I just didn't merge it(#1582): 61a78ab

(I'll split #1582 and merge that part)

@wolfgangwalther
Copy link
Member Author

wolfgangwalther commented Oct 13, 2020

Now this is interesting. nix-test fails with a strange one. The expected output of the failing test is not touched at all in this PR, but it is changed in c9fbcd9 (that's in another PR!). I noticed the same kind of failure earlier today in another PR (merged already), where it was gone on the next build.

I did make a change to the other PR that triggered a rebuild and then opened this PR - so both pipelines were running at the same time. I think what happens is:

  • PR 1 runs nix-build and sends it to cache
  • PR 2 runs nix-build and sends it to cache
  • PR 1 pulls from cache - but the wrong build from the other PR. That's why it has some random failures.

@monacoremo Can you have a look at this? I think we need to tag the builds we're sending to cachix with maybe the commit-id or something?

@monacoremo monacoremo mentioned this pull request Oct 14, 2020
@monacoremo
Copy link
Member

@wolfgangwalther Hm, weird. Looks like some issue with the CircleCI caching and/or cabal-install again, which we use to run the test suite interactively. The Nix and Cachix pieces themselves should never create such issues... #1618 rips out the CircleCI caching and should make the builds completely deterministic. Can you try to rebase on that?

@wolfgangwalther
Copy link
Member Author

wolfgangwalther commented Oct 14, 2020

Can you try to rebase on that?

I'm not sure whether I would be able to actually reproduce the error in the first place. I'm sure that this PR here would pass easily, when I trigger it and don't trigger any other PRs at the same time. But, when I rebase both PRs now and we get both PRs passing - I would not be convinced that the problem is solved, yet. It could be just coincidence.

I will try, though.

@wolfgangwalther
Copy link
Member Author

Ok, so it succeeded in both PRs with this. I will now remove the commits again, let's see whether that brings it up again.

@wolfgangwalther
Copy link
Member Author

So after I removed the commits, it's now failing again. "Cool!"

@steve-chavez
Copy link
Member

@wolfgangwalther Looks good overall.

Though The Nix README still has 9.4 mentions(two places):
https://github.com/PostgREST/postgrest/blob/f5331d1a779aa1dcc953dde781be11a0b66de360/nix/README.md#aside-working-with-nix-shell-and-the-postgrest-utility-scripts

Could you remove those?

Also, we'll need an entry on the CHANGELOG that mentions we drop 9.4 support.

@wolfgangwalther
Copy link
Member Author

Done. Since it's only those text files that were changed, the CI result will not be different. So ready to merge already.

@monacoremo
Copy link
Member

Great work @wolfgangwalther ! And congrats on your successful first steps in the Nix world :-)

@steve-chavez steve-chavez merged commit 719c4ab into PostgREST:master Oct 15, 2020
@wolfgangwalther wolfgangwalther deleted the drop-pg94-support branch October 15, 2020 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants