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

chore: merge development into feature dan #4764

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
79ff23a
ci: deny dbg macro (#4740)
stringhandler Sep 27, 2022
c659275
fix(core): use compact inputs for block propagation (#4714)
sdbondi Sep 27, 2022
1e22a03
feat: trigger mempool sync on lag (#4730)
SWvheerden Sep 27, 2022
0dad9e8
feat: change priority in mempool to take into account age (#4737)
SWvheerden Sep 27, 2022
467cad2
chore: disallow onion v2 (#4745)
Cifko Sep 27, 2022
88b75dc
fix(clients): fix tari nodejs client proto paths (#4743)
sdbondi Sep 28, 2022
62384f9
fix: cli wallet cucumber (#4739)
Cifko Sep 30, 2022
8f872a1
feat(tariscript): adds ToRistrettoPoint op-code (#4749)
sdbondi Oct 3, 2022
33e0dc2
fix(ci): add cargo cache, reduce Ubuntu dependencies and action on pu…
leet4tari Oct 3, 2022
a92f205
fix(comms/peer_manager): add migration to remove onionv2 addresses (#…
sdbondi Oct 3, 2022
60c3df4
docs: explain the emission curve parameters (#4750)
CjS77 Oct 3, 2022
195df85
fix(dht/encryption): greatly reduce heap allocations for encrypted me…
sdbondi Oct 3, 2022
aab729a
fix(comms): fixes edge case where online status event does not get pu…
sdbondi Oct 3, 2022
01f9424
ci: run coverage on prs (#4738)
stringhandler Oct 3, 2022
511b874
ci: fix coverage job
stringhandler Oct 3, 2022
4cbb378
fix(core): broken doctests (#4763)
sdbondi Oct 3, 2022
933126e
feat: different default grpc ports for different networks (#4755)
sdbondi Oct 3, 2022
dd1d993
v0.38.5
stringhandler Oct 3, 2022
73976e3
Merge branch 'development' into merge-feature-dan-development
sdbondi Oct 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ commands:
command: node -v
- run:
name: npm ci
command: cd integration_tests && npm ci
command: cd clients/nodejs/base_node_grpc_client && npm install && cd ../wallet_grpc_client && npm install && cd ../../../integration_tests && npm install
- run:
name: Check formatting
command: cd integration_tests && npm run check-fmt
Expand Down Expand Up @@ -54,7 +54,7 @@ commands:
command: node -v
- run:
name: npm ci
command: cd integration_tests && npm ci
command: cd clients/nodejs/base_node_grpc_client && npm install && cd ../wallet_grpc_client && npm install && cd ../../../integration_tests && npm install
- run:
name: Check eslint
command: cd integration_tests && npm run lint
Expand Down
65 changes: 28 additions & 37 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,54 @@
---
name: Source Coverage

on:
workflow_dispatch:
'on':
push:
branches:
- development
- ci-coverage-*
pull_request:
types:
- opened
- reopened
- synchronize

env:
toolchain: nightly-2022-05-01

jobs:
coverage:
name: test and generate cov
name: test and generate coverage
runs-on: [ self-hosted, ubuntu18.04-high-mem ]
steps:
- name: checkout source code
uses: actions/checkout@v3

- name: ubuntu dependencies
run: |
sudo apt-get update && \
sudo apt-get -y install \
openssl \
libssl-dev \
pkg-config \
libsqlite3-dev \
clang-10 \
git \
cmake \
libc++-dev \
libc++abi-dev \
libprotobuf-dev \
protobuf-compiler \
libncurses5-dev \
libncursesw5-dev \
zip \
build-essential \
libgtk-3-dev \
libwebkit2gtk-4.0-dev \
libsoup2.4-dev \
curl \
wget \
libappindicator3-dev \
patchelf \
librsvg2-dev
- name: checkout
uses: actions/checkout@v2
sudo apt-get update
sudo bash scripts/install_ubuntu_dependencies.sh

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: llvm-tools-preview
- uses: actions-rs/cargo@v1

- name: cache cargo files and outputs
uses: Swatinem/rust-cache@v2
with:
command: test
args: --all-features --no-fail-fast
cache-on-failure: true

- uses: actions-rs/cargo@v1
env:
RUSTFLAGS: "-C instrument-coverage"
RUSTDOCFLAGS: "-C instrument-coverage"
LLVM_PROFILE_FILE: "coverage_data-%p-%m.profraw"
- id: coverage
name: Prepare coverage data
with:
command: test
args: --all-features --no-fail-fast

- name: prepare coverage data
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
Expand All @@ -72,13 +61,15 @@ jobs:
--vcs-branch $GITHUB_REF_NAME \
--service-name github \
--service-job-id ${GITHUB_RUN_ID}
- id: archive-coverage
name: archive-coverage

- name: archive coverage data
uses: actions/upload-artifact@v3
with:
path: target/coveralls_coverage.json
name: coveralls-coverage

- name: Coveralls upload
continue-on-error: true
uses: toshke/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: lts/erbium
cache: 'npm'
cache-dependency-path: integration_tests/package-lock.json

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ buildtools/Output/

clients/base_node_grpc_client/package-lock.json
clients/validator_node_grpc_client/package-lock.json
clients/wallet_grpc_client/package-lock.json
clients/wallet_grpc_client/package-lock.json
pie/
47 changes: 23 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion applications/tari_app_grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["The Tari Development Community"]
description = "This crate is to provide a single source for all cross application grpc files and conversions to and from tari::core"
repository = "https://github.com/tari-project/tari"
license = "BSD-3-Clause"
version = "0.38.4"
version = "0.38.5"
edition = "2018"

[dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ impl TryFrom<TransactionInput> for grpc::TransactionInput {
.commitment()
.map_err(|_| "Non-compact Transaction input should contain commitment".to_string())?
.to_vec(),
hash: input
.canonical_hash()
.map_err(|_| "Non-compact Transaction input should be able to be hashed".to_string())?
.to_vec(),
hash: input.canonical_hash().to_vec(),

script: input
.script()
Expand Down
2 changes: 1 addition & 1 deletion applications/tari_app_utilities/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tari_app_utilities"
version = "0.38.4"
version = "0.38.5"
authors = ["The Tari Development Community"]
edition = "2018"
license = "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion applications/tari_base_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["The Tari Development Community"]
description = "The tari full base node implementation"
repository = "https://github.com/tari-project/tari"
license = "BSD-3-Clause"
version = "0.38.4"
version = "0.38.5"
edition = "2018"

[dependencies]
Expand Down
Loading