Skip to content

Commit

Permalink
feat: required changes for multi engine release (#4123) (#4135)
Browse files Browse the repository at this point in the history
Co-authored-by: tomjohnburton <39559415+tomjohnburton@users.noreply.github.com>
  • Loading branch information
dandanlen and tomjohnburton authored Oct 18, 2023
1 parent 4b2984a commit 4cc90f2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 115 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/_10_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,3 @@ jobs:
token: ${{ secrets.CF_BACKEND_CODECOV_TOKEN }} # not required for public repos
files: lcov.info
fail_ci_if_error: false

test-preinst-scripts:
runs-on: ubuntu-latest
strategy:
matrix:
tests_path:
- state-chain/node/package/preinst-tests
- engine/package/preinst-tests
steps:
- name: Checkout 🏁
uses: actions/checkout@v3

- name: Install bats 🦇
run: |
sudo apt-get update
sudo apt-get install -y bats
- name: Test 🧪
shell: bash
run: |
bats tests/test_preinst.bats
working-directory: ${{ matrix.tests_path }}
12 changes: 9 additions & 3 deletions engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ extended-description = """\
Chainflip Validator Engine Package"""
maintainer = "Chainflip Labs GmbH <dev@chainflip.io>"
maintainer-scripts = "package/"
name = "chainflip-engine"
name = "chainflip-engine0.10"
priority = "required"
section = "rust"
systemd-units = { unit-name = "chainflip-engine", enable = false }
assets = [["target/release/chainflip-engine", "usr/bin/", "755"]]
systemd-units = [{ unit-name = "chainflip-engine0.10", enable = false }]
assets = [
[
"target/release/chainflip-engine",
"usr/bin/chainflip-engine0.10",
"755",
],
]

[package.metadata.deb.variants.development]
maintainer-scripts = "package/development"
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-engine --config-root /etc/chainflip/
ExecStart=/usr/bin/chainflip-engine0.10 --config-root /etc/chainflip/
Environment=RUST_LOG="chainflip_engine=debug,multisig=debug,warn,chainflip_engine::p2p=error"
LimitNOFILE=16000
LimitNOFILESoft=16000
Expand Down
88 changes: 0 additions & 88 deletions engine/package/perseverance/preinst

This file was deleted.

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-engine --config-root /etc/chainflip/
ExecStart=/usr/bin/chainflip-engine0.10 --config-root /etc/chainflip/

LimitNOFILE=16000
LimitNOFILESoft=16000
Expand Down

0 comments on commit 4cc90f2

Please sign in to comment.