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

Fix release process #1333

Merged
merged 4 commits into from
Jun 26, 2019
Merged

Conversation

steve-chavez
Copy link
Member

@steve-chavez steve-chavez commented Jun 25, 2019

Trying to fix the release process and trying to build the binaries manually for each platform. PR not necessarily to be merged, I'm mostly documenting the workarounds I'm trying.

The ubuntu failure is a fresh one reported in commercialhaskell/stack#4888. I think It could be solved by pinning the stack version instead of using the latest one in the container.

Right now I'm trying manual builds on an ec2 instance but I keep getting Unable to commit 1048576 bytes of memory errors. Seems there's no fix for this error, so I'll have to upgrade the ec2 to another that has more ram.

Appveyor was timing out(60 mins build time max) so I'm using something like we do for travis with the timeout command to not surpass that limit. However the 45 mins cap doesn't seem to be enough for building text-printer https://ci.appveyor.com/project/steve-chavez/postgrest. I'll try seeing how to solve this on a Windows machine soon.

Centos images had some outdate urls so I've fixed them, however now I'm getting another error /home/centos/.stack/indices/Hackage/01-index.cache: /home/centos/.stack/indices/Hackage/01-index.cache: openBinaryFile: does not exist.

PostgreSQL 11.4 patched an error for wich we had a test.
See https://www.postgresql.org/docs/release/11.4/ json_to_record.
@steve-chavez
Copy link
Member Author

steve-chavez commented Jun 25, 2019

stack doesn't support ghc 8.4.4 for centos 6 😞 , see commercialhaskell/stack#4161 and commercialhaskell/stack#4529 (comment).

@steve-chavez
Copy link
Member Author

A showstopper for GHC 8.4 on Windows commercialhaskell/stackage#3385. Seems the error could go if we upgrade to GHC 8.6.

@steve-chavez
Copy link
Member Author

Tried compiling with GHC 8.6 on windows but now I get the same error as in https://ci.appveyor.com/project/steve-chavez/postgrest/builds/25506383.

Reported that here mvv/text-printer#1

@steve-chavez
Copy link
Member Author

While trying to manually build ubuntu 32 bit it fails with the same error as: https://circleci.com/gh/PostgREST/postgrest/3313?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link. Seems there's an issue with text-printer.

@steve-chavez
Copy link
Member Author

I'm unable to build haddock documentation with the new version, so I've just uploaded the source to https://hackage.haskell.org/package/postgrest

All it's missing is ubuntu 32 bit and windows, which don't compile in the current version. centos 6 users can use the static binary.

I'll open an issue for windows, for now I'll merge some of the PR fixes for the release process.

@steve-chavez steve-chavez merged commit da7aa1d into PostgREST:master Jun 26, 2019
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.

1 participant