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 PatternMatchFail error in shared wallet integration tests #2793

Merged
merged 2 commits into from
Aug 4, 2021

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Aug 1, 2021

Issue Number

Found during ADP-1059.

Overview

This error was seen when trying to merge #2790 (comment).

The postSharedWallet request was failing for some reason, but instead of saying that the request failed, it said:

uncaught exception: PatternMatchFail
src/Test/Integration/Scenario/API/Shared/Wallets.hs:1029:25-75: Non-exhaustive patterns in lambda

This change lets it print the correct error message depending on whether the request failed or the shared wallet was pending.

Comments

I'm not sure why the postSharedWallets request failed in the first place. Any ideas @paweljakubas ?

The postSharedWallet request was failing for some reason, but instead
of saying that the request failed, it said:

  uncaught exception: PatternMatchFail
  src/Test/Integration/Scenario/API/Shared/Wallets.hs:1029:25-75: Non-exhaustive patterns in lambda

This change lets it print the correct error message depending on
whether the request failed or the shared wallet was pending.
Copy link
Contributor

@paweljakubas paweljakubas left a comment

Choose a reason for hiding this comment

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

lgtm! very nice useof view and traverse 👍

@rvl
Copy link
Contributor Author

rvl commented Aug 3, 2021

bors r+

iohk-bors bot added a commit that referenced this pull request Aug 3, 2021
2793: Fix PatternMatchFail error in shared wallet integration tests r=rvl a=rvl

### Issue Number

Found during ADP-1059.

### Overview

This error was seen when trying to merge #2790 (comment).

The `postSharedWallet` request was failing for some reason, but instead of saying that the request failed, it said:

```
uncaught exception: PatternMatchFail
src/Test/Integration/Scenario/API/Shared/Wallets.hs:1029:25-75: Non-exhaustive patterns in lambda
```

This change lets it print the correct error message depending on whether the request failed or the shared wallet was pending.

### Comments

I'm not sure why the `postSharedWallets` request failed in the first place. Any ideas @paweljakubas ?


Co-authored-by: Rodney Lorrimar <[email protected]>
Co-authored-by: IOHK <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Aug 3, 2021

Build failed:

Failures:
 
  src/Test/Integration/Scenario/API/Shelley/StakePools.hs:524:5: 
  1) API Specifications, SHELLEY_STAKE_POOLS, STAKE_POOLS_JOIN_01 - Can rejoin another stakepool
       uncaught exception: IOException of type UserError
       user error (next delegation should contain exactly one element)
 
  To rerun use: --match "/API Specifications/SHELLEY_STAKE_POOLS/STAKE_POOLS_JOIN_01 - Can rejoin another stakepool/"
 
Randomized with seed 1636648355
 
Finished in 828.4541 seconds, used 939.8187 seconds of CPU time
859 examples, 1 failure, 42 pending

#2497

@rvl
Copy link
Contributor Author

rvl commented Aug 4, 2021

The STAKE_POOLS_JOIN_01 flakiness seems to be back, although it never really left.

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Aug 4, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit dd378c2 into master Aug 4, 2021
@iohk-bors iohk-bors bot deleted the rvl/adp-1059/tests-pattern-match-fail branch August 4, 2021 05:27
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