Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: libp2p #6630

Merged
merged 40 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1e01559
initial
sdbondi Oct 3, 2024
1d873a0
wip
sdbondi Oct 7, 2024
dcd7aaa
wip
sdbondi Oct 8, 2024
2bfef79
wip
sdbondi Oct 10, 2024
5f0eb29
wip
sdbondi Oct 10, 2024
1165c3a
wip
sdbondi Oct 10, 2024
20ec341
Merge branch 'development' into libp2p
sdbondi Oct 10, 2024
50e73cc
wip
sdbondi Oct 10, 2024
3065b7a
wip
sdbondi Oct 10, 2024
bae57e8
wip
sdbondi Oct 11, 2024
45fc0b2
wip: wallet begins dun dun dun
sdbondi Oct 12, 2024
924e1b5
wip
sdbondi Oct 14, 2024
0ee154c
Merge branch 'development' into libp2p
sdbondi Oct 14, 2024
eba4f00
wip
sdbondi Oct 14, 2024
9714357
wip:wallet ffi
sdbondi Oct 15, 2024
3f9a237
Merge branch 'development' into libp2p
sdbondi Oct 15, 2024
51d3da5
machete
sdbondi Oct 15, 2024
dc855ae
wip: clean up wait for first bn connection code
sdbondi Oct 15, 2024
41d9dae
Merge branch 'development' into libp2p
sdbondi Oct 15, 2024
29d7466
wip:ffi
sdbondi Oct 15, 2024
7b2d1cb
wallet ffi and mmproxy
sdbondi Oct 16, 2024
67376b5
cucumbers
sdbondi Oct 16, 2024
261275c
clippies
sdbondi Oct 16, 2024
1f6d9be
Merge branch 'development' into libp2p
sdbondi Oct 16, 2024
bb470d3
improve error logging if networking fails in base node
sdbondi Oct 16, 2024
ce09dc0
always dial when using dial-peer cmd
sdbondi Oct 16, 2024
7b2a085
dont show loopback in whois, remove libtor feature from CI
sdbondi Oct 16, 2024
60d50c3
remove chat from CI
sdbondi Oct 16, 2024
c8b7cf7
cucumber ffi
sdbondi Oct 16, 2024
d9dfaee
Merge branch 'development' into libp2p
sdbondi Oct 17, 2024
0d5746b
remove comms from test_utils
sdbondi Oct 17, 2024
45a437d
code cleanup and use nightly-2024-10-14 in CI
sdbondi Oct 17, 2024
626eb87
rust nightly sweetspot 2024-08-01
sdbondi Oct 17, 2024
92880e8
fix cucumbers
sdbondi Oct 18, 2024
271ee02
Merge branch 'development' into libp2p
sdbondi Oct 18, 2024
7fcfc5e
increase gossipsub message size
sdbondi Oct 24, 2024
aca83cf
Merge branch 'development' into libp2p
sdbondi Oct 30, 2024
659172d
merge fixes
sdbondi Oct 30, 2024
7dbac69
review comments
sdbondi Oct 30, 2024
60e0fb5
feat: impl supported protocols, unban all peers, autonat status
sdbondi Oct 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
Loading