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

Navio rebrand (for CI tests) #152

Merged
merged 11 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ global_task_template: &GLOBAL_TASK_TEMPLATE
compute_credits_template: &CREDITS_TEMPLATE
# https://cirrus-ci.org/pricing/#compute-credits
# Only use credits for pull requests to the main repo
use_compute_credits: $CIRRUS_REPO_FULL_NAME == 'navcoin/navcoin' && $CIRRUS_PR != ""
use_compute_credits: $CIRRUS_REPO_FULL_NAME == 'nav-io/navio-core' && $CIRRUS_PR != ""

task:
name: 'lint'
Expand Down Expand Up @@ -195,13 +195,13 @@ task:
FILE_ENV: "./ci/test/00_setup_env_native_libblsct_only.sh"

task:
name: 'no wallet, libnavcoinkernel'
name: 'no wallet, libnaviokernel'
<< : *GLOBAL_TASK_TEMPLATE
persistent_worker:
labels:
type: small
env:
FILE_ENV: "./ci/test/00_setup_env_native_nowallet_libnavcoinkernel.sh"
FILE_ENV: "./ci/test/00_setup_env_native_nowallet_libnaviokernel.sh"

task:
name: 'macOS-cross, no tests'
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2023 The Bitcoin Core developers
# Copyright (c) 2024 The Navio Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down Expand Up @@ -67,7 +67,9 @@ jobs:
run: |
# Run tests on commits after the last merge commit and before the PR head commit
# Use clang++, because it is a bit faster and uses less memory than g++
git rebase --exec "echo Running test-one-commit on \$( git log -1 ) && ./autogen.sh && CC=clang-15 CXX=clang++-15 ./configure && make clean && make -j $(nproc) check && ./test/functional/test_runner.py -j $(( $(nproc) * 2 ))" ${{ env.TEST_BASE }}
#git rebase --exec "echo Running test-one-commit on \$( git log -1 ) &&
./autogen.sh && CC=clang-15 CXX=clang++-15 ./configure && make clean && make -j $(nproc) check && ./test/functional/test_runner.py -j $(( $(nproc) * 2 ))
#" ${{ env.TEST_BASE }}

macos-native-x86_64:
name: 'macOS 13 native, x86_64, no depends, sqlite only'
Expand All @@ -76,7 +78,7 @@ jobs:
runs-on: macos-13

# No need to run on the read-only mirror, unless it is a PR.
if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request'
if: github.repository != 'navio-core/gui' || github.event_name == 'pull_request'

timeout-minutes: 120

Expand Down Expand Up @@ -127,7 +129,7 @@ jobs:
runs-on: windows-2022

# No need to run on the read-only mirror, unless it is a PR.
if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request'
if: github.repository != 'navio-core/gui' || github.event_name == 'pull_request'

env:
CCACHE_MAXSIZE: '200M'
Expand Down Expand Up @@ -219,10 +221,10 @@ jobs:
key: ${{ github.job }}-ccache-${{ github.run_id }}

- name: Run unit tests
run: src\test_navcoin.exe -l test_suite
run: src\test_navio.exe -l test_suite

- name: Run benchmarks
run: src\bench_navcoin.exe -sanity-check
run: src\bench_navio.exe -sanity-check

- name: Run util tests
run: py -3 test\util\test_runner.py
Expand Down
25 changes: 13 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

*.exe
*.pdb
src/navcoin
src/navcoind
src/navcoin-cli
src/navcoin-gui
src/navcoin-node
src/navcoin-staker
src/navcoin-tx
src/navcoin-util
src/navcoin-chainstate
src/navcoin-wallet
src/bench/bench_navio
src/navio
src/naviod
src/navio-cli
src/navio-gui
src/navio-node
src/navio-staker
src/navio-tx
src/navio-util
src/navio-chainstate
src/navio-wallet
src/test/fuzz/fuzz
src/test/test_navcoin
src/test/test_navio

# autoreconf
Makefile.in
Expand Down Expand Up @@ -122,7 +123,7 @@ test/.mypy_cache/

/doc/doxygen/

libnavcoinconsensus.pc
libnavioconsensus.pc
contrib/devtools/split-debug.sh

# Output from running db4 installation
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ Navio Core is a fork of [Bitcoin Core](https://github.com/bitcoin/bitcoin). This
repository hosts the source code for the next version of Navio Core, which is *not
ready for production yet*.

https://navio.org
https://nav.io

For an immediately usable, binary version of the Navio Core software, see
https://navio.org/get-started.
https://nav.io/get-started.

Further information about Navio Core is available in the [doc folder](/doc),
the [wiki](https://github.com/nav-io/navio-core/wiki) and the [documentation website](https://doc.nav.community).
Expand All @@ -19,8 +19,8 @@ What is Navio?
Navio is an experimental digital currency that enables privacy-enhanced payments to
anyone, anywhere in the world. Navio uses peer-to-peer technology to operate
with no central authority: managing transactions and issuing money are carried
out collectively by the network. Navio Core is the name of open source
software which enables the use of this currency.
out collectively by the network using a private proof of stake protocol. Navio
Core is the name of open source software which enables the use of this currency.

License
-------
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Reporting a Vulnerability

To report security issues send an email to disclosure@navio.org (not for support).
To report security issues send an email to disclosure@nav.io (not for support).

The following keys may be used to communicate sensitive information to developers:

Expand Down
6 changes: 3 additions & 3 deletions build_msvc/bitcoin_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#define COPYRIGHT_HOLDERS "The %s developers"

/* Copyright holder(s) */
#define COPYRIGHT_HOLDERS_FINAL "The Bitcoin Core developers"
#define COPYRIGHT_HOLDERS_FINAL "The Navio Core developers"

/* Replacement for %s in copyright holders string */
#define COPYRIGHT_HOLDERS_SUBSTITUTION "Bitcoin Core"
#define COPYRIGHT_HOLDERS_SUBSTITUTION "Navio Core"

/* Copyright year */
#define COPYRIGHT_YEAR $
Expand Down Expand Up @@ -122,7 +122,7 @@
#define PACKAGE_STRING $

/* Define to the home page for this package. */
#define PACKAGE_URL "https://navio.org/"
#define PACKAGE_URL "https://nav.io/"

/* Define to the version of this package. */
#define PACKAGE_VERSION $
Expand Down
4 changes: 2 additions & 2 deletions ci/test/03_test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ index 65e31724bc..f61b471953 100644
if [ "$RUN_FUZZ_TESTS" = "true" ]; then
export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
if [ ! -d "$DIR_FUZZ_IN" ]; then
${CI_RETRY_EXE} git clone --depth=1 https://github.com/navio/qa-assets "${DIR_QA_ASSETS}"
${CI_RETRY_EXE} git clone --depth=1 https://github.com/nav-io/qa-assets "${DIR_QA_ASSETS}"
fi
(
cd "${DIR_QA_ASSETS}"
Expand All @@ -67,7 +67,7 @@ elif [ "$RUN_UNIT_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]
export DIR_UNIT_TEST_DATA=${DIR_QA_ASSETS}/unit_test_data/
if [ ! -d "$DIR_UNIT_TEST_DATA" ]; then
mkdir -p "$DIR_UNIT_TEST_DATA"
${CI_RETRY_EXE} curl --location --fail https://github.com/navio/qa-assets/raw/main/unit_test_data/script_assets_test.json -o "${DIR_UNIT_TEST_DATA}/script_assets_test.json"
${CI_RETRY_EXE} curl --location --fail https://github.com/nav-io/qa-assets/raw/main/unit_test_data/script_assets_test.json -o "${DIR_UNIT_TEST_DATA}/script_assets_test.json"
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ define(_CLIENT_VERSION_IS_RELEASE, false)
define(_COPYRIGHT_YEAR, 2024)
define(_COPYRIGHT_HOLDERS,[The %s developers])
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[Bitcoin Core]])
AC_INIT([Navio Core],m4_join([.], _CLIENT_VERSION_MAJOR, _CLIENT_VERSION_MINOR, _CLIENT_VERSION_BUILD)m4_if(_CLIENT_VERSION_RC, [0], [], [rc]_CLIENT_VERSION_RC),[https://github.com/nav-io/navio-core/issues],[navio],[https://navio.org/])
AC_INIT([Navio Core],m4_join([.], _CLIENT_VERSION_MAJOR, _CLIENT_VERSION_MINOR, _CLIENT_VERSION_BUILD)m4_if(_CLIENT_VERSION_RC, [0], [], [rc]_CLIENT_VERSION_RC),[https://github.com/nav-io/navio-core/issues],[navio],[https://nav.io/])
AC_CONFIG_SRCDIR([src/validation.cpp])
AC_CONFIG_HEADERS([src/config/bitcoin-config.h])
AC_CONFIG_AUX_DIR([build-aux])
Expand Down
14 changes: 7 additions & 7 deletions doc/fuzzing.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ $ FUZZ=address_deserialize_v2 src/test/fuzz/fuzz -runs=1 fuzz_seed_corpus/addres

## Fuzzing corpora

The project's collection of seed corpora is found in the [`navio/qa-assets`](https://github.com/navio/qa-assets) repo.
The project's collection of seed corpora is found in the [`nav-io/qa-assets`](https://github.com/nav-io/qa-assets) repo.

To fuzz `process_message` using the [`navio/qa-assets`](https://github.com/navio/qa-assets) seed corpus:
To fuzz `process_message` using the [`nav-io/qa-assets`](https://github.com/nav-io/qa-assets) seed corpus:

```sh
$ git clone https://github.com/navio/qa-assets
$ git clone https://github.com/nav-io/qa-assets
$ FUZZ=process_message src/test/fuzz/fuzz qa-assets/fuzz_seed_corpus/process_message/
INFO: Seed: 1346407872
INFO: Loaded 1 modules (424174 inline 8-bit counters): 424174 [0x55d8a9004ab8, 0x55d8a906c3a6),
Expand All @@ -101,7 +101,7 @@ INFO: seed corpus: files: 991 min: 1b max: 1858b total: 288291b rss: 150Mb

## Run without sanitizers for increased throughput

Fuzzing on a harness compiled with `--with-sanitizers=address,fuzzer,undefined` is good for finding bugs. However, the very slow execution even under libFuzzer will limit the ability to find new coverage. A good approach is to perform occasional long runs without the additional bug-detectors (configure `--with-sanitizers=fuzzer`) and then merge new inputs into a corpus as described in the qa-assets repo (https://github.com/navio/qa-assets/blob/main/.github/PULL_REQUEST_TEMPLATE.md). Patience is useful; even with improved throughput, libFuzzer may need days and 10s of millions of executions to reach deep/hard targets.
Fuzzing on a harness compiled with `--with-sanitizers=address,fuzzer,undefined` is good for finding bugs. However, the very slow execution even under libFuzzer will limit the ability to find new coverage. A good approach is to perform occasional long runs without the additional bug-detectors (configure `--with-sanitizers=fuzzer`) and then merge new inputs into a corpus as described in the qa-assets repo (https://github.com/nav-io/qa-assets/blob/main/.github/PULL_REQUEST_TEMPLATE.md). Patience is useful; even with improved throughput, libFuzzer may need days and 10s of millions of executions to reach deep/hard targets.

## Reproduce a fuzzer crash reported by the CI

Expand All @@ -117,9 +117,9 @@ Fuzzing on a harness compiled with `--with-sanitizers=address,fuzzer,undefined`

## Submit improved coverage

If you find coverage increasing inputs when fuzzing you are highly encouraged to submit them for inclusion in the [`navio/qa-assets`](https://github.com/navio/qa-assets) repo.
If you find coverage increasing inputs when fuzzing you are highly encouraged to submit them for inclusion in the [`nav-io/qa-assets`](https://github.com/nav-io/qa-assets) repo.

Every single pull request submitted against the Bitcoin Core repo is automatically tested against all inputs in the [`navio/qa-assets`](https://github.com/navio/qa-assets) repo. Contributing new coverage increasing inputs is an easy way to help make Bitcoin Core more robust.
Every single pull request submitted against the Bitcoin Core repo is automatically tested against all inputs in the [`nav-io/qa-assets`](https://github.com/nav-io/qa-assets) repo. Contributing new coverage increasing inputs is an easy way to help make Bitcoin Core more robust.

## macOS hints for libFuzzer

Expand Down Expand Up @@ -324,7 +324,7 @@ be decoded in the same way.
Fuzzing with Eclipser will likely be much more effective if using an existing corpus:

```sh
$ git clone https://github.com/navio/qa-assets
$ git clone https://github.com/nav-io/qa-assets
$ FUZZ=bech32 dotnet Eclipser/build/Eclipser.dll fuzz -p src/test/fuzz/fuzz -t 36000 -i qa-assets/fuzz_seed_corpus/bech32 outputs --src stdin
```

Expand Down
2 changes: 1 addition & 1 deletion src/blsct/wallet/hdchain.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 The Navio Core developers
// Copyright (c) 2023-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/dandelion.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2023 The Navio Core developers
// Copyright (c) 2023-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/test/blsct/building_block/generator_deriver_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 The Navio Core developers
// Copyright (c) 2023-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/test/blsct/common_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 The Navio Core developers
// Copyright (c) 2023-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/test/blsct/keys_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 The Navio Core developers
// Copyright (c) 2022-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/test/blsct/pos/pos_chain_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 The Navio Core developers
// Copyright (c) 2023-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 The Navio Core developers
// Copyright (c) 2023-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/test/blsct/set_mem_proof/set_mem_proof_setup_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 The Navio Core developers
// Copyright (c) 2023-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/test/blsct/set_mem_proof/set_mem_proof_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 The Navio Core developers
// Copyright (c) 2023-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/test/blsct/sign_verify_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 The Navio Core developers
// Copyright (c) 2022-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/test/blsct/signature_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 The Navio Core developers
// Copyright (c) 2022-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/test/blsct/wallet/chain_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 The Navio Core developers
// Copyright (c) 2023-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
2 changes: 1 addition & 1 deletion src/test/fuzz/bech32_mod.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023 The Navio Core developers
// Copyright (c) 2023-2024 The Navio Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down
6 changes: 3 additions & 3 deletions src/test/util_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ BOOST_AUTO_TEST_CASE(message_sign)
const std::string message = "Trust no one";

const std::string expected_signature =
"IMP+uZWPFRS8hi0wTcc1kf5y0CVtXxSbI+EPXEucnKNHSfolrbv9doLbYRVsPcCRf1i384QdULL2o5Xc0l2bTrc=";
"HwLT3I4xgQaSZDhjg3QHTYp149isz26W2vDjURdBDlmECI1PiMOQDs9LgrtPYuyXZTBconIyD0/qQbZvkarYMtw=";

CKey privkey;
std::string generated_signature;
Expand Down Expand Up @@ -1655,14 +1655,14 @@ BOOST_AUTO_TEST_CASE(message_verify)
BOOST_CHECK_EQUAL(
MessageVerify(
"15CRxFdyRpGZLW9w8HnHvVduizdL5jKNbs",
"IMP+uZWPFRS8hi0wTcc1kf5y0CVtXxSbI+EPXEucnKNHSfolrbv9doLbYRVsPcCRf1i384QdULL2o5Xc0l2bTrc=",
"HwLT3I4xgQaSZDhjg3QHTYp149isz26W2vDjURdBDlmECI1PiMOQDs9LgrtPYuyXZTBconIyD0/qQbZvkarYMtw=",
"Trust no one"),
MessageVerificationResult::OK);

BOOST_CHECK_EQUAL(
MessageVerify(
"15CRxFdyRpGZLW9w8HnHvVduizdL5jKNbs",
"IK63OA2lFDytfg8rKLJPjVyR4hgHxE2hoLDHm2AWSAb7RR+zfPoqFBKiWmaposhdopwotk6sjvzagkbjqQ/r4kA=",
"Hxr9ZQY89F5EI8xY++WBbfedYqZQULPmaL0D/Y0K7E3ODdSRwEEQSzLvwqyvTYRp/ZnSEa/9F6o6vSgdz3GXEJ0=",
"Trust me"),
MessageVerificationResult::OK);
}
Expand Down
2 changes: 1 addition & 1 deletion test/functional/rpc_signmessagewithprivkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def run_test(self):

self.log.info('test signing with priv_key')
priv_key = 'cUeKHd5orzT3mz8P9pxyREHfsWtVfgsfDjiZZBcjUBAaGk1BTj7N'
expected_signature = 'IHbutveR2Dnsaqt//fowNCPrlEj4XJVrmTO8CXfhUOvtIfYLEdFv9Iuc4nswjwtySnJy8Toj54yxTPbYd6UNQr4='
expected_signature = 'IFW15n7PAcHcIkuTO5rERHpDwjc6ouSd8QbYe0hyQcBPAWOpvqe8Mblsay8kdwCHifXEZfWtHbAIX9mkiKGftvc='
signature = self.nodes[0].signmessagewithprivkey(priv_key, message)
assert_equal(expected_signature, signature)

Expand Down
Loading