Skip to content

Commit

Permalink
chore: debug solana in CI πŸ› (#4580)
Browse files Browse the repository at this point in the history
* chore: debug solana in CI πŸ›

* chore: remove solana binary checks πŸ€¦β€β™‚οΈ

* chore: add debug logs to solana

* chore: print value of `$PATH`

* chore: download latest version of solana

* chore: faster iterations

* fix: πŸ€¦β€β™‚οΈ

* chore: get main binaries

* debug: try changing ownership

* chore: one more full run
  • Loading branch information
ahasna authored Feb 28, 2024
1 parent 98937bc commit 4dfa1cc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/_40_post_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
FORCE_COLOR: 1
SOLANA_VERSION: v1.17.22
SOLANA_VERSION: v1.18.3

permissions:
packages: read
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
scope: "@chainflip-io"
cache-dependency-path: "bouncer/pnpm-lock.yaml"

- name: Set NPM registry
- name: Set NPM registry πŸ”§
run: |
pnpm set @chainflip-io:registry=https://npm.pkg.github.com/
pnpm set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
Expand All @@ -66,9 +66,9 @@ jobs:
working-directory: bouncer
run: pnpm install

# - name: Install solana
# run: |
# sh -c "$(curl -sSfL https://release.solana.com/$SOLANA_VERSION/install)"
- name: Install solana β˜€οΈ
run: |
sh -c "$(curl -sSfL https://release.solana.com/$SOLANA_VERSION/install)"
- name: Start a localnet πŸš€
env:
Expand Down Expand Up @@ -98,32 +98,37 @@ jobs:
./run.sh
- name: Print chainflip-engine logs πŸš—
if: failure()
if: always()
continue-on-error: true
run: |
cat /tmp/chainflip/*/chainflip-engine.log
- name: Print chainflip-node logs πŸ“‘
if: failure()
if: always()
continue-on-error: true
run: |
cat /tmp/chainflip/*/chainflip-node.log
- name: Print chainflip-broker-api logs πŸ’Ό
if: failure()
if: always()
continue-on-error: true
run: |
cat /tmp/chainflip/chainflip-broker-api.log
- name: Print chainflip-lp-api logs πŸ€‘
if: failure()
if: always()
continue-on-error: true
run: |
cat /tmp/chainflip/chainflip-lp-api.log
- name: Print localnet init debug logs πŸ•΅οΈβ€β™‚οΈ
if: failure()
if: always()
continue-on-error: true
run: |
cat /tmp/chainflip/debug.log
- name: Print solana logs β˜€οΈ
if: failure()
if: always()
continue-on-error: true
run: |
cat /tmp/solana/solana.log
Expand Down
2 changes: 1 addition & 1 deletion localnet/init/scripts/start-solana.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

set -e

export RUST_LOG=solana_runtime::system_instruction_processor=trace,solana_runtime::message_processor=info,solana_bpf_loader=debug,solana_rbpf=debug
solana-test-validator --ledger /tmp/solana/test-ledger > /tmp/solana/solana.log 2>&1 &
3 changes: 2 additions & 1 deletion localnet/manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ build-localnet() {
if [[ $CI == true ]]; then
sudo chmod -R 777 /tmp/chainflip
sudo chmod -R 777 /tmp/solana
sudo chown -R $USER:$USER /tmp/solana
else
chmod -R 777 /tmp/chainflip
chmod -R 777 /tmp/solana
Expand All @@ -131,7 +132,7 @@ build-localnet() {
if which solana-test-validator >>$DEBUG_OUTPUT_DESTINATION 2>&1; then
echo "β˜€οΈ Waiting for Solana node to start"
./localnet/init/scripts/start-solana.sh
until curl -s http://localhost:8899 >> $DEBUG_OUTPUT_DESTINATION 2>&1; do sleep 1; done
check_endpoint_health -s http://localhost:8899 >> $DEBUG_OUTPUT_DESTINATION 2>&1
else
echo "β˜€οΈ Solana not installed, skipping..."
fi
Expand Down

0 comments on commit 4dfa1cc

Please sign in to comment.