stellar / system-test

Home of the stellar/stellar-system-test docker image for e2e system testing
1 stars 5 forks source link

Update soroban-rpc build process to the new preflight changes #18

Closed 2opremio closed 1 year ago

2opremio commented 1 year ago

After https://github.com/stellar/soroban-tools/pull/269, the rust preflight library needs to be compiled before compiling the Go code.

Thus, I resorted to:

  1. Use the project's Makefile to build soroban-rpc (which takes into account building the rust library)
  2. Installing the rust toolchain before building soroban-rpc (since it needs Rust to build)
sreuland commented 1 year ago

you can run tests with changes locally including the local soroban-tools working copy, by building and running almost the same format as the e2e in tools gha runs:

system-test$ docker build --platform linux/amd64 --no-cache -t stellar/system-test -f Dockerfile .

system-test$ docker run --platform linux/amd64 -t --rm -v /your/path/to/soroban-tools:/soroban-tools stellar/system-test:latest --SorobanCLISourceVolume "/soroban-tools" --SorobanRPCSourceVolume "/soroban-tools" --SorobanExamplesGitHash "main" --SorobanExamplesRepoURL "https://github.com/stellar/soroban-examples.git" --RustToolchainVersion "1.66.0" --CoreDebianVersion "19.6.1-1158.c0ad35aa1.focal~soroban" --HorizonDebianVersion "2.22.0~soroban-322" --TestFilter "^TestDappDevelop$/^.*$" --VerboseOutput true
2opremio commented 1 year ago

@sreuland PTAL, it seems to work (at least the test starts)