-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1707 from skalenetwork/beta
Release 3.17.0
- Loading branch information
Showing
122 changed files
with
3,042 additions
and
6,116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: Run functional tests | ||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
functional-tests: | ||
name: Functional tests | ||
runs-on: ubuntu-20.04 | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
SKALED_RELEASE: ${{ inputs.version }} | ||
NO_ULIMIT_CHECK: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
repository: skalenetwork/skale-ci-integration_tests | ||
submodules: recursive | ||
- name: Set up Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
- name: Install packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install python3-pip python3-venv jq btrfs-progs nodejs npm | ||
sudo npm install -g truffle | ||
sudo npm install -g yarn | ||
sudo chown -R runner:runner ~/.config # HACK | ||
- name: Prepare SGX keys/certs | ||
run: | | ||
echo "${{ secrets.sgx_key }}" > sgx_certs/sgx.key | ||
chmod 600 sgx_certs/sgx.key | ||
sudo mkdir /skale_node_data | ||
sudo cp -r sgx_certs /skale_node_data | ||
sudo chown -R runner:runner /skale_node_data/sgx_certs/* | ||
wc /skale_node_data/sgx_certs/sgx.key | ||
- name: Update Environment | ||
run: | | ||
./update_environment.sh skaled+internals | ||
./update_environment.sh skaled+load_python | ||
./update_environment.sh skaled+load_js | ||
./update_environment.sh skaled+contractsRunningTest | ||
./update_environment.sh skaled+filestorage | ||
./update_environment.sh skaled+api | ||
- name: skaled+internals+pytest | ||
run: SKALED_PROVIDER=skaled_providers/binary_from_container ./run_tests.sh skaled+internals+pytest | ||
|
||
- name: skaled+filestorage+all | ||
run: SKALED_PROVIDER=skaled_providers/endpoint_by_container ./run_tests.sh skaled+filestorage+all | ||
|
||
- name: skaled+contractsRunningTest+all | ||
run: SKALED_PROVIDER=skaled_providers/endpoint_by_container ./run_tests.sh skaled+contractsRunningTest+all | ||
|
||
- name: skaled+load_python+all | ||
run: SKALED_PROVIDER=skaled_providers/binary_from_container ./run_tests.sh skaled+load_python+all | ||
|
||
# - name: skaled+load_js+run_angry_cats | ||
# run: SKALED_PROVIDER=skaled_providers/endpoint_by_container ./run_tests.sh skaled+load_js+run_angry_cats | ||
|
||
- name: skaled+internals+test_snapshot_api | ||
run: SKALED_PROVIDER=skaled_providers/binary_from_container ./run_tests.sh skaled+internals+test_snapshot_api | ||
|
||
- name: skaled+internals+test_node_rotation | ||
run: SKALED_PROVIDER=skaled_providers/binary_from_container ./run_tests.sh skaled+internals+test_node_rotation | ||
|
||
- name: Fix access rights | ||
run: | | ||
sudo chown -R runner:runner /tmp/tmp* || true | ||
sudo find ./integration_tests/skaled/internals/third_party/skale-node-tests/btrfs -type d -exec btrfs property set {} ro false \; || true | ||
sudo chown -R runner:runner . || true | ||
for C in $(docker ps -aq); do docker logs $C>$C.log; done || true | ||
if: ${{ always() }} | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} | ||
continue-on-error: true | ||
with: | ||
name: debug | ||
path: | | ||
skaled_providers | ||
!skaled_providers/**/skaled | ||
/tmp/tmp* | ||
*.log | ||
./integration_tests/skaled/internals/third_party/skale-node-tests/btrfs | ||
!**/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,14 @@ defaults: | |
run: | ||
shell: bash | ||
jobs: | ||
cancel-runs: | ||
name: Cancel Previous Runs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
build: | ||
runs-on: self-hosted | ||
env: | ||
|
@@ -162,7 +170,7 @@ jobs: | |
cd build/test | ||
export NO_NTP_CHECK=1 | ||
export NO_ULIMIT_CHECK=1 | ||
# we specifically run each test for easier log review | ||
# we specifically run each test for easier log review | ||
./testeth -t BlockchainTests -- --express && touch /tmp/BlockchainTestsPassed | ||
./testeth -t TransitionTests -- --express && touch /tmp/TransitionTestsPassed | ||
./testeth -t TransactionTests -- --express && touch /tmp/TransactionTestsPassed | ||
|
@@ -259,6 +267,22 @@ jobs: | |
ls /tmp/HashSnapshotTestSuitePassed || sudo NO_ULIMIT_CHECK=1 NO_NTP_CHECK=1 ./testeth -t HashSnapshotTestSuite -- --all --verbosity 4 | ||
ls /tmp/ClientSnapshotsSuitePassed || sudo NO_ULIMIT_CHECK=1 NO_NTP_CHECK=1 ./testeth -t ClientSnapshotsSuite -- --all --verbosity 4 | ||
cd .. | ||
- name: Create lcov report | ||
run: | | ||
lcov --capture --directory . --output-file coverage.info | ||
lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files | ||
lcov --remove coverage.info 'deps/*' --output-file coverage.info # filter dependency files | ||
lcov --remove coverage.info 'libconsensus/deps/*' --output-file coverage.info # filter dependency files | ||
lcov --remove coverage.info 'libconsensus/libBLS/deps/*' --output-file coverage.info # filter dependency files | ||
lcov --remove coverage.info '.hunter/*' --output-file coverage.info # filter dependency files | ||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.info | ||
|
||
- name: Configure all as historic | ||
run: | | ||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
* @skalenetwork/codeowners | ||
* @DmytroNazarenko @kladkogex | ||
*.md @skalenetwork/docowners |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.16.1 | ||
3.17.0 |
Oops, something went wrong.