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

ci: Changes to release-pipeline, adding additional automation for setting up nodes locally. #1757

Merged
merged 28 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e18f08f
ci: adding pipeline to build and push ubuntu, and macos docker images…
gzukel Feb 12, 2024
5370e15
ci: adding pipeline to build and push ubuntu, and macos docker images…
gzukel Feb 12, 2024
f38fd72
adjusted timeouts and did a global vs individual timeout
gzukel Feb 13, 2024
bf43896
Merge branch 'develop' into ci-add-docker-build-and-push
gzukel Feb 13, 2024
b73b74a
updated change log location and added arm support
gzukel Feb 13, 2024
a3d128f
install docker for mac build
gzukel Feb 13, 2024
0b3c192
starting docker after installing on the mac
gzukel Feb 13, 2024
1fd9516
modifying the way im installing docker on the macos runners
gzukel Feb 13, 2024
fdc610d
modifying the way im installing docker on the macos runners
gzukel Feb 13, 2024
50ba0e8
Testing
gzukel Feb 14, 2024
64938f8
updated
gzukel Feb 14, 2024
e6fc074
Adjust the pipeline to install docker and run docker for the mac runn…
gzukel Feb 14, 2024
aa57f46
Adjust the pipeline to install docker and run docker for the mac runn…
gzukel Feb 14, 2024
e94c877
Merge branch 'develop' into ci-add-docker-build-and-push
gzukel Feb 14, 2024
abc9864
Adjust the pipeline to install docker and run docker for the mac runn…
gzukel Feb 14, 2024
b2b147a
Merge branch 'develop' into ci-add-docker-build-and-push
gzukel Feb 15, 2024
5b23b42
making some release pipeline changes. initial push for testing of tho…
gzukel Feb 15, 2024
879fb47
fixing if conditions for skip checks
gzukel Feb 15, 2024
d5495af
trim the user input vesion to check major
gzukel Feb 15, 2024
2fcd3ec
trim the user input vesion to check major
gzukel Feb 15, 2024
ef3f08c
trim the user input vesion to check major
gzukel Feb 15, 2024
5b9a240
adjusted the approver step
gzukel Feb 15, 2024
d0bc29f
adjusted the approver step
gzukel Feb 15, 2024
6c105a1
updated version description
gzukel Feb 15, 2024
2e7ccb7
adding charlie to approvers
gzukel Feb 15, 2024
4fcc554
adding charlie to approvers
gzukel Feb 15, 2024
cc8035d
adding charlie to approvers
gzukel Feb 15, 2024
44e7f44
removed nosec, fix typo, removed unessecary comment
gzukel Feb 16, 2024
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
13 changes: 12 additions & 1 deletion .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

docker_build_mac:
runs-on: macos-latest
timeout-minutes: 30
timeout-minutes: 120
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -73,6 +73,17 @@ jobs:
run: |
echo "GITHUB_TAG_MAJOR_VERSION=${{ github.event.inputs.version }}" >> ${GITHUB_ENV}

- name: Setup docker and docker-compose (missing on MacOS)
if: runner.os == 'macos'
run: |
brew install docker docker-compose

# Link the Docker Compose v2 plugin so it's understood by the docker CLI
mkdir -p ~/.docker/cli-plugins
ln -sfn /usr/local/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose

colima start

- name: "BUILD:PUSH:MONITORING:DOCKER:IMAGE"
uses: ./.github/actions/build-docker-images-generic
with:
Expand Down
28 changes: 5 additions & 23 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,32 @@

* `zetaclientd start` : 2 inputs required from stdin

### Features

* [1698](https://github.com/zeta-chain/node/issues/1698) - bitcoin dynamic depositor fee

### Docs

* [1731](https://github.com/zeta-chain/node/pull/1731) added doc for hotkey and tss key-share password prompts.

### Features

*[1728] (https://github.com/zeta-chain/node/pull/1728) - allow aborted transactions to be refunded by minting tokens to zEvm.

gzukel marked this conversation as resolved.
Show resolved Hide resolved
### Refactor

* [1630](https://github.com/zeta-chain/node/pull/1630) added password prompts for hotkey and tss keyshare in zetaclient
Starting zetaclient now requires two passwords to be input; one for the hotkey and another for the tss key-share.

### Fixes

* [1678](https://github.com/zeta-chain/node/issues/1678) - clean cached stale block to fix evm outtx hash mismatch
* [1690](https://github.com/zeta-chain/node/issues/1690) - double watched gas prices and fix btc scheduler
* [1687](https://github.com/zeta-chain/node/pull/1687) - only use EVM supported chains for gas stability pool
* [1692](https://github.com/zeta-chain/node/pull/1692) - fix get params query for emissions module
* [1706](https://github.com/zeta-chain/node/pull/1706) - fix CLI crosschain show-out-tx-tracker
* [1707](https://github.com/zeta-chain/node/issues/1707) - fix bitcoin fee rate estimation
* [1712](https://github.com/zeta-chain/node/issues/1712) - increase EVM outtx inclusion timeout to 20 minutes
* [1733](https://github.com/zeta-chain/node/pull/1733) - remove the unnecessary 2x multiplier in the convertGasToZeta RPC
* [1733](https://github.com/zeta-chain/node/pull/1733)) - remove the unnecessary 2x multiplier in the convertGasToZeta RPC
gzukel marked this conversation as resolved.
Show resolved Hide resolved
* [1721](https://github.com/zeta-chain/node/issues/1721) - zetaclient should provide bitcoin_chain_id when querying TSS address
* [1744](https://github.com/zeta-chain/node/pull/1744) - added cmd to encrypt tss keyshare file, allowing empty tss password for backward compatibility.

### Tests

* [1584](https://github.com/zeta-chain/node/pull/1584) - allow to run E2E tests on any networks
* [1753](https://github.com/zeta-chain/node/pull/1753) - fix gosec errors on usage of rand package

### CI

* CI: adding pipeline to build and push docker images into dockerhub on release for ubuntu and macos.
* Added pipeline to build and push docker images into dockerhub on release for ubuntu and macos.
* Adjusted the pipeline for building and pushing docker images for MacOS to install and run docker.
* Added docker-compose and make commands for launching full nodes. `make mainnet-zetarpc-node` `make mainnet-bitcoind-node`
* Made adjustments to the docker-compose for launching mainnet full nodes to include examples of using the docker images build from the docker image build pipeline.
* [1736](https://github.com/zeta-chain/node/pull/1736) - chore: add Ethermint endpoints to OpenAPI

### Chores
Expand All @@ -64,9 +51,6 @@
* [1667](https://github.com/zeta-chain/node/issues/1667) - estimate SegWit tx size in uinit of vByte
* [1675](https://github.com/zeta-chain/node/issues/1675) - use chain param ConfirmationCount for bitcoin confirmation

## Chores
* [1694](https://github.com/zeta-chain/node/pull/1694) - remove standalone network, use require testing package for the entire node folder

## Version: v12.1.0

### Tests
Expand All @@ -93,7 +77,6 @@
* [1585](https://github.com/zeta-chain/node/pull/1585) - Updated release instructions
* [1615](https://github.com/zeta-chain/node/pull/1615) - Add upgrade handler for version v12.1.0


### Features

* [1591](https://github.com/zeta-chain/node/pull/1591) - support lower gas limit for voting on inbound and outbound transactions
Expand Down Expand Up @@ -279,5 +262,4 @@ Getting the correct TSS address for Bitcoin now requires proviidng the Bitcoin c
### CI

* [1218](https://github.com/zeta-chain/node/pull/1218) - cross-compile release binaries and simplify PR testings
* [1302](https://github.com/zeta-chain/node/pull/1302) - add mainnet builds to goreleaser

* [1302](https://github.com/zeta-chain/node/pull/1302) - add mainnet builds to goreleaser
4 changes: 2 additions & 2 deletions contrib/local-mainnet/zetacored/configs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ ttl-num-blocks = 0
[statesync]
enable = "true"
rpc_servers = "34.69.20.168:26657,34.69.20.168:26657"
trust_height = "1542228"
trust_hash = "5B3377FE8F1D2A64E56D203C205AA68C64BB95269C9BD1B199B79225B4373BB0"
trust_height = "1721170"
trust_hash = "249AF38ABF9934F8D8CCFCEAA46997AB30C1F6AD14E1C70183B2CE7B16485B2C"
trust_period = "168h0m0s"
discovery_time = "15s"
temp_dir = ""
Expand Down
4 changes: 2 additions & 2 deletions contrib/local-mainnet/zetacored/configs/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ fi
logt "Setup script variables."
export STATE_SYNC_SERVER="${STATE_SYNC_SERVER}"
export TRUST_HEIGHT=$(curl -s http://${STATE_SYNC_SERVER}/block | jq -r '.result.block.header.height')
#export HEIGHT=$((TRUST_HEIGHT-40000))
export HEIGHT=$((TRUST_HEIGHT-100))
export HEIGHT=$((TRUST_HEIGHT-40000))
#export HEIGHT=$((TRUST_HEIGHT-100))
gzukel marked this conversation as resolved.
Show resolved Hide resolved
export TRUST_HASH=$(curl -s "http://${STATE_SYNC_SERVER}/block?height=${HEIGHT}" | jq -r '.result.block_id.hash')
export RPC_STATE_SYNC_SERVERS="${RPC_STATE_SYNC_SERVERS}"
export SEED="${SEED_NODE}"
Expand Down
4 changes: 3 additions & 1 deletion contrib/local-mainnet/zetacored/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ version: '3.8'
services:
zetachain_mainnet_rpc:
platform: linux/amd64
#This will build the binary from the GIT_REF you are locally on.
build:
context: ../..
dockerfile: Dockerfile
#image: golang:1.21
#If you want to use the pre-built docker images you would comment out Build lines, and uncomment this line with the correct docker tag.
#image: zetachain/zeatcored:ubuntu-{CURRENT_RELEASE_VERSION}
container_name: zetachain_mainnet_rpc
environment:
CHAIN_ID: "zetachain_7000-1"
Expand Down
Loading