Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Smoke Tests in CI #113

Merged
merged 132 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
80a4277
test e2e scripts in GA
Feb 13, 2024
dd3f1a9
fix GA
Feb 13, 2024
2cb5473
test current dir
Feb 13, 2024
ec558dd
fix path
Feb 13, 2024
3d6bb26
install moreutils
Feb 13, 2024
79e677a
sponge
Feb 13, 2024
e711450
install go
Feb 13, 2024
60403fd
export path
Feb 13, 2024
89e878a
try something else
Feb 13, 2024
8f0eff0
run nix
Feb 13, 2024
7a6bc3b
switch branch
Feb 14, 2024
9704c0a
nix develop
Feb 14, 2024
d8d2c3a
check setup
Feb 14, 2024
0231b60
use nix setup
Feb 14, 2024
06f2259
e2e stack script
Feb 14, 2024
c35ac65
e2e stack script
Feb 14, 2024
80d0252
run command
Feb 14, 2024
14bd39e
check current dir
Feb 14, 2024
0c2b8fa
correct dir
Feb 14, 2024
cc5dd42
correct dir
Feb 14, 2024
918e68e
just cd
Feb 14, 2024
b1a317b
try something else
Feb 14, 2024
2add11d
rn e2e script
Feb 14, 2024
e52a506
adds submodules
Feb 14, 2024
d1e0406
ls
Feb 14, 2024
b00f803
print vars
Feb 14, 2024
a01f7ea
remove ls
Feb 14, 2024
b8f8d4e
cd instead of pushdir
Feb 14, 2024
d987fa8
try checking out differently
Feb 14, 2024
744ff30
ls
Feb 14, 2024
91d00bf
ls
Feb 14, 2024
9222b72
change checkout order
Feb 14, 2024
4f05154
check what is in a dir
Feb 14, 2024
44376fa
check what is in a dir
Feb 14, 2024
eb5b2ea
check something
Feb 14, 2024
d74b2bc
check something
Feb 14, 2024
8cd8d6b
try something
Feb 14, 2024
78aa6b9
try something
Feb 14, 2024
846aecf
try e2e script again
Feb 14, 2024
56b87a3
remove ls
Feb 14, 2024
b7891e6
cleanup script
Feb 14, 2024
bc42d3b
adds ssz gen
Feb 14, 2024
872320b
install js components
Feb 14, 2024
4424cd6
install js components
Feb 14, 2024
8523d80
fix dir
Feb 14, 2024
4b0913c
adds output dir
Feb 14, 2024
52ec060
create dir
Feb 14, 2024
7ae0d59
try something else
Feb 14, 2024
e635d5a
bump
Feb 14, 2024
9b651b8
fix config paths
Feb 14, 2024
04d5dac
test output dir
Feb 14, 2024
9cc695c
adds wasm target
Feb 14, 2024
05613d5
check wasm target
Feb 14, 2024
1184871
setup rustup in nix
Feb 14, 2024
3460aca
missing quote
Feb 14, 2024
d1060f0
install rustup stable
Feb 14, 2024
8fb5c9a
adds e2e script in again
Feb 14, 2024
58723ce
remove skip wasm flag
Feb 14, 2024
8eec2af
comment out things
Feb 14, 2024
f0bfc75
start lodestar
Feb 14, 2024
90a3b3d
print out log
Feb 14, 2024
22587aa
print out log
Feb 14, 2024
cad257a
print out lodestar
Feb 14, 2024
c7d3584
check geth version
Feb 14, 2024
24f0c52
bump
Feb 14, 2024
1deaf4f
remove commented out code
Feb 14, 2024
dfac5ee
update go files
Feb 14, 2024
d636caa
adds smoketests
Feb 14, 2024
a136784
create dir
Feb 14, 2024
70328c2
adjust scripts
Feb 14, 2024
9b15a6b
only redirect start-services.sh output
Feb 14, 2024
f4cf9f7
only redirect start-services.sh output
Feb 14, 2024
ae2f1bb
switch dir
Feb 14, 2024
f64a5ca
permissions
Feb 14, 2024
2e5db0b
check script
Feb 14, 2024
514c101
allow service to be down
Feb 14, 2024
eb6f74d
bump
Feb 15, 2024
ab8afb6
last run, hopefully
Feb 15, 2024
0f8255e
fix tests
Feb 15, 2024
9936aba
fixes
Feb 15, 2024
3b80f6d
bump
Feb 15, 2024
384e6a9
fix
Feb 15, 2024
7c3a3f0
check lodestar
Feb 15, 2024
98a25f7
check lodestar
Feb 15, 2024
bb95e49
check lodestar
Feb 15, 2024
0fd49f3
bump
Feb 15, 2024
9117b5d
bump
Feb 15, 2024
fd6d39e
try again
Feb 15, 2024
f810c31
try again
Feb 15, 2024
0031c54
bump
Feb 16, 2024
0b13f82
bump
Feb 16, 2024
538ff08
update go
Feb 16, 2024
6fe75f9
update go
Feb 16, 2024
8299e51
cleanup
Feb 16, 2024
34ab578
check what is happening now
Feb 16, 2024
97c6836
lodestar should run the background
Feb 16, 2024
9c455ab
run init.sh
Feb 20, 2024
b5037ef
check what happens with the download
Feb 20, 2024
8ae71d3
change OS check
Feb 20, 2024
4867ecd
remove other steps to see what is happening
Feb 20, 2024
04062bf
bump
Feb 20, 2024
a769378
run smoketests
Feb 20, 2024
6cdf50e
run smoketests
Feb 20, 2024
3cf9660
cleanup jobs
Feb 20, 2024
cba5126
extract ethereum chain id
Feb 23, 2024
d6a443c
remove cargo.toml
Feb 23, 2024
ef010b8
fix chain id data type
Feb 23, 2024
71e41ba
fix missing chain id param
Feb 23, 2024
c3fb067
fix missing chain id param
Feb 23, 2024
af78a7a
fix coverage and missing param
Feb 23, 2024
db1238e
fix CI
Feb 23, 2024
834657c
fix CI
Feb 25, 2024
1e63aae
revert scripts
Feb 25, 2024
2a99da9
revert coverage jobs
Feb 25, 2024
f4c337b
revert formatting
Feb 25, 2024
8f058b4
Merge branch 'snowbridge' into smoketests-ci
Feb 25, 2024
f084119
Merge branch 'extract-ethereum-chain-id' into smoketests-ci
Feb 25, 2024
02f4ca1
check log
Feb 26, 2024
99f0799
fix log
Feb 26, 2024
88e48d3
separate steps
Feb 26, 2024
3c617a1
cleanup job
Feb 26, 2024
48cac89
remove running smoketests on a PR, only when merged
Feb 26, 2024
28f5c47
update branch
Feb 28, 2024
7748fc1
remove http endpoint from relayer
Mar 4, 2024
8fdc5a9
update nightly, revert unrelated changes
Mar 4, 2024
a97f2d6
check rust version
Mar 4, 2024
9043633
chaneg branch for testing
Mar 4, 2024
f1a3e38
adds beacon relay log
Mar 4, 2024
e0b8a56
increase slot time
Mar 4, 2024
1e4012b
increase block time check
Mar 4, 2024
0fef2fd
lower block check count
Mar 5, 2024
f4a9672
only run smoketests on merge to snowbridge
Mar 5, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/parachain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
RUST_BACKTRACE: 1
RUSTFLAGS: -C debuginfo=1
SKIP_WASM_BUILD: 1
RUST_NIGHTLY_VERSION: nightly-2023-05-23
RUST_NIGHTLY_VERSION: nightly-2023-12-28
steps:
- uses: actions/checkout@v2
with:
Expand Down
82 changes: 82 additions & 0 deletions .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: bridge

on:
push:
paths:
- "bridges/snowbridge/**"
- "!bridges/snowbridge/README.md"
- "!bridges/snowbridge/LICENSE"
branches:
- snowbridge
workflow_dispatch:

jobs:
smoketests:
runs-on: snowbridge-runner
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1
RUSTFLAGS: -C debuginfo=1
outputs:
success: ${{ steps.run_e2e_stack.outcome == 'success' }}
steps:
- name: Set build directory environment variable
run: echo "OUTPUT_DIR=${GITHUB_WORKSPACE}/tmp" >> $GITHUB_ENV
- name: Set log directory environment variable
run: echo "LOG_DIR=${GITHUB_WORKSPACE}/log-tmp" >> $GITHUB_ENV
- name: Create directories
run: mkdir -p $OUTPUT_DIR && mkdir -p $LOG_DIR
- uses: actions/checkout@v2
with:
repository: snowfork/snowbridge
ref: smoketests-ci
alistair-singh marked this conversation as resolved.
Show resolved Hide resolved
path: snowbridge
submodules: "true"
- run: rm -f snowbridge/polkadot-sdk
- uses: actions/checkout@v2
with:
repository: snowfork/polkadot-sdk
ref: main
path: snowbridge/polkadot-sdk
- uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/cache@v1
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: run E2E stack
id: run_e2e_stack
run: |
cd snowbridge
nix develop -c sh -c '
./scripts/init.sh &&
cd web/packages/test &&
(./scripts/start-services.sh > "${{ env.LOG_DIR }}/start-services.log" 2>&1 &) &&
sleep 10 &&
./scripts/check-relayer.sh &&
./scripts/run-smoketests.sh'
continue-on-error: true
- name: Save start-services log file
uses: actions/upload-artifact@v3
with:
name: start-services.log
path: "${{ env.LOG_DIR }}/start-services.log"
- name: Save beacon-relay log file
uses: actions/upload-artifact@v3
with:
name: beacon-relay.log
path: "${{ env.OUTPUT_DIR }}/beacon-relay.log"
- run: ls
- name: check E2E test outcome
if: ${{ steps.run_e2e_stack.outcome != 'success' }}
run: |
echo "E2E tests failed"
exit 1
Loading
Loading