forked from libp2p/test-plans
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ping/rust: introduce rust cross-version test (libp2p#26)
* ping/go: fix composition name * ping/rust: introduce the ping/rust test * Showcase version selection through features Can be run with `cargo check --features libp2pv0450` or `cargo check --features libp2pv0440`. * Peer programming session * ping/rust: experiment with master & current groups * ping/rust/src/main: Simplify import across versions * ping/rust/src/main: Remove commented out code * ping/rust/src/main: Clean up * ping/rust/Dockerfile: Update crates.io index in separate step Potentially allows caching. * ping/rust/Dockerfile: Don't both build and install Building the binary in release mode is enough. * ping/rust/src/main: Clean up log lines * ping/rust: Implement iterations with latency * ping/rust/src/main: Extract signal and wait logic into fn * ping/rust/Dockerfile: import caching fixes * ping/: add cross-version composition * ping/rust: add json payloads fix * ping/rust: match iterations id with go * ping/rust/Dockerfile: improve caching * ci: introduce workflow ping-interop-rust * ping/interop: update latest versions * ping/_compositions: add full ping interop * ci: resolve git reference to sha * ping/rust/Dockerfile: drop cargo output * ping/rust: drop version indirection * ping/rust/Dockerfile: fix features to support caching * ping/rust/Dockerfile: do not cache the rewritten package * ping/_compositions/*: use concurrent_builds * ping/_compositions/*: drop test_instances count * ci: build composition then run * ping: introduce InteropTarget option * ci: fix interop target & build * ping/_compositions/*: introduce load_resource * ci: 10 minutes timeout for the run step * README: add update instruction for rust & clean go * ping/rust/Dockerfile: add protocol buffer compiler * ping/rust/Cargo.lock: cargo update packages * .github: increase testground timeout Co-authored-by: Max Inden <[email protected]>
- Loading branch information
1 parent
3f6b909
commit 072d351
Showing
19 changed files
with
4,970 additions
and
118 deletions.
There are no files selected for viewing
This file contains 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 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 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,30 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
testground_endpoint: | ||
type: string | ||
required: false | ||
description: testground endpoint | ||
custom_git_reference: | ||
type: string | ||
required: false | ||
description: rust ref | ||
custom_git_target: | ||
type: string | ||
required: false | ||
description: repository to use as replace target | ||
default: github.com/libp2p/rust-libp2p | ||
|
||
name: rust-libp2p ping - rust test with testground. | ||
|
||
jobs: | ||
run-libp2p-test-plans: | ||
# If you intend to use this workflow from another repo, | ||
# you need to pass the repo and the version: | ||
# uses: "libp2p/test-plans/.github/workflows/run-composition.yml@master" | ||
uses: "./.github/workflows/run-composition.yml" | ||
with: | ||
composition_file: "ping/_compositions/rust-cross-versions.toml" | ||
custom_git_target: ${{ github.event.inputs.custom_git_target }} # nothing or "some-fork/go-libp2p" | ||
custom_git_reference: ${{ github.event.inputs.custom_git_reference }} # a git reference | ||
testground_endpoint: ${{ github.event.inputs.testground_endpoint }} |
This file contains 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,39 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
testground_endpoint: | ||
type: string | ||
required: false | ||
description: testground endpoint | ||
custom_git_reference: | ||
description: the git commit or branch we're going to use for the custom target | ||
required: false | ||
type: string | ||
custom_git_target: | ||
description: the custom git fork url we're going to use for the custom target (github.com/some-fork/rust-libp2p) | ||
required: false | ||
type: string | ||
custom_interop_target: | ||
description: in the case of cross-implementation testing, the implementation target (go | rust | ...) | ||
required: false | ||
type: string | ||
|
||
name: libp2p ping - go and rust test with testground. | ||
|
||
jobs: | ||
run-ping-latest: | ||
uses: "./.github/workflows/run-composition.yml" | ||
with: | ||
composition_file: "ping/_compositions/go-rust-interop-latest.toml" | ||
custom_git_target: ${{ github.event.inputs.custom_git_target }} # nothing or "some-fork/go-libp2p" | ||
custom_git_reference: ${{ github.event.inputs.custom_git_reference }} # a git reference | ||
custom_interop_target: ${{ github.event.inputs.custom_interop_target }} # go | rust | ||
testground_endpoint: ${{ github.event.inputs.testground_endpoint }} | ||
run-ping-all: | ||
uses: "./.github/workflows/run-composition.yml" | ||
with: | ||
composition_file: "ping/_compositions/go-rust-interop.toml" | ||
custom_git_target: ${{ github.event.inputs.custom_git_target }} # nothing or "some-fork/go-libp2p" | ||
custom_git_reference: ${{ github.event.inputs.custom_git_reference }} # a git reference | ||
custom_interop_target: ${{ github.event.inputs.custom_interop_target }} # go | rust | ||
testground_endpoint: ${{ github.event.inputs.testground_endpoint }} |
This file contains 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 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 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
Oops, something went wrong.