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

Bump dependencies for protocol 21 #135

Merged
merged 30 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
4636356
Bump dependencies for protocol 21
2opremio Apr 15, 2024
89cf0d1
Update cargo lock file
2opremio Apr 15, 2024
a042604
Bump stellar core image using private one
2opremio Apr 15, 2024
1f07448
Pass bucket list size from meta to simulation NetworkConfig
2opremio Apr 15, 2024
4208775
Run go mod tidy
2opremio Apr 15, 2024
6ef2fbd
Do correct casting for bucket list size
2opremio Apr 15, 2024
989b62b
Bump protocol number to 21
2opremio Apr 15, 2024
0fd535a
Fix integration tests
2opremio Apr 15, 2024
85fcf3e
Bump core debian packahe
2opremio Apr 15, 2024
eefac56
Clean up core version
2opremio Apr 15, 2024
6d32139
Run cargo fmt
2opremio Apr 15, 2024
8739fcb
Fix GetPreflight test
2opremio Apr 15, 2024
22365c9
Replace private stellar core image by official one
2opremio Apr 15, 2024
4575e26
Merge remote-tracking branch 'origin/main' into protocol21
2opremio Apr 16, 2024
25aa244
Bump system test dependencies
2opremio Apr 16, 2024
0b92aca
updated e2e component references
sreuland Apr 17, 2024
695158a
Run integration tests for both protocol 20 and 21
2opremio Apr 17, 2024
31a9b09
Revert "updated e2e component references"
2opremio Apr 17, 2024
479e8f9
Fix dependency checking tool
2opremio Apr 17, 2024
3573e93
Reapply "updated e2e component references"
2opremio Apr 17, 2024
708d3d2
Revert "Reapply "updated e2e component references""
2opremio Apr 17, 2024
ee33858
Revert "Bump system test dependencies"
2opremio Apr 17, 2024
aaf48ff
Bump rs-soroban-env to fix simulation hiccup with p20
2opremio Apr 17, 2024
4e9c762
Make integration tests pass with both protocol 20 and 21
2opremio Apr 17, 2024
4fa2777
Bump dependencies again
2opremio Apr 17, 2024
46537d1
Merge branch 'main' into protocol21
2opremio Apr 17, 2024
15a6ac5
Temporarily disable rs-stellar-xdr check
2opremio Apr 18, 2024
fef7780
Fix core image env variable
2opremio Apr 18, 2024
26a0113
Bump SDK version
2opremio Apr 18, 2024
b818975
Stop using hashes for dependencies
2opremio Apr 18, 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
64 changes: 0 additions & 64 deletions .github/actions/setup-integration-tests/action.yml

This file was deleted.

82 changes: 75 additions & 7 deletions .github/workflows/soroban-rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ defaults:

on:
push:
branches: [main, release/**]
branches: [ main, release/** ]
pull_request:

jobs:
test:
name: Unit tests
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
go: [1.22]
os: [ ubuntu-20.04, ubuntu-22.04 ]
go: [ 1.22 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -105,13 +105,18 @@ jobs:
continue-on-error: true
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
go: [1.22]
os: [ ubuntu-20.04, ubuntu-22.04 ]
go: [ 1.22 ]
protocol-version: [ 20, 21 ]
runs-on: ${{ matrix.os }}
env:
SOROBAN_RPC_INTEGRATION_TESTS_ENABLED: true
SOROBAN_RPC_INTEGRATION_TESTS_CORE_MAX_SUPPORTED_PROTOCOL: ${{ matrix.protocol-version }}
SOROBAN_RPC_INTEGRATION_TESTS_CAPTIVE_CORE_BIN: /usr/bin/stellar-core
PROTOCOL_20_CORE_DEBIAN_PKG_VERSION: 20.2.0-1716.rc3.34d82fc00.focal
PROTOCOL_20_CORE_DEBIAN_PKG_VERSION: 21.0.0-1812.rc1.a10329cca.focal
PROTOCOL_20_CORE_DOCKER_IMG: stellar/unsafe-stellar-core:21.0.0-1812.rc1.a10329cca.focal
2opremio marked this conversation as resolved.
Show resolved Hide resolved
PROTOCOL_21_CORE_DEBIAN_PKG_VERSION: 21.0.0-1812.rc1.a10329cca.focal
PROTOCOL_21_CORE_DOCKER_IMG: stellar/unsafe-stellar-core:21.0.0-1812.rc1.a10329cca.focal
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -120,9 +125,72 @@ jobs:
# We need to full history for git-restore-mtime to know what modification dates to use.
# Otherwise, the Go test cache will fail (due to the modification time of fixtures changing).
fetch-depth: "0"
- uses: ./.github/actions/setup-integration-tests

- uses: ./.github/actions/setup-go
with:
go-version: ${{ matrix.go }}

- name: Pull and set Stellar Core image
shell: bash
run: |
docker pull "$PROTOCOL_${{ matrix.protocol-version }}_CORE_DOCKER_IMG"
echo SOROBAN_RPC_INTEGRATION_TESTS_DOCKER_IMG="$PROTOCOL_${{ matrix.protocol-version }}_CORE_DOCKER_IMG" >> $GITHUB_ENV

- uses: stellar/actions/rust-cache@main

- name: Build soroban contract fixtures
shell: bash
run: |
rustup update
rustup target add wasm32-unknown-unknown
make build_rust
make build-test-wasms

- name: Install Captive Core
shell: bash
run: |
# Workaround for https://github.com/actions/virtual-environments/issues/5245,
# libc++1-8 won't be installed if another version is installed (but apt won't give you a helpful
# message about why the installation fails)
sudo apt-get remove -y libc++1-10 libc++abi1-10 || true

sudo wget -qO - https://apt.stellar.org/SDF.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true sudo apt-key add -
sudo bash -c 'echo "deb https://apt.stellar.org focal unstable" > /etc/apt/sources.list.d/SDF-unstable.list'
sudo apt-get update && sudo apt-get install -y stellar-core="$PROTOCOL_${{ matrix.protocol-version }}_CORE_DEBIAN_PKG_VERSION"
echo "Using stellar core version $(stellar-core version)"

# Docker-compose's remote contexts on Ubuntu 20 started failing with an OpenSSL versioning error.
# See https://stackoverflow.com/questions/66579446/error-executing-docker-compose-building-webserver-unable-to-prepare-context-un
- name: Work around Docker Compose problem
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg

# Install docker apt repo
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Install docker-compose v2 from apt repo
sudo apt-get update
sudo apt-get remove -y moby-compose
sudo apt-get install -y docker-compose-plugin

# add alias for docker compose
ln -f -s /usr/libexec/docker/cli-plugins/docker-compose /usr/local/bin/docker-compose

echo "Docker Compose Version:"
docker-compose version

- name: Build libpreflight
shell: bash
run: make build-libpreflight

- name: Run Soroban RPC Integration Tests
run: |
make install_rust
Expand Down
Loading
Loading