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

🍒 cherry-pick: fix: publish chainflip-engine1.3 to debian packages 🐞 (#4653) #4654

Merged
merged 1 commit into from
Mar 18, 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
30 changes: 9 additions & 21 deletions .github/workflows/_03_release_checks.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
on:
workflow_call:
inputs:
tag:
type: string
required: false
default: ${{ github.ref_name }}
network:
type: string
required: false
Expand Down Expand Up @@ -41,37 +37,29 @@ jobs:
run: |
echo "version=$(cargo read-manifest --manifest-path ${{ matrix.manifest }} | jq -r .version)" >> $GITHUB_OUTPUT

- name: Check systemd files and debian package config 👀
shell: bash
run: ./ci/scripts/check_engine_systemd_config.sh ${{ steps.cargo.outputs.version }}

- name: Check tag version matches Cargo.toml 🕵️‍♂️
shell: bash
if: inputs.network != 'sisyphos'
run: |
if [[ "${{ inputs.tag }}" != "${{ steps.cargo.outputs.version }}" ]]; then
echo "Tag version (${{ inputs.tag }}) does not match version (${{ steps.cargo.outputs.version }}) in ${{ matrix.manifest }}"
if [[ "${{ github.ref_name }}" != "${{ steps.cargo.outputs.version }}" ]]; then
echo "Tag version (${{ github.ref_name }}) does not match version (${{ steps.cargo.outputs.version }}) in ${{ matrix.manifest }}"
exit 1
fi

- name: Check systemd files and debian package config 👀
shell: bash
run: ./ci/scripts/check_engine_systemd_config.sh ${{ inputs.tag }}

check-engine-systemd:
runs-on: ubuntu-latest
steps:
- name: Checkout 🏁
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Check systemd files and debian package config 👀
shell: bash
run: ./ci/scripts/check_engine_systemd_config.sh ${{ inputs.tag }}

check-changelog:
runs-on: ubuntu-latest
if: inputs.network != 'sisyphos'
steps:
- name: Checkout 🏁
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Check changelog 📝
shell: bash
run: ./ci/scripts/check_changelog.sh ${{ inputs.tag }}
run: ./ci/scripts/check_changelog.sh ${{ github.ref_name }}

check-runtime-spec-version:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-sisyphos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
pre-check:
uses: ./.github/workflows/_01_pre_check.yml
secrets: inherit
release-checks:
uses: ./.github/workflows/_03_release_checks.yml
with:
network: "sisyphos"
test:
uses: ./.github/workflows/_10_test.yml
secrets: inherit
Expand Down
7 changes: 6 additions & 1 deletion ci/scripts/check_runtime_spec_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ fi

if [ $network == "berghain" ]; then
RPC_ENDPOINT="https://mainnet-archive.chainflip.io"
elif [ $network == "perseverance" ]; then
RPC_ENDPOINT="https://archive.perseverance.chainflip.io"
elif [ $network == "sisyphos" ]; then
RPC_ENDPOINT="https://archive.sisyphos.chainflip.io"
else
RPC_ENDPOINT="https://perseverance.chainflip.xyz"
echo "Invalid network"
exit 1
fi

live_runtime_version=$(curl -s -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "state_getRuntimeVersion", "params":[]}' $RPC_ENDPOINT | jq .result.specVersion)
Expand Down
6 changes: 3 additions & 3 deletions engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ extended-description = """\
Chainflip Validator Engine Package"""
maintainer = "Chainflip Labs GmbH <dev@chainflip.io>"
maintainer-scripts = "package/"
name = "chainflip-engine1.2"
name = "chainflip-engine1.3"
priority = "required"
section = "rust"
systemd-units = [{ unit-name = "chainflip-engine1.2", enable = false }]
systemd-units = [{ unit-name = "chainflip-engine1.3", enable = false }]
assets = [
[
"target/release/chainflip-engine",
"usr/bin/chainflip-engine1.2",
"usr/bin/chainflip-engine1.3",
"755",
],
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Restart=always
RestartSec=30
Type=simple

ExecStart=/usr/bin/chainflip-engine1.2 --config-root /etc/chainflip/
ExecStart=/usr/bin/chainflip-engine1.3 --config-root /etc/chainflip/

LimitNOFILE=16000
LimitNOFILESoft=16000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Restart=always
RestartSec=30
Type=simple

ExecStart=/usr/bin/chainflip-engine1.2 --config-root /etc/chainflip/
ExecStart=/usr/bin/chainflip-engine1.3 --config-root /etc/chainflip/
Environment=RUST_LOG="chainflip_engine=debug,multisig=debug,warn,chainflip_engine::p2p=error"
LimitNOFILE=16000
LimitNOFILESoft=16000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Restart=always
RestartSec=30
Type=simple

ExecStart=/usr/bin/chainflip-engine1.2 --config-root /etc/chainflip/
ExecStart=/usr/bin/chainflip-engine1.3 --config-root /etc/chainflip/

LimitNOFILE=16000
LimitNOFILESoft=16000
Expand Down
Loading