Skip to content

Commit

Permalink
chore: disable tests and add lintian as step
Browse files Browse the repository at this point in the history
  • Loading branch information
eenagy committed Apr 27, 2024
1 parent 9e5f6bf commit 64f4649
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 29 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pkgbuilder-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,11 @@ jobs:
pkg-builder build-env create ${{ inputs.codename }}/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml
echo "${HOME}/.cache/sbuild/bookworm-amd64.tar.gz" >> $GITHUB_PATH
- name: Create package
run: pkg-builder package ${{ inputs.codename }}/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml false false
- name: package
run: pkg-builder package ${{ inputs.codename }}/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml false false false

- name: lintian
run: pkg-builder lintian ${{ inputs.codename }}/${{inputs.package-name}}/${{ inputs.package-version-with-revision }}/pkg-builder.toml

- name: piuparts
run: |
Expand Down
3 changes: 2 additions & 1 deletion debian-12/eth-node-besu/23.10.1-1/src/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
override_dh_auto_build:
./gradlew distTar installDist

# TODO reenable tests, disabled to speed up testing autopkgtests
override_dh_auto_test:
./gradlew test
# ./gradlew test

override_dh_auto_install:
# This relies on make install script
Expand Down
3 changes: 2 additions & 1 deletion debian-12/eth-node-erigon/2.53.2-1/src/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
override_dh_dwz:
# skip of optimization of DWARF debug information in ELF binaries via dwz

# TODO reenable tests, disabled to speed up testing autopkgtests
override_dh_auto_test:
make -j1 test
# make -j1 test

override_dh_auto_install:
# This relies on make install script
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# TODO this is a bug, let's wait and see if compiled with different flags will solve it
# waiting for the verify build task
eth-node-geth: statically-linked-binary [usr/lib/eth-node-geth/bin/rlpdump]
3 changes: 2 additions & 1 deletion debian-12/eth-node-geth/1.13.4-1/src/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ override_dh_auto_clean:
# on bookworm clean succeeds, even if dependency is not installed
-make -j1 clean

# TODO reenable tests, disabled to speed up testing autopkgtests
override_dh_auto_test:
make -j1 test
# make -j1 test
21 changes: 11 additions & 10 deletions debian-12/eth-node-lighthouse/4.5.0-1/src/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ export FEATURES=gnosis,slasher-lmdb,slasher-mdbx,jemalloc
override_dh_auto_build:
dh_auto_build

# TODO reenable tests, disabled to speed up testing autopkgtests
override_dh_auto_test:
# # # Install additional test dependency
cd /tmp && curl -s -L https://github.com/foundry-rs/foundry/releases/download/nightly-ca67d15f4abd46394b324c50e21e66f306a1162d/foundry_nightly_linux_amd64.tar.gz -o foundry_nightly_linux_amd64.tar.gz
cd /tmp && tar xvf foundry_nightly_linux_amd64.tar.gz
cp /tmp/anvil $(HOME)/.cargo/bin
anvil --version # check if it correctly installed
# # TODO include docker tests (watch)
# web3signer_tests also fail if run by workspace, not sure why (web3signer_tests)
cargo test --workspace --release --exclude ef_tests --exclude beacon_chain --exclude slasher --exclude watch --exclude web3signer_tests
# run web3signer tests seperately
cargo test -p web3signer_tests --lib
# # # # Install additional test dependency
# cd /tmp && curl -s -L https://github.com/foundry-rs/foundry/releases/download/nightly-ca67d15f4abd46394b324c50e21e66f306a1162d/foundry_nightly_linux_amd64.tar.gz -o foundry_nightly_linux_amd64.tar.gz
# cd /tmp && tar xvf foundry_nightly_linux_amd64.tar.gz
# cp /tmp/anvil $(HOME)/.cargo/bin
# anvil --version # check if it correctly installed
# # # TODO include docker tests (watch)
# # web3signer_tests also fail if run by workspace, not sure why (web3signer_tests)
# cargo test --workspace --release --exclude ef_tests --exclude beacon_chain --exclude slasher --exclude watch --exclude web3signer_tests
# # run web3signer tests seperately
# cargo test -p web3signer_tests --lib

override_dh_auto_install:
# This relies on make install script
Expand Down
9 changes: 5 additions & 4 deletions debian-12/eth-node-lodestar/1.11.3-1/src/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ export INSTALL_DIR=/usr/lib/eth-node-lodestar
%:
dh $@

# TODO reenable tests, disabled to speed up testing autopkgtests
override_dh_auto_test:
yarn test:unit
# TODO Enable docker tests, docker does not work under chroot, yet
# yarn test:e2e
yarn test:e2e:sim
# yarn test:unit
# # TODO Enable docker tests, docker does not work under chroot, yet
# # yarn test:e2e
# yarn test:e2e:sim

override_dh_auto_build:
yarn install --frozen-lockfile
Expand Down
3 changes: 2 additions & 1 deletion debian-12/eth-node-nethermind/1.21.1-1/src/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ override_dh_auto_build:
# TODO this should come from the build specs
find src/Nethermind/Nethermind.Runner/bin/release/net7.0/runtimes -mindepth 1 -maxdepth 1 -type d ! -name 'linux-x64' -exec rm -r {} \;


# TODO reenable tests, disabled to speed up testing autopkgtests
# TODO fix tests
override_dh_auto_test:
# # Skip tests as they are failing
# Run Nethermind tests:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TODO bugs
eth-node-nimbus-eth2: embedded-library libminiupnpc [usr/lib/eth-node-nimbus-eth2/lib/build/nimbus_beacon_node]
eth-node-nimbus-eth2: embedded-library libminiupnpc [usr/lib/eth-node-nimbus-eth2/lib/build/nimbus_light_client]
eth-node-nimbus-eth2: embedded-library libminiupnpc [usr/lib/eth-node-nimbus-eth2/lib/build/all_tests]
eth-node-nimbus-eth2: embedded-library libminiupnpc [usr/lib/eth-node-nimbus-eth2/build/nimbus_beacon_node]
eth-node-nimbus-eth2: embedded-library libminiupnpc [usr/lib/eth-node-nimbus-eth2/build/nimbus_light_client]
eth-node-nimbus-eth2: embedded-library libminiupnpc [usr/lib/eth-node-nimbus-eth2/build/all_tests]
5 changes: 3 additions & 2 deletions debian-12/eth-node-nimbus-eth2/24.3.0-1/src/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ override_dh_auto_clean:
# on bookworm clean succeeds, even if dependency is not installed
-make -j1 clean

# TODO reenable tests, disabled to speed up testing autopkgtests
override_dh_auto_test:
# -make update
make -j1 all_tests
# # -make update
# make -j1 all_tests
3 changes: 2 additions & 1 deletion debian-12/eth-node-prysm/4.1.1-1/src/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ export PATH:=$(PATH):$(GO_BIN_HOME)/bin
go install github.com/bazelbuild/[email protected]
dh $@

# TODO reenable tests, disabled to speed up testing autopkgtests
override_dh_auto_test:
CGO_CFLAGS="-O2 -D__BLST_PORTABLE__" bazelisk test //..
# CGO_CFLAGS="-O2 -D__BLST_PORTABLE__" bazelisk test //..

override_dh_auto_build:
bazelisk build //cmd/beacon-chain:beacon-chain --config=release
Expand Down
3 changes: 2 additions & 1 deletion debian-12/eth-node-teku/23.10.0-1/src/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
override_dh_auto_build:
./gradlew distTar installDist

# TODO reenable tests, disabled to speed up testing autopkgtests
override_dh_auto_test:
./gradlew test
# ./gradlew test

override_dh_auto_install:
# This relies on make install script
Expand Down

0 comments on commit 64f4649

Please sign in to comment.