You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
new pubsub package comment out failing consensus tests for now rewrite rpc httpclient to use new pubsub package import pubsub as tmpubsub, query as tmquery make event IDs constants EventKey -> EventTypeKey rename EventsPubsub to PubSub mempool does not use pubsub rename eventsSub to pubsub new subscribe API fix channel size issues and consensus tests bugs refactor rpc client add missing discardFromChan method add mutex rename pubsub to eventBus remove IsRunning from WSRPCConnection interface (not needed) add a comment in broadcastNewRoundStepsAndVotes rename registerEventCallbacks to broadcastNewRoundStepsAndVotes See https://dave.cheney.net/2014/03/19/channel-axioms stop eventBuses after reactor tests remove unnecessary Unsubscribe return subscribe helper function move discardFromChan to where it is used subscribe now returns an err this gives us ability to refuse to subscribe if pubsub is at its max capacity. use context for control overflow cache queries handle err when subscribing in replay_test rename testClientID to testSubscriber extract var set channel buffer capacity to 1 in replay_file fix byzantine_test unsubscribe from single event, not all events refactor httpclient to return events to appropriate channels return failing testReplayCrashBeforeWriteVote test fix TestValidatorSetChanges refactor code a bit fix testReplayCrashBeforeWriteVote add comment fix TestValidatorSetChanges fixes from Bucky's review update comment [ci skip] test TxEventBuffer update changelog fix TestValidatorSetChanges (2nd attempt) only do wg.Done when no errors benchmark event bus create pubsub server inside NewEventBus only expose config params (later if needed) set buffer capacity to 0 so we are not testing cache new tx event format: key = "Tx" plus a tag {"tx.hash": XYZ} This should allow to subscribe to all transactions! or a specific one using a query: "tm.events.type = Tx and tx.hash = '013ABF99434...'" use TimeoutCommit instead of afterPublishEventNewBlockTimeout TimeoutCommit is the time a node waits after committing a block, before it goes into the next height. So it will finish everything from the last block, but then wait a bit. The idea is this gives it time to hear more votes from other validators, to strengthen the commit it includes in the next block. But it also gives it time to hear about new transactions. waitForBlockWithUpdatedVals rewrite WAL crash tests Task: test that we can recover from any WAL crash. Solution: the old tests were relying on event hub being run in the same thread (we were injecting the private validator's last signature). when considering a rewrite, we considered two possible solutions: write a "fuzzy" testing system where WAL is crashing upon receiving a new message, or inject failures and trigger them in tests using something like https://github.com/coreos/gofail. remove sleep no cs.Lock around wal.Save test different cases (empty block, non-empty block, ...) comments add comments test 4 cases: empty block, non-empty block, non-empty block with smaller part size, many blocks fixes as per Bucky's last review reset subscriptions on UnsubscribeAll use a simple counter to track message for which we panicked also, set a smaller part size for all test cases
7 years ago
7 years ago
8 years ago
7 years ago
  1. package: github.com/tendermint/tendermint
  2. import:
  3. - package: github.com/ebuchman/fail-test
  4. - package: github.com/gogo/protobuf
  5. version: v0.5
  6. subpackages:
  7. - proto
  8. - package: github.com/golang/protobuf
  9. subpackages:
  10. - proto
  11. - package: github.com/gorilla/websocket
  12. version: v1.2.0
  13. - package: github.com/pkg/errors
  14. version: ~0.8.0
  15. - package: github.com/rcrowley/go-metrics
  16. - package: github.com/spf13/cobra
  17. version: v0.0.1
  18. - package: github.com/spf13/viper
  19. version: v1.0.0
  20. - package: github.com/tendermint/abci
  21. version: ~0.7.0
  22. subpackages:
  23. - client
  24. - example/dummy
  25. - types
  26. - package: github.com/tendermint/go-crypto
  27. version: ~0.4.1
  28. - package: github.com/tendermint/go-wire
  29. version: ~0.7.1
  30. subpackages:
  31. - data
  32. - package: github.com/tendermint/iavl
  33. version: ~0.2.0
  34. subpackages:
  35. - iavl
  36. - package: github.com/tendermint/tmlibs
  37. version: ~0.4.0
  38. subpackages:
  39. - autofile
  40. - cli
  41. - cli/flags
  42. - clist
  43. - common
  44. - db
  45. - flowrate
  46. - log
  47. - merkle
  48. - pubsub
  49. - package: golang.org/x/crypto
  50. subpackages:
  51. - nacl/box
  52. - nacl/secretbox
  53. - ripemd160
  54. - package: golang.org/x/net
  55. subpackages:
  56. - context
  57. - package: google.golang.org/grpc
  58. version: v1.7.0
  59. testImport:
  60. - package: github.com/go-kit/kit
  61. subpackages:
  62. - log/term
  63. - package: github.com/stretchr/testify
  64. subpackages:
  65. - assert
  66. - require