Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e8ae567
as_ref in aleph-client for Connection types
fixxxedpoint Dec 15, 2022
528f9aa
rust API for synthetic-network's json API
fixxxedpoint Dec 14, 2022
5a98f81
refactored synthetic-link
fixxxedpoint Dec 15, 2022
9d20ad0
new e2e-tests: high out-latency
fixxxedpoint Dec 15, 2022
2bf7a6e
refactored synthetic-network bash scripts
fixxxedpoint Dec 15, 2022
8a259e0
added git submodule for synthetic-network
fixxxedpoint Dec 15, 2022
0093386
added nightly e2e test for synthetic-network
fixxxedpoint Dec 15, 2022
32eb26d
refactored synthetic-link library
fixxxedpoint Dec 15, 2022
fc1a3f0
added load_config for synthetic-network e2e test
fixxxedpoint Dec 15, 2022
64234ae
more refactoring of synthetic-link
fixxxedpoint Dec 15, 2022
75434a5
missing synthetic-link in Cargo.toml
fixxxedpoint Dec 16, 2022
415faf0
e2e-tests/config.rs cleaned
fixxxedpoint Dec 16, 2022
1ac0792
Into -> From in synthetic-link
fixxxedpoint Dec 16, 2022
55f6f14
slightly cleaned code for synthetic-network
fixxxedpoint Dec 16, 2022
26d1e53
added RUST_SRC_PATH in shell.nix for better support for IDEs
fixxxedpoint Dec 16, 2022
08269ca
slightly cleaned synthetic-link
fixxxedpoint Dec 17, 2022
59461bb
refactored synthetic-link: more types for ranged parameters
fixxxedpoint Dec 17, 2022
7bccc5d
refactored synthetic-link lib
fixxxedpoint Dec 18, 2022
5eaaaf3
added code-docs to synthetic-link
fixxxedpoint Dec 18, 2022
86b0399
using try_from for PortRange in synthetic-lib for input validation
fixxxedpoint Dec 19, 2022
0282568
Merge remote-tracking branch 'origin/main' into network_tests.synthet…
fixxxedpoint Dec 30, 2022
95a7c33
Merge remote-tracking branch 'origin/main' into network_tests.synthet…
fixxxedpoint Jan 2, 2023
31c8cf5
missing deps after merge for synthetic-network
fixxxedpoint Jan 2, 2023
10739fc
Merge remote-tracking branch 'origin/main' into network_tests.synthet…
fixxxedpoint Jan 3, 2023
8eb1410
REVERT ME testing nightly pipeline
fixxxedpoint Jan 3, 2023
98499c2
fix after merge
fixxxedpoint Jan 3, 2023
b991f75
say no to install-protoc in github pipelines
fixxxedpoint Jan 3, 2023
b2a6a9d
Revert "say no to install-protoc in github pipelines"
fixxxedpoint Jan 3, 2023
a0f76fb
GITHUB_TOKEN for "Install Protoc" action
fixxxedpoint Jan 3, 2023
01d7b68
reverted changed file permissions
fixxxedpoint Jan 3, 2023
61e2f79
reverted rust-toolchain file
fixxxedpoint Jan 3, 2023
ca97e85
typo in description for PortRange
fixxxedpoint Jan 3, 2023
03aa36e
e2e-tests: config.validator_names() uses validators_count
fixxxedpoint Jan 3, 2023
d879c86
e2e-tests: added description for the `latency` tests
fixxxedpoint Jan 3, 2023
9a8e405
shell.nix: added description for new ENV var RUST_SRC_PATH - it's for…
fixxxedpoint Jan 3, 2023
f4a646b
BACKUP: e2e-tests/config.rs with iterators
fixxxedpoint Jan 4, 2023
36287c9
new verion of the synthetic-network e2e-test that supports non-docker…
fixxxedpoint Jan 4, 2023
a899970
Merge remote-tracking branch 'origin/main' into network_tests.synthet…
fixxxedpoint Jan 4, 2023
fbd4c4d
fix for e2e-test `no_quorum_without_high_latency` - missing call for …
fixxxedpoint Jan 4, 2023
4c0a55a
extended README.md for the synthetic-network: how to run e2e-tests wi…
fixxxedpoint Jan 4, 2023
93eeb03
renamed e2e-tests for high-out-latency with synthetic-network
fixxxedpoint Jan 4, 2023
656af60
renamed one of the e2e-tests pipelines in nightly for high-latency (s…
fixxxedpoint Jan 4, 2023
f79bdb0
Revert "REVERT ME testing nightly pipeline"
fixxxedpoint Jan 4, 2023
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
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into network_tests.synthet…
…ic-network.pipelines
  • Loading branch information
fixxxedpoint committed Dec 30, 2022
commit 0282568290dfd3bca5374bab33eafff4860900d2
4 changes: 4 additions & 0 deletions .github/actions/run-e2e-test/action.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
follow-up-finalization-check:
description: 'Whether to run a follow-up finalization check.'
required: false
deploy-adder:
description: 'Whether to deploy the adder sample contract to the node.'
required: false
default: 'false'
image-path:
description: 'Custom path to docker image for aleph-node'
required: false
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exclude = [
"fork-off",
"benches/payout-stakers",
"bin/cliain",
"contracts/adder"
"scripts/synthetic-network/synthetic-link",
]

Expand Down
15 changes: 10 additions & 5 deletions aleph-client/src/waiting.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ impl<C: AsRef<Connection> + Sync> AlephWaiting for C {
.blocks()
.subscribe_best()
.await
.unwrap(),
.expect("Failed to subscribe to the best block stream!"),
BlockStatus::Finalized => self
.as_ref()
.client
.blocks()
.subscribe_finalized()
.await
.unwrap(),
.expect("Failed to subscribe to the finalized block stream!"),
};

while let Some(Ok(block)) = block_sub.next().await {
Expand All @@ -72,14 +72,14 @@ impl<C: AsRef<Connection> + Sync> AlephWaiting for C {
.blocks()
.subscribe_best()
.await
.unwrap(),
.expect("Failed to subscribe to the best block stream!"),
BlockStatus::Finalized => self
.as_ref()
.client
.blocks()
.subscribe_finalized()
.await
.unwrap(),
.expect("Failed to subscribe to the finalized block stream!"),
};

info!(target: "aleph-client", "waiting for event {}.{}", T::PALLET, T::EVENT);
Expand All @@ -105,7 +105,12 @@ impl<C: AsRef<Connection> + Sync> AlephWaiting for C {

async fn wait_for_era(&self, era: EraIndex, status: BlockStatus) {
let addrs = aleph_zero::api::constants().staking().sessions_per_era();
let sessions_per_era = self.as_ref().client.constants().at(&addrs).unwrap();
let sessions_per_era = self
.as_ref()
.client
.constants()
.at(&addrs)
.expect("Failed to obtain sessions_per_era const!");
let first_session_in_era = era * sessions_per_era;

self.wait_for_session(first_session_in_era, status).await;
Expand Down
44 changes: 7 additions & 37 deletions e2e-tests/Cargo.lock
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 13 additions & 12 deletions e2e-tests/src/config.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,20 @@ static GLOBAL_CONFIG: Lazy<Config> = Lazy::new(|| {
.ok()
.map(|s| s.split(',').map(|s| s.to_string()).collect());
let sudo_seed = get_env("SUDO_SEED").unwrap_or_else(|| "//Alice".to_string());
let reserved_seats = get_env("RESERVED_SEATS");
let non_reserved_seats = get_env("NON_RESERVED_SEATS");
let upgrade_to_version = get_env("UPGRADE_VERSION");
let upgrade_session = get_env("UPGRADE_SESSION");
let upgrade_finalization_wait_sessions = get_env("UPGRADE_FINALIZATION_WAIT_SESSIONS");
let out_latency = get_env("OUT_LATENCY").unwrap_or(500);

Config {
node,
validator_count,
validators_seeds,
sudo_seed,
test_case_params: TestCaseParams {
reserved_seats,
non_reserved_seats,
upgrade_to_version,
upgrade_session,
upgrade_finalization_wait_sessions,
out_latency,
reserved_seats: get_env("RESERVED_SEATS"),
non_reserved_seats: get_env("NON_RESERVED_SEATS"),
upgrade_to_version: get_env("UPGRADE_VERSION"),
upgrade_session: get_env("UPGRADE_SESSION"),
upgrade_finalization_wait_sessions: get_env("UPGRADE_FINALIZATION_WAIT_SESSIONS"),
adder: get_env("ADDER"),
adder_metadata: get_env("ADDER_METADATA"),
},
}
});
Expand Down Expand Up @@ -132,6 +127,12 @@ pub struct TestCaseParams {
/// How many sessions we should wait after upgrade in VersionUpgrade test.
pub upgrade_finalization_wait_sessions: Option<u32>,

/// Adder contract address.
pub adder: Option<String>,

/// Adder contract metadata.
pub adder_metadata: Option<String>,

/// Milliseconds of network latency
pub out_latency: u64,
}
1 change: 1 addition & 0 deletions e2e-tests/src/test/mod.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ mod era_payout;
mod era_validators;
mod fee;
mod finalization;
mod helpers;
mod high_latency;
mod rewards;
mod staking;
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2022-11-28
nightly-2022-08-12
You are viewing a condensed version of this merge commit. You can view the full changes here.