This repository was archived by the owner on Aug 15, 2025. It is now read-only.
forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Smoke Tests in CI #113
Merged
Merged
Smoke Tests in CI #113
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
dd3f1a9
fix GA
2cb5473
test current dir
ec558dd
fix path
3d6bb26
install moreutils
79e677a
sponge
e711450
install go
60403fd
export path
89e878a
try something else
8f0eff0
run nix
7a6bc3b
switch branch
9704c0a
nix develop
d8d2c3a
check setup
0231b60
use nix setup
06f2259
e2e stack script
c35ac65
e2e stack script
80d0252
run command
14bd39e
check current dir
0c2b8fa
correct dir
cc5dd42
correct dir
918e68e
just cd
b1a317b
try something else
2add11d
rn e2e script
e52a506
adds submodules
d1e0406
ls
b00f803
print vars
a01f7ea
remove ls
b8f8d4e
cd instead of pushdir
d987fa8
try checking out differently
744ff30
ls
91d00bf
ls
9222b72
change checkout order
4f05154
check what is in a dir
44376fa
check what is in a dir
eb5b2ea
check something
d74b2bc
check something
8cd8d6b
try something
78aa6b9
try something
846aecf
try e2e script again
56b87a3
remove ls
b7891e6
cleanup script
bc42d3b
adds ssz gen
872320b
install js components
4424cd6
install js components
8523d80
fix dir
4b0913c
adds output dir
52ec060
create dir
7ae0d59
try something else
e635d5a
bump
9b651b8
fix config paths
04d5dac
test output dir
9cc695c
adds wasm target
05613d5
check wasm target
1184871
setup rustup in nix
3460aca
missing quote
d1060f0
install rustup stable
8fb5c9a
adds e2e script in again
58723ce
remove skip wasm flag
8eec2af
comment out things
f0bfc75
start lodestar
90a3b3d
print out log
22587aa
print out log
cad257a
print out lodestar
c7d3584
check geth version
24f0c52
bump
1deaf4f
remove commented out code
dfac5ee
update go files
d636caa
adds smoketests
a136784
create dir
70328c2
adjust scripts
9b15a6b
only redirect start-services.sh output
f4cf9f7
only redirect start-services.sh output
ae2f1bb
switch dir
f64a5ca
permissions
2e5db0b
check script
514c101
allow service to be down
eb6f74d
bump
ab8afb6
last run, hopefully
0f8255e
fix tests
9936aba
fixes
3b80f6d
bump
384e6a9
fix
7c3a3f0
check lodestar
98a25f7
check lodestar
bb95e49
check lodestar
0fd49f3
bump
9117b5d
bump
fd6d39e
try again
f810c31
try again
0031c54
bump
0b13f82
bump
538ff08
update go
6fe75f9
update go
8299e51
cleanup
34ab578
check what is happening now
97c6836
lodestar should run the background
9c455ab
run init.sh
b5037ef
check what happens with the download
8ae71d3
change OS check
4867ecd
remove other steps to see what is happening
04062bf
bump
a769378
run smoketests
6cdf50e
run smoketests
3cf9660
cleanup jobs
cba5126
extract ethereum chain id
d6a443c
remove cargo.toml
ef010b8
fix chain id data type
71e41ba
fix missing chain id param
c3fb067
fix missing chain id param
af78a7a
fix coverage and missing param
db1238e
fix CI
834657c
fix CI
1e63aae
revert scripts
2a99da9
revert coverage jobs
f4c337b
revert formatting
8f058b4
Merge branch 'snowbridge' into smoketests-ci
f084119
Merge branch 'extract-ethereum-chain-id' into smoketests-ci
02f4ca1
check log
99f0799
fix log
88e48d3
separate steps
3c617a1
cleanup job
48cac89
remove running smoketests on a PR, only when merged
28f5c47
update branch
7748fc1
remove http endpoint from relayer
8fdc5a9
update nightly, revert unrelated changes
a97f2d6
check rust version
9043633
chaneg branch for testing
f1a3e38
adds beacon relay log
e0b8a56
increase slot time
1e4012b
increase block time check
0fef2fd
lower block check count
f4a9672
only run smoketests on merge to snowbridge
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,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 | ||
| 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 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.