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

583 introduce full test suite #628

Closed
wants to merge 92 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
b978f86
Rename environment
rozhkovdmitrii Mar 7, 2022
d154dad
Print elf params
rozhkovdmitrii Mar 7, 2022
c8bdd2e
Reduce time waiting for proxy
rozhkovdmitrii Mar 7, 2022
737fb80
Merge remote-tracking branch 'origin/develop' into 583-introduce-full…
rozhkovdmitrii Mar 7, 2022
6c1089e
Remove extra things
rozhkovdmitrii Mar 7, 2022
ce87fc8
Remove extra things
rozhkovdmitrii Mar 7, 2022
2879c37
Add docker step into buildkite
rozhkovdmitrii Mar 8, 2022
2ea579b
Add full test suite step
rozhkovdmitrii Mar 8, 2022
f630013
Correct full test suite
rozhkovdmitrii Mar 8, 2022
f560e86
Correct full test suite again
rozhkovdmitrii Mar 8, 2022
2d84d4e
suppress deploy check
rozhkovdmitrii Mar 8, 2022
f67de2f
just echo if trigger_job
rozhkovdmitrii Mar 8, 2022
a7a2330
try to fix condition
rozhkovdmitrii Mar 8, 2022
a04ca0d
try to fix condition
rozhkovdmitrii Mar 8, 2022
ed96c90
Get rid off condition
rozhkovdmitrii Mar 8, 2022
bf9b694
if source == webhook
rozhkovdmitrii Mar 8, 2022
dbce4ed
Try again
rozhkovdmitrii Mar 8, 2022
b31cf83
Try again
rozhkovdmitrii Mar 8, 2022
90ef427
Enable full test suite )
rozhkovdmitrii Mar 8, 2022
2f1531e
Enable full test suite )
rozhkovdmitrii Mar 8, 2022
d1bc510
Turn off the condition
rozhkovdmitrii Mar 8, 2022
9f0a689
Introduce check threshold formula
rozhkovdmitrii Mar 8, 2022
88341ee
What's wrong
rozhkovdmitrii Mar 8, 2022
aa88704
Again
rozhkovdmitrii Mar 8, 2022
8f5615f
again and again
rozhkovdmitrii Mar 8, 2022
3af7ef1
again and again and again
rozhkovdmitrii Mar 8, 2022
2a3eed5
again and again and again
rozhkovdmitrii Mar 8, 2022
3d23ed5
unfold commands
rozhkovdmitrii Mar 8, 2022
62df1c4
unfold commands
rozhkovdmitrii Mar 8, 2022
7714aff
Bad results check
rozhkovdmitrii Mar 8, 2022
48f6026
Bad results check
rozhkovdmitrii Mar 8, 2022
000db50
Logging this check
rozhkovdmitrii Mar 8, 2022
03fd17c
Logging this check
rozhkovdmitrii Mar 8, 2022
efec5c1
Logging this check
rozhkovdmitrii Mar 8, 2022
e7e0489
Logging this check
rozhkovdmitrii Mar 8, 2022
9b4ea43
get rid of pipe to assign env
rozhkovdmitrii Mar 8, 2022
45dccf9
get rid of pipe to assign env
rozhkovdmitrii Mar 8, 2022
afe2a1a
get rid of pipe to assign env
rozhkovdmitrii Mar 8, 2022
f8b967b
get rid of pipe to assign env
rozhkovdmitrii Mar 8, 2022
888e865
get rid of pipe to assign env
rozhkovdmitrii Mar 8, 2022
24ea81c
get rid of pipe to assign env
rozhkovdmitrii Mar 8, 2022
e6848ac
uncomment test
rozhkovdmitrii Mar 8, 2022
d73eddc
uncomment test
rozhkovdmitrii Mar 8, 2022
a116345
uncomment test
rozhkovdmitrii Mar 8, 2022
fda5a2d
uncomment test
rozhkovdmitrii Mar 8, 2022
4586929
add docker compose
rozhkovdmitrii Mar 8, 2022
e920cf5
using tee
rozhkovdmitrii Mar 8, 2022
d4ba31e
Playing around output to stdout
rozhkovdmitrii Mar 8, 2022
e5fe7e4
Simplify
rozhkovdmitrii Mar 8, 2022
aa1fbd3
Remove with docker-compose
rozhkovdmitrii Mar 8, 2022
89cd3b5
merge pipes
rozhkovdmitrii Mar 8, 2022
4685136
Try to mix stderr and stdout
rozhkovdmitrii Mar 8, 2022
bce3e18
mode docker-compose-full-test-suite.yml into docker-compose
rozhkovdmitrii Mar 9, 2022
c217dcd
mode docker-compose-full-test-suite.yml into docker-compose
rozhkovdmitrii Mar 9, 2022
1aa8bcb
spit and polish
rozhkovdmitrii Mar 9, 2022
a0a1c03
rollback environment.py
rozhkovdmitrii Mar 9, 2022
330d240
rollback environment.py
rozhkovdmitrii Mar 9, 2022
2fb4fe2
rollback environment.py
rozhkovdmitrii Mar 9, 2022
0b0df91
rollback environment.py
rozhkovdmitrii Mar 9, 2022
446aa9b
rollback environment.py
rozhkovdmitrii Mar 9, 2022
b66cda7
uncoment code
rozhkovdmitrii Mar 9, 2022
2e480eb
get rid of extra calls
rozhkovdmitrii Mar 9, 2022
4c2b626
get rid of extra calls
rozhkovdmitrii Mar 9, 2022
9ae04ab
dynamic container name
rozhkovdmitrii Mar 9, 2022
b37e568
dynamic container name
rozhkovdmitrii Mar 9, 2022
5c84838
FTS_CONTAINER_NAME
rozhkovdmitrii Mar 9, 2022
4074fea
Move up the environments
rozhkovdmitrii Mar 9, 2022
ee05286
Play around environment
rozhkovdmitrii Mar 9, 2022
02e5cca
Play around environment
rozhkovdmitrii Mar 9, 2022
79fc4dd
${FTS_CONTAINER_NAME}.log
rozhkovdmitrii Mar 9, 2022
8e4e646
${FTS_CONTAINER_NAME}.log
rozhkovdmitrii Mar 9, 2022
9b903c4
docker logs
rozhkovdmitrii Mar 9, 2022
48e08f7
docker logs
rozhkovdmitrii Mar 9, 2022
d5b652a
docker logs
rozhkovdmitrii Mar 9, 2022
72c9e26
docker logs
rozhkovdmitrii Mar 9, 2022
3365f11
docker logs
rozhkovdmitrii Mar 9, 2022
e5f86f8
docker logs
rozhkovdmitrii Mar 9, 2022
e217d40
checkout to fts develop image
rozhkovdmitrii Mar 9, 2022
290d33e
back to fake
rozhkovdmitrii Mar 9, 2022
77e6f6c
bring fts to develop
rozhkovdmitrii Mar 9, 2022
d95ba7a
try the fts with wait-faucet
rozhkovdmitrii Mar 10, 2022
2b70a45
Merge branch 'develop' into 583-introduce-full-test-suite
rozhkovdmitrii Mar 10, 2022
8bb2241
Request ammount
rozhkovdmitrii Mar 10, 2022
a316493
Roll back
rozhkovdmitrii Mar 10, 2022
994620b
Roll back
rozhkovdmitrii Mar 10, 2022
ff4f3d6
Allure report error
rozhkovdmitrii Mar 10, 2022
7ee5e95
Increase request amount
rozhkovdmitrii Mar 10, 2022
d88a693
full_test_suite:583-full-test-suite
rozhkovdmitrii Mar 11, 2022
3ad49ab
uncoment condition
rozhkovdmitrii Mar 11, 2022
2ebfbf4
comment condition
rozhkovdmitrii Mar 11, 2022
e78e360
Bring full_test_suite onto "testing" agent
rozhkovdmitrii Mar 11, 2022
54de5ed
Use full_test_suite:develop
rozhkovdmitrii Mar 12, 2022
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
54 changes: 42 additions & 12 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,54 @@ steps:

- wait

- label: ":cop::skin-tone-2: deploy check"
command: ".buildkite/steps/deploy-test.sh"
timeout: 90
# - label: ":cop::skin-tone-2: deploy check"
# command: ".buildkite/steps/deploy-test.sh"
# timeout: 90
# agents:
# queue: "testing"
# artifact_paths:
# - "proxy.log"
# - "solana.log"
# - "measurements.log"
# - "evm_loader.log"
# - "faucet.log"
# - "airdropper.log"
# - "indexer.log"

- label: ":coverage: full test suite (FTS)"
if: |
(build.pull_request.base_branch == "develop" && !build.pull_request.draft) ||
(build.source == "trigger_job" && build.env("NEON_EVM_FULL_TEST_SUITE") == "true")
commands:
- echo Full test suite container name - $${FTS_CONTAINER_NAME}
- docker-compose -f docker-compose/docker-compose-full-test-suite.yml up
- FTS_RESULT=$(docker logs $${FTS_CONTAINER_NAME} | (grep -oP "(?<=Passing - )\d+" || echo 0))
- docker cp $${FTS_CONTAINER_NAME}:/opt/allure-reports.tar.gz ./
- docker logs $${FTS_CONTAINER_NAME} > ./$${FTS_CONTAINER_NAME}.log
- docker-compose -f docker-compose/docker-compose-full-test-suite.yml rm -f
- echo Full test passing - $${FTS_RESULT}
- echo Full test threshold - $${FTS_THRESHOLD}
- echo Check if $${FTS_RESULT} is greater or equeal $${FTS_THRESHOLD}
- test $${FTS_RESULT} -ge $${FTS_THRESHOLD}
artifact_paths:
- allure-reports.tar.gz
- fts_${BUILDKITE_BUILD_NUMBER}.log
env:
PROXY_URL: http://proxy.night.stand.neontest.xyz/solana
FAUCET_URL: http://proxy.night.stand.neontest.xyz/request_eth_token
SOLANA_URL: http://proxy.night.stand.neontest.xyz/node-solana
FTS_THRESHOLD: 1700
FTS_CONTAINER_NAME: fts_${BUILDKITE_BUILD_NUMBER}
FTS_IMAGE: neonlabsorg/full_test_suite:develop
agents:
queue: "testing"
artifact_paths:
- "proxy.log"
- "solana.log"
- "measurements.log"
- "evm_loader.log"
- "faucet.log"
- "airdropper.log"
- "indexer.log"

- wait

- label: ":floppy_disk: publish image"
command: ".buildkite/steps/publish-image.sh"
if: |
build.branch =~ /^(master|develop|^ci-.+|v[0-9]+\.[0-9]+\..+)$$/ &&
(build.env("EVM_LOADER_BRANCH") == "develop" || build.env("EVM_LOADER_BRANCH") == null)
(build.env("NEON_EVM_BRANCH") == "develop" || build.env("NEON_EVM_BRANCH") == null)


6 changes: 3 additions & 3 deletions .buildkite/steps/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ set -euo pipefail
REVISION=$(git rev-parse HEAD)

set ${SOLANA_REVISION:=v1.8.12-testnet}
set ${EVM_LOADER_REVISION:=latest}
set ${NEON_EVM_COMMIT:=latest}

# Refreshing neonlabsorg/solana:latest image is required to run .buildkite/steps/build-image.sh locally
docker pull neonlabsorg/solana:${SOLANA_REVISION}

# Refreshing neonlabsorg/evm_loader:latest image is required to run .buildkite/steps/build-image.sh locally
docker pull neonlabsorg/evm_loader:${EVM_LOADER_REVISION}
docker pull neonlabsorg/evm_loader:${NEON_EVM_COMMIT}

docker build -t neonlabsorg/proxy:${REVISION} \
--build-arg SOLANA_REVISION=${SOLANA_REVISION} \
--build-arg EVM_LOADER_REVISION=${EVM_LOADER_REVISION} \
--build-arg NEON_EVM_COMMIT=${NEON_EVM_COMMIT} \
--build-arg PROXY_REVISION=${REVISION} \
.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG SOLANA_REVISION=v1.8.12-testnet
ARG EVM_LOADER_REVISION=latest
ARG NEON_EVM_COMMIT=latest

FROM neonlabsorg/solana:${SOLANA_REVISION} AS cli

FROM neonlabsorg/evm_loader:${EVM_LOADER_REVISION} AS spl
FROM neonlabsorg/evm_loader:${NEON_EVM_COMMIT} AS spl

FROM ubuntu:20.04

Expand Down
23 changes: 23 additions & 0 deletions docker-compose/docker-compose-full-test-suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: "3"

services:

full_test_suite:
container_name: ${FTS_CONTAINER_NAME:-full_test_suite}
image: ${FTS_IMAGE:-neonlabsorg/develop}
entrypoint: ./run-test.sh 2>/dev/null
environment:
- NETWORK_NAME=night-stand
- PROXY_URL=${PROXY_URL}
- NETWORK_ID=111
- ADDRESS_FROM=
- ADDRESS_TO=
- PRIVATE_KEY=
- REQUEST_AMOUNT=20000
- FAUCET_URL=${FAUCET_URL}
- USE_FAUCET=true
- SOLANA_EXPLORER=https://explorer.solana.com/?cluster=custom&customUrl=http://proxy.night.stand.neontest.xyz/node-solana
- SOLANA_URL=${SOLANA_URL}
- USERS_NUMBER=15
- JOBS_NUMBER=8
network_mode: host
2 changes: 1 addition & 1 deletion proxy/docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:

evm_loader:
container_name: evm_loader
image: neonlabsorg/evm_loader:${EVM_LOADER_REVISION:-latest}
image: neonlabsorg/evm_loader:${NEON_EVM_COMMIT:-latest}
environment:
- SOLANA_URL=http://solana:8899
networks:
Expand Down