Skip to content

fix: concurrent concurrent Merkle tree subtree updates #2292

fix: concurrent concurrent Merkle tree subtree updates

fix: concurrent concurrent Merkle tree subtree updates #2292

on:
push:
branches:
- main
paths:
- "programs/**"
- "circuit-lib/verifier/**"
- "merkle-tree/**"
- ".github/workflows/light-system-programs-tests.yml"
pull_request:
branches:
- main
paths:
- "programs/**"
- "circuit-lib/verifier/**"
- "merkle-tree/**"
- ".github/workflows/light-system-programs-tests.yml"
types:
- opened
- synchronize
- reopened
- ready_for_review
name: system-programs-psp-examples-tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
system-programs:
name: system-programs
if: github.event.pull_request.draft == false
runs-on: buildjet-2vcpu-ubuntu-2204
strategy:
matrix:
include:
- program: account-compression
sub-tests: '[
"cargo-test-sbf -p account-compression-test -- --test-threads=1"
]'
- program: light-compressed-pda
sub-tests: '[
"cargo-test-sbf -p compressed-pda-test -- --test-threads=1"
]'
- program: light-registry
sub-tests: '[
"cargo-test-sbf -p registry-test -- --test-threads=1"
]'
- program: light-compressed-token
sub-tests: '[
"cargo-test-sbf -p compressed-token-test -- --test-threads=1"
]'
- program: token-escrow
sub-tests: '[
"cargo-test-sbf -p token-escrow -- --test-threads=1"
]'
- program: program-owned-account-test
sub-tests: '[
"cargo-test-sbf -p program-owned-account-test -- --test-threads=1"
]'
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: true
- name: Setup and build
uses: ./.github/actions/setup-and-build
- name: ${{ matrix.program }}
run: |
source ./scripts/devenv.sh
mkdir -p ./target/deploy
cp ./third-party/solana-program-library/spl_noop.so ./target/deploy/spl_noop.so
anchor build
IFS=',' read -r -a sub_tests <<< "${{ join(fromJSON(matrix['sub-tests']), ', ') }}"
for subtest in "${sub_tests[@]}"
do
echo "$subtest"
eval "$subtest"
done