Skip to content

Commit 496cb88

Browse files
authored
Enable Basic Tests and Use 4 Theads to Build (steemit#3707)
* Init Pipeline * Try 2 threads to build * Try using 3 threads * Try using 4 threads * Try using 5 threads * Merge * Merge * Fix * Fix * Fix * Debug and Fix * Debug and Fix * Debug fix * Fix * Debug Fix * Debug Fix * Fix * Debug * Disable test * Revert * Revert * Debug and Fix * Remove * Revert
1 parent aa4b202 commit 496cb88

11 files changed

Lines changed: 90 additions & 41 deletions

File tree

.github/workflows/build-steemd.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
14-
build-matrix:
14+
build-steemd:
1515
runs-on: ubuntu-latest
1616

1717
strategy:
18-
fail-fast: false
18+
fail-fast: true
1919
matrix:
2020
dockerfile:
2121
- Dockerfile.azurelinux3.0
@@ -40,7 +40,9 @@ jobs:
4040
echo "Tag: $TAG"
4141
4242
sudo -E docker build \
43-
--build-arg NUMBER_BUILD_THREADS=1 \
43+
--no-cache \
44+
--build-arg NUMBER_BUILD_THREADS=4 \
45+
--build-arg UNIT_TEST=ON \
4446
-t "$TAG" \
4547
-f "$FILE" \
4648
.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Steem - The Blockchain That Will Tokenize The Web
2+
[![Build All steemd Dockerfiles](https://github.com/steemit/steem/actions/workflows/build-steemd.yml/badge.svg?branch=dev)](https://github.com/steemit/steem/actions/workflows/build-steemd.yml)
23

34
Welcome to the official repository for Steem, the blockchain that will revolutionize the web, and soon the blockchain for Smart Media Tokens!
45

5-
6-
76
Steem is the first blockchain which introduced the "Proof of Brain" social consensus algorithm for token allocation.
87

98
Being one of the most actively developed blockchain projects currently in existence, it's become fertile soil for entrepreneurial pursuits. It has also become home for many cryptocurrency centric projects.

deploy/Dockerfile.azurelinux3.0

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARG ENABLE_COVERAGE_TESTING=OFF
1313
ARG CHAINBASE_CHECK_LOCKING=OFF
1414
ARG UNIT_TEST=OFF
1515
ARG DOXYGEN=OFF
16+
ARG BUILD_TESTING=ON
1617
ARG NUMBER_BUILD_THREADS
1718

1819
RUN echo "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}" >> /etc/build_info && \
@@ -33,6 +34,7 @@ ENV DEBIAN_FRONTEND=noninteractive
3334
RUN tdnf update -y && \
3435
tdnf install -y \
3536
git \
37+
jq \
3638
gcc \
3739
gcc-c++ \
3840
make \
@@ -110,6 +112,7 @@ RUN mkdir -p build && \
110112
-DCMAKE_INSTALL_PREFIX=/usr/local/steemd \
111113
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
112114
-DLOW_MEMORY_NODE=${LOW_MEMORY_MODE} \
115+
-DBUILD_TESTING=${BUILD_TESTING} \
113116
-DCLEAR_VOTES=${CLEAR_VOTES} \
114117
-DSKIP_BY_TX_ID=${SKIP_BY_TX_ID} \
115118
-DBUILD_STEEM_TESTNET=${BUILD_STEEM_TESTNET} \
@@ -128,11 +131,9 @@ RUN cd build && \
128131
make install
129132

130133
RUN if [ "${UNIT_TEST}" = "ON" ] ; then \
131-
cd tests && \
132-
ctest -j4 --output-on-failure && \
133-
./chain_test -t basic_tests/curation_weight_test && \
134-
cd .. && \
135-
./programs/util/test_fixed_string; \
134+
./tests/scripts/run_unit_tests.sh ; \
135+
else \
136+
echo "Skipping unit tests as UNIT_TEST is set to OFF" ; \
136137
fi
137138

138139
RUN if [ "${DOXYGEN}" = "ON" ] ; then \

deploy/Dockerfile.debian13

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ARG ENABLE_COVERAGE_TESTING=OFF
1414
ARG CHAINBASE_CHECK_LOCKING=OFF
1515
ARG UNIT_TEST=OFF
1616
ARG DOXYGEN=OFF
17+
ARG BUILD_TESTING=ON
1718
ARG NUMBER_BUILD_THREADS
1819

1920
RUN echo "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}" >> /etc/build_info && \
@@ -34,6 +35,7 @@ ENV DEBIAN_FRONTEND=noninteractive
3435
RUN apt-get update && \
3536
apt-get install -y \
3637
git \
38+
jq \
3739
libboost-all-dev \
3840
build-essential \
3941
cmake \
@@ -77,6 +79,7 @@ RUN mkdir -p build && \
7779
-DCMAKE_INSTALL_PREFIX=/usr/local/steemd \
7880
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
7981
-DLOW_MEMORY_NODE=${LOW_MEMORY_MODE} \
82+
-DBUILD_TESTING=${BUILD_TESTING} \
8083
-DCLEAR_VOTES=${CLEAR_VOTES} \
8184
-DSKIP_BY_TX_ID=${SKIP_BY_TX_ID} \
8285
-DBUILD_STEEM_TESTNET=${BUILD_STEEM_TESTNET} \
@@ -95,11 +98,9 @@ RUN cd build && \
9598
make install
9699

97100
RUN if [ "${UNIT_TEST}" = "ON" ] ; then \
98-
cd tests && \
99-
ctest -j4 --output-on-failure && \
100-
./chain_test -t basic_tests/curation_weight_test && \
101-
cd .. && \
102-
./programs/util/test_fixed_string; \
101+
./tests/scripts/run_unit_tests.sh ; \
102+
else \
103+
echo "Skipping unit tests as UNIT_TEST is set to OFF" ; \
103104
fi
104105

105106
RUN if [ "${DOXYGEN}" = "ON" ] ; then \

deploy/Dockerfile.ubuntu20.04

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARG ENABLE_COVERAGE_TESTING=OFF
1313
ARG CHAINBASE_CHECK_LOCKING=OFF
1414
ARG UNIT_TEST=OFF
1515
ARG DOXYGEN=OFF
16+
ARG BUILD_TESTING=ON
1617
ARG NUMBER_BUILD_THREADS
1718

1819
RUN echo "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}" >> /etc/build_info && \
@@ -33,6 +34,7 @@ ENV DEBIAN_FRONTEND=noninteractive
3334
RUN apt-get update && \
3435
apt-get install -y \
3536
git \
37+
jq \
3638
build-essential \
3739
cmake \
3840
libssl-dev \
@@ -87,6 +89,7 @@ RUN mkdir -p build && \
8789
cmake \
8890
-DCMAKE_INSTALL_PREFIX=/usr/local/steemd \
8991
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
92+
-DBUILD_TESTING=${BUILD_TESTING} \
9093
-DLOW_MEMORY_NODE=${LOW_MEMORY_MODE} \
9194
-DCLEAR_VOTES=${CLEAR_VOTES} \
9295
-DSKIP_BY_TX_ID=${SKIP_BY_TX_ID} \
@@ -106,11 +109,9 @@ RUN cd build && \
106109
make install
107110

108111
RUN if [ "${UNIT_TEST}" = "ON" ] ; then \
109-
cd tests && \
110-
ctest -j4 --output-on-failure && \
111-
./chain_test -t basic_tests/curation_weight_test && \
112-
cd .. && \
113-
./programs/util/test_fixed_string; \
112+
./tests/scripts/run_unit_tests.sh ; \
113+
else \
114+
echo "Skipping unit tests as UNIT_TEST is set to OFF" ; \
114115
fi
115116

116117
RUN if [ "${DOXYGEN}" = "ON" ] ; then \

deploy/Dockerfile.ubuntu22.04

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARG ENABLE_COVERAGE_TESTING=OFF
1313
ARG CHAINBASE_CHECK_LOCKING=OFF
1414
ARG UNIT_TEST=OFF
1515
ARG DOXYGEN=OFF
16+
ARG BUILD_TESTING=ON
1617
ARG NUMBER_BUILD_THREADS
1718

1819
RUN echo "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}" >> /etc/build_info && \
@@ -33,6 +34,7 @@ ENV DEBIAN_FRONTEND=noninteractive
3334
RUN apt-get update && \
3435
apt-get install -y \
3536
git \
37+
jq \
3638
build-essential \
3739
cmake \
3840
libssl-dev \
@@ -85,6 +87,7 @@ RUN mkdir -p build && \
8587
cmake \
8688
-DCMAKE_INSTALL_PREFIX=/usr/local/steemd \
8789
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
90+
-DBUILD_TESTING=${BUILD_TESTING} \
8891
-DLOW_MEMORY_NODE=${LOW_MEMORY_MODE} \
8992
-DCLEAR_VOTES=${CLEAR_VOTES} \
9093
-DSKIP_BY_TX_ID=${SKIP_BY_TX_ID} \
@@ -104,11 +107,9 @@ RUN cd build && \
104107
make install
105108

106109
RUN if [ "${UNIT_TEST}" = "ON" ] ; then \
107-
cd tests && \
108-
ctest -j4 --output-on-failure && \
109-
./chain_test -t basic_tests/curation_weight_test && \
110-
cd .. && \
111-
./programs/util/test_fixed_string; \
110+
./tests/scripts/run_unit_tests.sh ; \
111+
else \
112+
echo "Skipping unit tests as UNIT_TEST is set to OFF" ; \
112113
fi
113114

114115
RUN if [ "${DOXYGEN}" = "ON" ] ; then \

deploy/Dockerfile.ubuntu24.04

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARG ENABLE_COVERAGE_TESTING=OFF
1313
ARG CHAINBASE_CHECK_LOCKING=OFF
1414
ARG UNIT_TEST=OFF
1515
ARG DOXYGEN=OFF
16+
ARG BUILD_TESTING=ON
1617
ARG NUMBER_BUILD_THREADS
1718

1819
RUN echo "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}" >> /etc/build_info && \
@@ -33,6 +34,7 @@ ENV DEBIAN_FRONTEND=noninteractive
3334
RUN apt-get update && \
3435
apt-get install -y \
3536
git \
37+
jq \
3638
libboost-all-dev \
3739
build-essential \
3840
cmake \
@@ -76,6 +78,7 @@ RUN mkdir -p build && \
7678
-DCMAKE_INSTALL_PREFIX=/usr/local/steemd \
7779
-DUSE_VENDORED_ROCKSDB=OFF \
7880
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
81+
-DBUILD_TESTING=${BUILD_TESTING} \
7982
-DLOW_MEMORY_NODE=${LOW_MEMORY_MODE} \
8083
-DCLEAR_VOTES=${CLEAR_VOTES} \
8184
-DSKIP_BY_TX_ID=${SKIP_BY_TX_ID} \
@@ -95,11 +98,9 @@ RUN cd build && \
9598
make install
9699

97100
RUN if [ "${UNIT_TEST}" = "ON" ] ; then \
98-
cd tests && \
99-
ctest -j4 --output-on-failure && \
100-
./chain_test -t basic_tests/curation_weight_test && \
101-
cd .. && \
102-
./programs/util/test_fixed_string; \
101+
./tests/scripts/run_unit_tests.sh ; \
102+
else \
103+
echo "Skipping unit tests as UNIT_TEST is set to OFF" ; \
103104
fi
104105

105106
RUN if [ "${DOXYGEN}" = "ON" ] ; then \

doc/seednodes.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ seed.amarbangla.net:2001 # @bangla.witness
2424
seed.supporter.dev:2001 # @dev.supporters
2525
seed.campingclub.me:2001 # @visionaer3003
2626
seed.cotina.org:2001 # @cotina
27-
seed.steem.fans:2001 # @ety001
2827
seed.boylikegirl.club:2001 # @boylikegirl.wit
2928
seed.symbionts.io:2001 # @symbionts
3029
seed.steems.top:2001 # @maiyude
31-
## Unreachable 2025-08-07
32-
seed.blokfield.io:2001 # @blokfield
33-
seed.futureshock.world:2001 # @future.witness
34-
seed.steemzzang.com:2001 # @zzan.witnesses
35-
seed.goodhello.net:2001 # @helloworld.wit
30+

libraries/plugins/p2p/include/steem/plugins/p2p/p2p_default_seeds.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,9 @@ const std::vector< std::string > default_seeds = {
3535
"seed.supporter.dev:2001", // @dev.supporters
3636
"seed.campingclub.me:2001", // @visionaer3003
3737
"seed.cotina.org:2001", // @cotina
38-
"seed.steem.fans:2001", // @ety001
3938
"seed.boylikegirl.club:2001", // @boylikegirl.wit
4039
"seed.symbionts.io:2001", // @symbionts
4140
"seed.steems.top:2001" // @maiyude
42-
// "seed.futureshock.world:2001", // @future.witness
43-
// "seed.steemzzang.com:2001", // @zzan.witnesses
44-
// "seed.goodhello.net:2001", // @helloworld.wit
45-
// "seed.blokfield.io:2001", // @blokfield
4641
};
4742
#endif
4843

tests/db_fixture/database_fixture.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ clean_database_fixture::clean_database_fixture( uint16_t shared_file_size_in_mb
6666
appbase::app().register_plugin< steem::plugins::chain::chain_plugin >();
6767

6868
db_plugin->logging = false;
69+
appbase::app().set_app_name("chain_test");
6970
appbase::app().initialize<
7071
steem::plugins::account_history::account_history_plugin,
7172
steem::plugins::debug_node::debug_node_plugin,

0 commit comments

Comments
 (0)