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 benchmarks in Buildkite #169

Merged
merged 4 commits into from
Apr 11, 2019
Merged

Fix benchmarks in Buildkite #169

merged 4 commits into from
Apr 11, 2019

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Apr 10, 2019

Relates to #100

Overview

  1. I forgot to run another Buildkite build after making changes to the benchmark script... and it didn't work.
  2. Some exception handling changes in Review Network Layer Errors #167 broke the chain sync.

The builds are here: https://buildkite.com/input-output-hk/cardano-wallet-nightly

@rvl rvl self-assigned this Apr 10, 2019
-- Failure response (e.g. 404 /mainnet/tip).
-- This can be recovered from by retrying the request.
Left e@(FailureResponse _) ->
return $ Left $ ErrNetworkUnreachable $ T.pack $ displayException e
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be in the default handler because the semantic we give to 404 is different depending on the endpoint. Actually, 404 are already handled for epochs for instance. If this is needed for the /networkTip endpoint, let's add it to the getNetworkTip handler, like done for getEpoch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, moved. I tried both

getNetworkTip :: ExceptT ErrNetworkUnreachable m (Maybe (Hash "BlockHeader", BlockHeader))
-- and
getNetworkTip :: ExceptT ErrNetworkTip m (Hash "BlockHeader", BlockHeader)

The latter seems better.

@rvl rvl force-pushed the rvl/100/buildkite-nightly branch from 8236d1e to 6576e43 Compare April 10, 2019 10:17
Copy link
Member

@KtorZ KtorZ 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 wonder however when would the network tip be not available? When the bridge just got started 🤔 ?

@KtorZ KtorZ merged commit cf912d0 into master Apr 11, 2019
@KtorZ KtorZ deleted the rvl/100/buildkite-nightly branch April 11, 2019 09:02
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.

None yet

2 participants