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

chore: upgrade Hedgehog to version 1.4 #1117

Merged
merged 2 commits into from
Aug 23, 2023
Merged

chore: upgrade Hedgehog to version 1.4 #1117

merged 2 commits into from
Aug 23, 2023

Conversation

brprice
Copy link
Contributor

@brprice brprice commented Aug 16, 2023

Now that Hedgehog 1.4 has been released with the fix for replaying tests, we can migrate off 1.1. This is a prerequisite for upgrading ghc to 9.6 (#1077).

Note that currently we need to allow-newer to get hedgehog-classes to work with hedgehog 1.4; I have opened an upstream PR at hedgehogqa/haskell-hedgehog-classes#52

@brprice brprice marked this pull request as draft August 16, 2023 19:05
@brprice brprice changed the title (wip) hedgehog 1.4 chore: upgrade Hedgehog to version 1.4 Aug 17, 2023
Comment on lines +12 to +13
allow-newer: hedgehog-classes:hedgehog

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I intentionally did not sign-off this commit so CI would break and this would not be merged without discussing:

  • Do we want to merge this with allow-newer (if so, I need to reword the commit message to be conventional-commits, and maybe rebase it first so both commits will build cleanly; I'll not squash, to make it trivial to revert once upstream makes a release)
  • Do we want to wait for upstream to fix it (bump hedgehog upper bound 1.3 -> 1.5 hedgehogqa/haskell-hedgehog-classes#52)
  • Did we want some other option?

Copy link
Member

Choose a reason for hiding this comment

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

I think this is fine. It's more important that we get the GHC 9.6 work moving.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Upstream plans to cut a new release this weekend, so I'll wait until next week to merge this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's merge. I have opened #1122 to track removing the allow-newer when a release happens.

@brprice brprice requested a review from dhess August 17, 2023 11:10
Copy link
Member

@dhess dhess left a comment

Choose a reason for hiding this comment

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

Thanks!

This is in preparation for the next commit, which upgrades hedgehog
to 1.4.

This commit can be reverted once hedgehog-classes makes a new release:
upstream has merged a patch widening their bounds, but it is not yet
released.

Signed-off-by: Ben Price <[email protected]>
This needs a few simple fixes due to `Gen.element` now being polymorphic,
which interacts slightly badly with overloaded lists.

Signed-off-by: Ben Price <[email protected]>
@brprice brprice marked this pull request as ready for review August 23, 2023 14:15
@brprice brprice enabled auto-merge August 23, 2023 14:15
@brprice brprice added this pull request to the merge queue Aug 23, 2023
Merged via the queue into main with commit 2406c9a Aug 23, 2023
2 checks passed
@brprice brprice deleted the brprice/hedgehog-1.4 branch August 23, 2023 14:29
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.

2 participants