Code Monkey home page Code Monkey logo

Comments (3)

iphydf avatar iphydf commented on June 26, 2024

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.

iphydf avatar iphydf commented on June 26, 2024

There are two parts to this, one easy part and one more involved part:

  1. 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).
  2. 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.

GrayHatter avatar GrayHatter commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.