Skip to content

Commit

Permalink
refactor: libp2p (#6630)
Browse files Browse the repository at this point in the history
Description
---

Motivation and Context
---

How Has This Been Tested?
---

What process can a PR reviewer use to test or verify this change?
---

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->
  • Loading branch information
sdbondi authored Oct 30, 2024
1 parent 47b4877 commit ff17e52
Show file tree
Hide file tree
Showing 473 changed files with 23,718 additions and 11,234 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_binaries.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"name": "linux-x86_64",
"runs-on": "ubuntu-20.04",
"rust": "nightly-2024-07-07",
"rust": "nightly-2024-08-01",
"target": "x86_64-unknown-linux-gnu",
"cross": false,
"build_metric": true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:
# TS_BUILD: "debug"
TS_BUILD: "release"
TARI_NETWORK_DIR: testnet
toolchain: nightly-2024-07-07
toolchain: nightly-2024-08-01
matrix-json-file: ".github/workflows/build_binaries.json"
CARGO_HTTP_MULTIPLEXING: false
CARGO_UNSTABLE_SPARSE_REGISTRY: true
Expand All @@ -42,7 +42,7 @@ concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/v') || github.ref != 'refs/heads/development' || github.ref != 'refs/heads/nextnet' || github.ref != 'refs/heads/stagenet' }}

permissions: {}
permissions: { }

jobs:
matrix-prep:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build_dockers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ name: Build docker images
- cron: '05 00 * * *'
workflow_dispatch:
inputs:
# toolchain:
# type: string
# description: 'Rust toolchain'
# toolchain:
# type: string
# description: 'Rust toolchain'
version:
type: string
description: 'override image tag/version'
Expand Down Expand Up @@ -48,14 +48,14 @@ name: Build docker images
- xmrig

env:
toolchain_default: nightly-2024-07-07
toolchain_default: nightly-2024-08-01

concurrency:
# https://docs.github.com/en/actions/examples/using-concurrency-expressions-and-a-test-matrix
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/v') || github.ref != 'refs/heads/development' || github.ref != 'refs/heads/nextnet' || github.ref != 'refs/heads/stagenet' }}

permissions: {}
permissions: { }

jobs:
builds_envs_setup:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_dockers_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name: Build docker images - workflow_call/on-demand
toolchain:
type: string
description: 'Rust toolchain'
default: nightly-2024-07-07
default: nightly-2024-08-01
arch:
type: string
default: x86-64
Expand All @@ -41,7 +41,7 @@ env:
LAUNCHPAD_BRANCH: main
DAYS_to_EXPIRE: 30

permissions: {}
permissions: { }

jobs:
envs_setup:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ name: CI
merge_group:

env:
toolchain: nightly-2024-07-07
toolchain: nightly-2024-08-01
CARGO_HTTP_MULTIPLEXING: false
CARGO_TERM_COLOR: always
CARGO_UNSTABLE_SPARSE_REGISTRY: true
CARGO_INCREMENTAL: 0
PROTOC: protoc
TERM: unknown
## Must be a JSon string
TS_FEATURES: '["default","safe","grpc","ledger","libtor","metrics","miner_input"]'
TS_FEATURES: '["default","safe","grpc","ledger","metrics","miner_input"]'

concurrency:
# https://docs.github.com/en/actions/examples/using-concurrency-expressions-and-a-test-matrix
Expand All @@ -32,7 +32,7 @@ concurrency:
jobs:
clippy:
name: clippy
runs-on: [ubuntu-latest]
runs-on: [ ubuntu-latest ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
machete:
# Checks for unused dependencies.
name: machete
runs-on: [ubuntu-latest]
runs-on: [ ubuntu-latest ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
# Runs cargo check with stable toolchain to determine whether the codebase is likely to build
# on stable Rust.
name: cargo check with stable
runs-on: [self-hosted, ubuntu-high-cpu]
runs-on: [ self-hosted, ubuntu-high-cpu ]
env:
RUSTUP_PERMIT_COPY_RENAME: true
steps:
Expand Down Expand Up @@ -178,12 +178,12 @@ jobs:
done
- name: cargo check wallet ffi separately
run: cargo check --release --package minotari_wallet_ffi --locked
- name: cargo check chat ffi separately
run: cargo check --release --package minotari_chat_ffi --locked
# - name: cargo check chat ffi separately
# run: cargo check --release --package minotari_chat_ffi --locked

licenses:
name: file licenses
runs-on: [ubuntu-20.04]
runs-on: [ ubuntu-20.04 ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -198,7 +198,7 @@ jobs:

test:
name: test
runs-on: [self-hosted, ubuntu-high-cpu]
runs-on: [ self-hosted, ubuntu-high-cpu ]
permissions:
checks: write
pull-requests: write
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
# Allows other workflows to know the PR number
artifacts:
name: pr_2_artifact
runs-on: [ubuntu-latest]
runs-on: [ ubuntu-latest ]
steps:
- name: Save the PR number in an artifact
shell: bash
Expand All @@ -280,7 +280,7 @@ jobs:
# needed for test results
event_file:
name: "Upload Event File for Test Results"
runs-on: [ubuntu-latest]
runs-on: [ ubuntu-latest ]
steps:
- name: Upload
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: Source Coverage
- ci-coverage-*

env:
toolchain: nightly-2024-07-07
toolchain: nightly-2024-08-01

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ name: Integration tests
type: string

env:
toolchain: nightly-2024-07-07
toolchain: nightly-2024-08-01

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -36,7 +36,7 @@ concurrency:
jobs:
base_layer:
name: Cucumber tests / Base Layer
runs-on: [self-hosted, ubuntu-high-cpu]
runs-on: [ self-hosted, ubuntu-high-cpu ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:

ffi:
name: Cucumber tests / FFI
runs-on: [self-hosted, ubuntu-high-cpu]
runs-on: [ self-hosted, ubuntu-high-cpu ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down
Loading

0 comments on commit ff17e52

Please sign in to comment.