• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bakwc / PySyncObj / 974
87%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2018 06:49PM UTC
Jobs 1
Files 20
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
974

push

travis-ci

bakwc
Network separation (#92)

* Separate network code from SyncObj (fixes #4)

This has some minor side effects:
- The timing of connections is changed slightly. Connections are now established immediately when the `TCPTransport` is created rather than on the first tick. If a connection fails, the reconnection is triggered immediately rather than on the next tick.
- Read-only nodes are no longer kept around in SyncObj forever; this was a bug in the previous implementation.
- SyncObj.getStatus() doesn't return the number of unknown connections anymore (field 'unknown_connections_count'). This is because SyncObj doesn't have any concept of "unknown connections" anymore as it was moved entirely to the transport. SyncObj only learns about a connection from TCPTransport when the node has been identified and everything is ready for normal communication (through the onNodeConnected and onReadonlyNodeConnected callbacks).
- Before this commit, to add/remove a node to/from the cluster, only the node ID is passed to the other nodes. In the new code, the node object is transferred as well. The protocol is backward-compatible in the sense that the old and new codes can interact freely with each other. However, the new code cannot use the new functionality (e.g. replacing the transport or node classes) until all nodes are updated to the new PySyncObj code.

* Fix typo in DnsCachingResolver

* Let encryption-related tests fail when cryptography isn't available

* Fix typo in TCPTransport._onOutgoingConnected

* Fix not-equal operator (!=) for Node objects on Python 2

Python 3 is sane enough to invert the result of the equality check. Python 2 instead compares the object references, so the __ne__ method needs to be implemented explicitly for Python 2 support.

* Enable cryptography on Travis PyPy builds and on AppVeyor

The former were disabled in 6a6287fe due to Travis using an old version of PyPy at the time, but this should no longer be an issue ... (continued)

2189 of 2499 relevant lines covered (87.6%)

0.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 974.1 28 Oct 2018 06:49PM UTC 0
87.6
Travis Job 974.1
Source Files on build 974
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #974
  • 1be8de2d on github
  • Prev Build on master (#972)
  • Next Build on master (#975)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc