Comments (3)
It shouldn't try to connect to wild nodes. Instead, it should build and run a node from N time ago and test against that.
from c-toxcore.
There are two parts to this, one easy part and one more involved part:
- Easy: fetch a git commit from the support horizon (e.g. 1 month ago) and replace the test suite from the to-be-tested clone (i.e. the one cloned by Travis CI) with the old one. This validates that we're source-compatible with the version of a month ago (including internal APIs, but perhaps we could just replace the
tox*
test files, not the internal unit tests). - Harder: fetch a git commit from the support horizon and build a test program with it. Build the same test program with the current code and run both of them. This test program is yet to be written, and should run some simple tests like adding each other and sending messages.
from c-toxcore.
2 is the reason I opened this issue. (Because you're right, 1 would be near trivial)
Perhaps we should consider caching the tests now, with version numbers, then scan the version numbers, and try to get them to interact.
That wouldn't be nearly as hard, and would be a better test of what would happen in the real world. I.e. it might be using an older version of libsodium which would be what the previous version of clients would use.
We should also consider limiting it to major or minor version changes, only. As they should be the only ones affected.
from c-toxcore.
Related Issues (20)
- Need to document how to run the tests in README or INSTALL
- An equivalent to the ```other/fun/bootstrap_node_info.py``` script for TCP HOT 10
- tox-bootstrapd goes into an infinite loop HOT 9
- Three pkg-config files, only one installed HOT 2
- ipv6 disabled on kernel cmdline disrupts Tox = most tests fail HOT 1
- [cmake] expose / build with TCP_SERVER_USE_EPOLL HOT 1
- Independently security audit Tox HOT 2
- Profile entries for DHT should be unique HOT 7
- IPv6 nodes in the PATH_NODE section of my profile.
- Refactor tox profile code to NOT use binary serialization
- tox_options should take a ip:port pair for tcp_port HOT 1
- SEGV after infinite loop retrying proxy_socks5_read_connection_response HOT 23
- toxcore LOGGER_TRACE messages don't say if it's a bug or a feature. HOT 4
- Why media traffic is being relayed? HOT 11
- resolve_bootstrap_node assert hit HOT 2
- A basic question: How do you prevent man in the middle? HOT 7
- error: a function declaration without a prototype is deprecated in all versions of C HOT 2
- Remove AppVeyor as PR required check and move to Azure Pipelines
- Bad signature for 0.2.18 tarball HOT 2
- Tox callbacks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c-toxcore.