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

[release] v0.8.1 [Falkor] #600

Merged
merged 47 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
4dd2b0a
Update komodod_cd.yml
smk762 Jul 1, 2023
657cc69
Merge pull request #590 from KomodoPlatform/Run-CD-on-push-to-master
tonymorony Jul 3, 2023
01da71a
bump libcurl to 8.4.0
DeckerSU Oct 18, 2023
2b28926
add update-rust-hashes.sh script
DeckerSU Oct 24, 2023
cfe8d56
depends: update rust to 1.69.0
DeckerSU Oct 24, 2023
23a22d6
mac ci: try to fix brew upgrade / existing links
DeckerSU Oct 24, 2023
3f98ecd
mac ci: remove redundant unlink for node
DeckerSU Oct 24, 2023
642c698
build: mac, suppress deprecated declarations warning
DeckerSU Oct 24, 2023
fcb431a
update KMD checkpoints
DeckerSU Oct 26, 2023
cc237be
Merge pull request #594 from DeckerSU/patch-bump-libcurl
DeckerSU Oct 28, 2023
9d8c5f6
Merge pull request #595 from DeckerSU/patch-bump-rust
DeckerSU Oct 28, 2023
4ceb0ee
temp disable CC and basic RPC jobs in workflows
DeckerSU Oct 28, 2023
e42444f
update assetchains.old, remove old (deprecated) chains
DeckerSU Aug 7, 2023
a6ce7c8
add events related unit tests
DeckerSU Aug 8, 2023
9c32d6e
add NormalKMDLTCNota unit test
DeckerSU Aug 9, 2023
0ecea4a
add advanced clear of all variables between tests
DeckerSU Aug 9, 2023
13ea74e
add MIL->KMD notarisation test (3p coin nota test)
DeckerSU Aug 11, 2023
e06aa5b
add MARTY->KMD notarisation test (AC nota test in KMD chain)
DeckerSU Aug 11, 2023
3479410
add MARTY->KMD notarisation test (AC nota test in MARTY chain)
DeckerSU Aug 11, 2023
00cb01d
enable all tests, add missed checks
DeckerSU Aug 14, 2023
81581d0
correct opretlen calculations for BIG_ENDIAN
DeckerSU Aug 14, 2023
ce4d344
remove deprecated KV OPRET in assetchains
DeckerSU Aug 14, 2023
e5023e2
fix PhantomOpReturnEvent test
DeckerSU Aug 14, 2023
b435ecc
refactor opret chain search and compare
DeckerSU Aug 14, 2023
54ebb28
more get rid of strcmp in komodo_voutupdate
DeckerSU Aug 14, 2023
c645cb6
get rid of legacy PAX related specific oprets
DeckerSU Aug 14, 2023
b8678b4
remove unneded OtherTest
DeckerSU Aug 14, 2023
e94d98d
limit the scope of ratification transactions to KMD
DeckerSU Aug 15, 2023
2d5f55b
komodo_voutupdate: don't try to process staking oprets and notary proofs
DeckerSU Aug 15, 2023
40475ad
bump version [0.8.1]
DeckerSU Oct 29, 2023
5e362af
Merge pull request #596 from DeckerSU/patch-update-checkpoints
ca333 Nov 3, 2023
bac0096
Merge pull request #597 from DeckerSU/patch-disable-ci-jobs
ca333 Nov 3, 2023
3212c3c
Merge pull request #598 from DeckerSU/patch-refactor-old-code
ca333 Nov 3, 2023
b3e9e1f
Merge pull request #599 from DeckerSU/patch-version-bump
ca333 Nov 3, 2023
72a6df2
komodo_args: fix rpc and p2p port in ACs on MacOS
DeckerSU Nov 2, 2023
8640b82
tests: add ParseArgumentsTests for komodo_args / chainparams_commandline
DeckerSU Nov 6, 2023
6a8112c
tests: fix ParseArgumentsTests initializer list issue
DeckerSU Nov 6, 2023
232b422
tests: KomodoFeatures fix missed override keyword for member- functions
DeckerSU Nov 6, 2023
3217da4
tests: add missed fs namespace
DeckerSU Nov 7, 2023
7f68232
tests: fix compatibility of LegacyEvents test with other tests
DeckerSU Nov 7, 2023
aceb7c7
test: improve mapBlockIndex cleanup in LegacyEventsTests
DeckerSU Nov 7, 2023
c86da4d
Merge pull request #601 from DeckerSU/patch-parse-arg-test
ca333 Nov 8, 2023
f38c6f0
update dockerfiles
smk762 Nov 9, 2023
fc6804b
use ubuntu-20.04 for CI/CD
smk762 Nov 9, 2023
c470b18
rm / unlink breaking brews
smk762 Nov 9, 2023
bd682c8
use ubuntu-latest for win builds
smk762 Nov 9, 2023
c248b15
Merge pull request #603 from KomodoPlatform/update-CD
ca333 Nov 14, 2023
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
17 changes: 11 additions & 6 deletions .github/workflows/komodo_linux_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

linux-build:
name: Linux Build
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -47,9 +47,10 @@ jobs:
path: ./komodo-linux.tar.gz

linux-test-dice-token-reards-faucet-cc:
if: ${{ false }}

name: Test (Linux/Dice, Token, Faucet, Rewards)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down Expand Up @@ -83,9 +84,10 @@ jobs:
cd qa/pytest_komodo
./ci_setup.sh "cc_modules/test_dice.py cc_modules/test_faucet.py cc_modules/test_token.py cc_modules/test_rewards.py"
linux-test-oracles:
if: ${{ false }}

name: Test (Linux/OraclesCC)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down Expand Up @@ -119,9 +121,10 @@ jobs:
cd qa/pytest_komodo
./ci_setup.sh cc_modules/test_oracles.py
linux-test-baserpc:
if: ${{ false }}

name: Test (Linux/BasicRPC)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down Expand Up @@ -155,9 +158,10 @@ jobs:
cd qa/pytest_komodo
./ci_setup.sh basic
linux-test-channels:
if: ${{ false }}

name: Test (Linux/ChannelsCC)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down Expand Up @@ -191,9 +195,10 @@ jobs:
cd qa/pytest_komodo
./ci_setup.sh cc_modules/test_channels.py
linux-test-heir:
if: ${{ false }}

name: Test (Linux/HeirCC)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/komodo_mac_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ jobs:
steps:
- uses: actions/checkout@v2

# Workaround for https://github.com/actions/setup-python/issues/577
- name: Clean up binaries and links (macOS)
run: |
rm -f /usr/local/bin/2to3-3.*
rm -f /usr/local/bin/idle3.*
rm -f /usr/local/bin/pydoc3.*
rm -f /usr/local/bin/python3.*
rm -f /usr/local/bin/2to3
rm -f /usr/local/bin/idle3
rm -f /usr/local/bin/pydoc3
rm -f /usr/local/bin/python3
rm -f /usr/local/bin/python3-config

- name: Install deps (macOS)
run: |
brew update
Expand Down Expand Up @@ -43,6 +56,7 @@ jobs:
path: ./komodo-macos.tar.gz

macos-test-dice-token-reards-faucet-cc:
if: ${{ false }}

name: Test (MacOS/Dice, Token, Faucet, Rewards)
runs-on: macos-latest
Expand Down Expand Up @@ -72,6 +86,7 @@ jobs:
./ci_setup.sh "cc_modules/test_dice.py cc_modules/test_faucet.py cc_modules/test_token.py cc_modules/test_rewards.py"

macos-test-oracles:
if: ${{ false }}

name: Test (macos/OraclesCC)
runs-on: macos-latest
Expand Down Expand Up @@ -100,6 +115,7 @@ jobs:
./ci_setup.sh cc_modules/test_oracles.py

macos-test-baserpc:
if: ${{ false }}

name: Test (macos/BasicRPC)
runs-on: macos-latest
Expand Down Expand Up @@ -128,6 +144,7 @@ jobs:
./ci_setup.sh basic

macos-test-channels:
if: ${{ false }}

name: Test (macos/ChannelsCC)
runs-on: macos-latest
Expand Down Expand Up @@ -156,6 +173,7 @@ jobs:
./ci_setup.sh cc_modules/test_channels.py

macos-test-heir:
if: ${{ false }}

name: Test (macos/HeirCC)
runs-on: macos-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/komodo_win_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
path: ./komodod_win.zip

windows-test-baserpc:
if: ${{ false }}

name: Test (Win/BasicRPC)
needs: windows-build
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
cd qa\pytest_komodo
start_ci.bat basic
windows-test-dice-faucet-tok-rewCC:
if: ${{ false }}

name: Test (Win/Dice Faucet Token Rewards)
runs-on: windows-latest
Expand Down Expand Up @@ -133,6 +135,7 @@ jobs:
cd qa\pytest_komodo
start_ci.bat cc_modules\test_dice.py cc_modules\test_faucet.py cc_modules\test_token.py cc_modules\test_rewards.py
windows-test-oracles-cc:
if: ${{ false }}

name: Test (Win/OraclesCC)
runs-on: windows-latest
Expand Down Expand Up @@ -163,6 +166,7 @@ jobs:
cd qa\pytest_komodo
start_ci.bat cc_modules\test_oracles.py
windows-test-heir-cc:
if: ${{ false }}

name: Test (Win/HeirCC)
runs-on: windows-latest
Expand Down Expand Up @@ -193,6 +197,7 @@ jobs:
cd qa\pytest_komodo
start_ci.bat cc_modules\test_heir.py
windows-test-channels-cc:
if: ${{ false }}

name: Test (Win/ChannelsCC)
runs-on: windows-latest
Expand Down
31 changes: 18 additions & 13 deletions .github/workflows/komodod_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- beta
- dev
- research

- master

jobs:

Expand All @@ -33,19 +33,22 @@ jobs:
uses: actions/checkout@v2

- name: Install deps (Linux)
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update
sudo apt-get install software-properties-common -y
sudo apt-get update # prevents repo404 errors on apt-remove below
sudo apt-get remove php* msodbcsql17 mysql* powershell dotn*
sudo apt-get update
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo ACCEPT_EULA=Y apt-get upgrade -y
sudo apt-get install -q \
curl \
python3 \
python3-dev \
python3-setuptools \
python3-pip \
libcurl4-openssl-dev \
libssl-dev -y
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool \
libncurses-dev unzip wget bsdmainutils automake libboost-all-dev libssl-dev \
libprotobuf-dev protobuf-compiler libqrencode-dev libdb++-dev ntp ntpdate nano \
curl libevent-dev libcurl4-gnutls-dev cmake clang \
libsodium-dev ncurses-dev git python3 python3-zmq zlib1g-dev libstdc++6 -y
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
- name: Build (Linux)
if: runner.os == 'Linux'
run: |
Expand All @@ -64,12 +67,12 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

- name: Build container
run: docker build -f Dockerfile.release -t komodoofficial/komodo:cd_release_${{ steps.shortify_commit.outputs.sha_short }}_${{ steps.extract_branch.outputs.branch }} .
run: docker build -f Dockerfile.release -t ${{ secrets.DOCKER_ORG }}/komodo:cd_release_${{ steps.shortify_commit.outputs.sha_short }}_${{ steps.extract_branch.outputs.branch }} .

- name: Push to docker hub
uses: actions-hub/docker@master
with:
args: push komodoofficial/komodo:cd_release_${{ steps.shortify_commit.outputs.sha_short }}_${{ steps.extract_branch.outputs.branch }}
args: push ${{ secrets.DOCKER_ORG }}/komodo:cd_release_${{ steps.shortify_commit.outputs.sha_short }}_${{ steps.extract_branch.outputs.branch }}

osx-build:
name: OSX Build
Expand All @@ -78,6 +81,8 @@ jobs:
- uses: actions/checkout@v2
- name: Install deps (macOS)
run: |
rm '/usr/local/bin/2to3'
brew unlink node
brew update
brew upgrade || true
brew tap discoteq/discoteq; brew install flock
Expand Down Expand Up @@ -135,7 +140,7 @@ jobs:

publish-release:
name: Publishing CD releases
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [linux-build, osx-build, windows-build]
steps:
- name: Download komodo-linux.zip
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ubuntu:16.04
MAINTAINER Mihail Fedorov <kolo@komodoplatform.com>
FROM ubuntu:20.04
LABEL maintainer="smk762 <smk@komodoplatform.com>"

RUN apt-get -y update && \
apt-get -y upgrade && \
Expand Down
20 changes: 15 additions & 5 deletions Dockerfile.release
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
FROM ubuntu:20.04
RUN \
apt-get update &&\
apt-get install -y libgomp1
CMD mkdir /komodo
LABEL maintainer="[email protected]"
RUN \
export ACCEPT_EULA=Y && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install software-properties-common -y && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update && \
apt-get upgrade -y && \
apt-get dist-upgrade -y && \
apt-get install libgomp1 libstdc++6 binutils -y
RUN mkdir /komodo
WORKDIR /komodo
COPY src/komodod src/komodo-cli ./
CMD ./komodod
RUN ln -sf /komodo/komodod /usr/bin/komodod && \
ln -sf /komodo/komodo-cli /usr/bin/komodo-cli
CMD ./komodod
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 8)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_REVISION, 1)
define(_CLIENT_VERSION_BUILD, 0)
define(_ZC_BUILD_VAL, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, m4_incr(_CLIENT_VERSION_BUILD), m4_eval(_CLIENT_VERSION_BUILD < 50), 1, m4_eval(_CLIENT_VERSION_BUILD - 24), m4_eval(_CLIENT_VERSION_BUILD == 50), 1, , m4_eval(_CLIENT_VERSION_BUILD - 50)))
define(_CLIENT_VERSION_SUFFIX, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, _CLIENT_VERSION_REVISION-beta$1, m4_eval(_CLIENT_VERSION_BUILD < 50), 1, _CLIENT_VERSION_REVISION-rc$1, m4_eval(_CLIENT_VERSION_BUILD == 50), 1, _CLIENT_VERSION_REVISION, _CLIENT_VERSION_REVISION-$1)))
Expand Down
38 changes: 38 additions & 0 deletions contrib/devtools/update-rust-hashes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash

export LC_ALL=C

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
RUST_PACKAGE="$SCRIPT_DIR/../../depends/packages/rust.mk"

RUST_VERSION=$( grep -oP "_version=\K.*" $RUST_PACKAGE )

update_hash() {
url="https://static.rust-lang.org/dist/$1-$RUST_VERSION-$2.tar.gz"
echo "Fetching $url"
hash=$( curl $url | sha256sum | awk '{print $1}' )
sed -i "/\$(package)_$3_$4=/c\\\$(package)_$3_$4=$hash" $RUST_PACKAGE
}

update_rust_hash() {
update_hash rust $1 sha256_hash $2
}

update_stdlib_hash() {
update_hash rust-std $1 rust_std_sha256_hash $1
}

# For native targets
# update_rust_hash RUST_TARGET MAKEFILE_PACKAGE_IDENTIFIER
update_rust_hash aarch64-unknown-linux-gnu aarch64_linux
update_rust_hash x86_64-apple-darwin darwin
update_rust_hash x86_64-unknown-linux-gnu linux
update_rust_hash x86_64-unknown-freebsd freebsd
update_rust_hash x86_64-pc-windows-gnu mingw32

# For cross-compilation targets
# update_stdlib_hash RUST_TARGET
# update_stdlib_hash aarch64-unknown-linux-gnu
# update_stdlib_hash x86_64-apple-darwin
# update_stdlib_hash x86_64-pc-windows-gnu
# update_stdlib_hash x86_64-unknown-freebsd
16 changes: 8 additions & 8 deletions depends/packages/libcurl.mk
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package=libcurl
$(package)_version=7.76.1
$(package)_version=8.4.0
$(package)_dependencies=openssl
$(package)_download_path=https://curl.haxx.se/download
$(package)_file_name=curl-$($(package)_version).tar.gz
$(package)_sha256_hash=5f85c4d891ccb14d6c3c701da3010c91c6570c3419391d485d95235253d837d7
$(package)_config_opts_linux=--disable-shared --enable-static --prefix=$(host_prefix) --host=x86_64-unknown-linux-gnu
$(package)_config_opts_mingw32=--enable-mingw --disable-shared --enable-static --prefix=$(host_prefix) --host=x86_64-w64-mingw32
$(package)_config_opts_darwin=--disable-shared --enable-static --prefix=$(host_prefix)
$(package)_cflags_darwin=-mmacosx-version-min=10.9
$(package)_sha256_hash=816e41809c043ff285e8c0f06a75a1fa250211bbfb2dc0a037eeef39f1a9e427
$(package)_config_opts=--with-openssl --disable-shared --enable-static --prefix=$(host_prefix)
$(package)_config_opts_linux=--host=x86_64-unknown-linux-gnu
$(package)_config_opts_mingw32=--enable-mingw --host=x86_64-w64-mingw32
$(package)_cflags_darwin=-mmacosx-version-min=$(OSX_MIN_VERSION)
$(package)_conf_tool=./configure

ifeq ($(build_os),darwin)
define $(package)_set_vars
$(package)_build_env=MACOSX_DEPLOYMENT_TARGET="10.9"
$(package)_build_env=MACOSX_DEPLOYMENT_TARGET="$(OSX_MIN_VERSION)"
endef
endif

Expand All @@ -32,7 +32,7 @@ endef

ifeq ($(build_os),darwin)
define $(package)_build_cmds
$(MAKE) CPPFLAGS="-I$(host_prefix)/include -fPIC" CFLAGS='-mmacosx-version-min=10.9'
$(MAKE) CPPFLAGS="-I$(host_prefix)/include -fPIC" CFLAGS="-mmacosx-version-min=$(OSX_MIN_VERSION)"
endef
else
define $(package)_build_cmds
Expand Down
2 changes: 1 addition & 1 deletion depends/packages/librustzcash.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(package)_dependencies=rust $(rust_crates)
$(package)_patches=cargo.config 0001-Start-using-cargo-clippy-for-CI.patch remove-dev-dependencies.diff

ifeq ($(host_os),mingw32)
$(package)_library_file=target/x86_64-pc-windows-gnu/release/rustzcash.lib
$(package)_library_file=target/x86_64-pc-windows-gnu/release/librustzcash.a
else
$(package)_library_file=target/release/librustzcash.a
endif
Expand Down
Loading
Loading