Skip to content

p2p: Add Peer Score Metrics - #5017

Draft
GheisMohammadi wants to merge 2 commits into
devfrom
feature/peer_score_metrics
Draft

p2p: Add Peer Score Metrics#5017
GheisMohammadi wants to merge 2 commits into
devfrom
feature/peer_score_metrics

add peer score metrics

fffe0a2
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Mar 10, 2026 in 40m 2s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #5017 p2p: enable peer score gating and record sync req/resp scores.
Any changes that have been made to the dev branch before the build ran are also included.

Jobs and Stages

This build has four jobs, running in parallel.

Job Go ENV OS State
16446.1 1.24.2 TEST="make" Linux passed
16446.2 1.24.2 TEST="bash ./scripts/travis_go_checker.sh" Linux passed
16446.3 1.24.2 TEST="bash ./scripts/travis_rpc_checker.sh" Linux passed
16446.4 1.24.2 TEST="bash ./scripts/travis_pyhmy_checker.sh" Linux passed

Build Configuration

Build Option Setting
Language Go
Operating System Linux (Jammy)
Go Version 1.24.2
Build Configuration
{
  "language": "go",
  "os": [
    "linux"
  ],
  "dist": "jammy",
  "go": [
    "1.24.2"
  ],
  "go_import_path": "github.com/harmony-one/harmony",
  "cache": {
    "directories": [
      "docker_images",
      "$HOME/.cache/go-build",
      "$GOPATH/pkg/mod"
    ]
  },
  "env": [
    "jobs={:TEST=>\"\\\"make\\\"\"}={:TEST=>\"\\\"bash ./scripts/travis_go_checker.sh\\\"\"}={:TEST=>\"\\\"bash ./scripts/travis_rpc_checker.sh\\\"\"}={:TEST=>\"\\\"bash ./scripts/travis_pyhmy_checker.sh\\\"\"}"
  ],
  "if": "type = pull_request OR (repo = harmony-one/harmony AND (branch = main OR branch = dev))\n",
  "before_install": [
    "echo \"deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable\" | sudo tee /etc/apt/sources.list.d/docker.list >/dev/null",
    "sudo apt-get update",
    "sudo apt-get -y -o Dpkg::Options::=\"--force-confnew\" install docker-ce"
  ],
  "install": [
    "git clone https://github.com/harmony-one/mcl.git $GOPATH/src/github.com/harmony-one/mcl",
    "git clone https://github.com/harmony-one/bls.git $GOPATH/src/github.com/harmony-one/bls",
    "git clone https://github.com/harmony-one/harmony-test.git $GOPATH/src/github.com/harmony-one/harmony-test",
    "(cd $GOPATH/src/github.com/harmony-one/mcl; make -j4)",
    "(cd $GOPATH/src/github.com/harmony-one/bls; make BLS_SWAP_G=1 -j4)",
    "make go-get",
    "go install golang.org/x/tools/cmd/goimports@v0.30.0",
    "go install github.com/fjl/gencodec@v0.1.1",
    "echo \"[WARN] - workaround for the GOPATH:\"",
    "rm $GOPATH/src/github.com/harmony-one/harmony || true;",
    "mv /home/travis/build/harmony-one/harmony $GOPATH/src/github.com/harmony-one/"
  ],
  "script": [
    "${TEST}"
  ],
  "after_success": [
    "wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh",
    "chmod +x send.sh",
    "./send.sh success $WEBHOOK_URL"
  ],
  "after_failure": [
    "wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh",
    "chmod +x send.sh",
    "./send.sh failure $WEBHOOK_URL"
  ]
}