1. 23 Dec, 2014 13 commits
    • Juan Batiz-Benet's avatar
      dockertest script to run the test on any img · 4c13b958
      Juan Batiz-Benet authored
      - run the build image task every time to avoid
        running the test on stale code
      - run the test from a script, so that we can
        run the test on different pre-built images.
        like:
      
          # build an image now and run tests on it
          make test
      
          # run tests on previously built image
          ./run-test-on-img.sh ipfs-stable
      
          # TODO: run test on git ref
          ./run-test-on-git-ref.sh <git-ref>
      4c13b958
    • Juan Batiz-Benet's avatar
      dht: bit nicer logging · 2c95cb54
      Juan Batiz-Benet authored
      2c95cb54
    • Juan Batiz-Benet's avatar
      core: set local listening addresses · a10fb7aa
      Juan Batiz-Benet authored
      a10fb7aa
    • Juan Batiz-Benet's avatar
      Makefiles: build the test docker img · 87c4fb2f
      Juan Batiz-Benet authored
      this commit changes how the dockertest image is built.
      it moves the command into dockertest/Makefile. It also
      uses a cached file that -- if removed with make clean
      -- can signal whether the image should be rebuilt.
      (it may be ideal to have it either detect code has
      changed, or just rebuild every time. )
      87c4fb2f
    • Juan Batiz-Benet's avatar
      net/mocknet: fixed listenaddrs (misrepresenting) · 497297b2
      Juan Batiz-Benet authored
      some dht tests signaled "sending peer empty addresses"
      which would then cause a failure. this was a misrepresentation
      on the part of mocknet. it has been corrected.
      497297b2
    • Juan Batiz-Benet's avatar
      net: have an explicit IdentifyConn on dial · 4fe1dd9b
      Juan Batiz-Benet authored
      - Make sure we call IdentifyConn on dialed out conns
      - we wait until the identify is **done** before return
      - on listening case, we can also wait.
      - tests now make sure dial does wait.
      - tests now make sure we can wait on listening case.
      4fe1dd9b
    • Juan Batiz-Benet's avatar
      d9961893
    • Juan Batiz-Benet's avatar
      c2b21e47
    • Brian Tiger Chow's avatar
      fix: the docker-test's make task · 10bb354f
      Brian Tiger Chow authored
      10bb354f
    • Juan Batiz-Benet's avatar
      peer change: peer.Peer -> peer.ID · c84a714b
      Juan Batiz-Benet authored
      this is a major refactor of the entire codebase
      it changes the monolithic peer.Peer into using
      a peer.ID and a peer.Peerstore.
      
      Other changes:
      - removed handshake3.
      -	testutil vastly simplified peer
      -	secio bugfix + debugging logs
      -	testutil: RandKeyPair
      -	backpressure bugfix: w.o.w.
      -	peer: added hex enc/dec
      -	peer: added a PeerInfo struct
        PeerInfo is a small struct used to pass around a peer with
       	a set of addresses and keys. This is not meant to be a
       	complete view of the system, but rather to model updates to
       	the peerstore. It is used by things like the routing system.
      -	updated peer/queue + peerset
      -	latency metrics
      -	testutil: use crand for PeerID gen
       	RandPeerID generates random "valid" peer IDs. it does not
       	NEED to generate keys because it is as if we lost the key
       	right away. fine to read some randomness and hash it. to
       	generate proper keys and an ID, use:
       	  sk, pk, _ := testutil.RandKeyPair()
       	  id, _ := peer.IDFromPublicKey(pk)
       	Also added RandPeerIDFatal helper
      - removed old spipe
      - updated seccat
      - core: cleanup initIdentity
      - removed old getFromPeerList
      c84a714b
    • Juan Batiz-Benet's avatar
      peer/queue/sync: remove buffering · d399a932
      Juan Batiz-Benet authored
      d399a932
    • Juan Batiz-Benet's avatar
      util: fractional context · ec96a0b0
      Juan Batiz-Benet authored
      ec96a0b0
    • Juan Batiz-Benet's avatar
      threadsafe SeededRand · cc7a869e
      Juan Batiz-Benet authored
      cc7a869e
  2. 21 Dec, 2014 1 commit
  3. 20 Dec, 2014 1 commit
  4. 19 Dec, 2014 1 commit
  5. 18 Dec, 2014 24 commits