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

LoggingSpec: Fix error handling and remove problem test cases #2734

Merged
merged 2 commits into from
Jun 22, 2021

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Jun 22, 2021

Issue Number

ADP-562
ADP-1008

Overview

The test cases were getting stuck if ever there was an exception while setting up the warp server.
A common reason for this could be that the random port which was selected is no longer available.

Also I am removing the two tests which have caused so much flakiness, because we are pretty confident that the code works and will continue to work.

  • Handle errors in the warp server setup.
  • Delete the problem test cases.
  • Re-enable these tests on macos.
  • Fix some Haddock syntax errors that HLS wanted to tell me about.

@rvl rvl self-assigned this Jun 22, 2021
@rvl rvl force-pushed the rvl/adp-562/remove-problem-test-cases branch from 3ca321a to b794d86 Compare June 22, 2021 09:07
@rvl rvl requested review from Anviking and jonathanknowles June 22, 2021 11:42
@rvl rvl mentioned this pull request Jun 22, 2021
1 task
Copy link
Member

@Anviking Anviking left a comment

Choose a reason for hiding this comment

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

LGTM. I don't think this fixes our #2472 problems, but still great!

@Anviking
Copy link
Member

bors r+

@Anviking
Copy link
Member

Anviking commented Jun 22, 2021

So this should fix #2368 (trivially, by removing the property), and make the failure reason for #2217 clearer, I think.

@Anviking
Copy link
Member

I don't think this fixes our #2472 problems

In support of that belief, a failure on this PR:

https://hydra.iohk.io/build/6735052

Coverage checks for generators
    TokenQuantity
      +++ OK, passed 100 tests:
      39% token quantity is massive
      27% token quantity is large
      20% token quantity is small
      14% token quantity is zero
Cardano.Wallet.DB.Sqlite
  State machine test (SeqState 'Mainnet ShelleyKey)
    Validate generators & shrinkers
      Generator for CreateWallet
      Shrinker for CreateWallet
      Generator for RemoveWallet
      Shrinker for RemoveWallet
      Generator for ListWallets
      Shrinker for ListWallets
      Generator for PutCheckpoints
      Shrinker for PutCheckpoints
      Generator for ReadCheckpoint
      Shrinker for ReadCheckpoint
      Generator for ListCheckpoints
      Shrinker for ListCheckpoints
      Generator for PutWalletMeta
      Shrinker for PutWalletMeta
      Generator for ReadWalletMeta
      Shrinker for ReadWalletMeta
      Generator for PutDelegationCertificate
      Shrinker for PutDelegationCertificate
      Generator for IsStakeKeyRegistered
      Shrinker for IsStakeKeyRegistered
      Generator for PutTxHistory
      Shrinker for PutTxHistory
      Generator for ReadTxHistory
      Shrinker for ReadTxHistory
      Generator for ReadLocalTxSubmissionPending
      Shrinker for ReadLocalTxSubmissionPending
      Generator for UpdatePendingTxForExpiry
      Shrinker for UpdatePendingTxForExpiry
      Generator for RemovePendingOrExpiredTx
      Shrinker for RemovePendingOrExpiredTx
      Generator for PutPrivateKey
      Shrinker for PutPrivateKey
      Generator for ReadPrivateKey
      Shrinker for ReadPrivateKey
      Generator for RollbackTo
      Shrinker for RollbackTo
      Generator for ReadGenesisParameters
      Shrinker for ReadGenesisParameters
building of '/nix/store/wgf2560pp44yhdlnlxb02k2djgy7gf6s-cardano-wallet-core-test-unit-2021.6.11-check' timed out after 900 seconds of silence

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 22, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit c8562b1 into master Jun 22, 2021
@iohk-bors iohk-bors bot deleted the rvl/adp-562/remove-problem-test-cases branch June 22, 2021 13:50
@rvl
Copy link
Contributor Author

rvl commented Jun 23, 2021

Yep. The more flaky tests we fix, the easier things get.

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