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

[forge] reuse existing management configmap #2132

Merged
merged 1 commit into from
Jul 21, 2022
Merged

Conversation

rustielin
Copy link
Contributor

@rustielin rustielin commented Jul 21, 2022

Description

Ability to reuse existing forge-management configmaps. This lets you re-run a Forge test in the same namespace as one that did not clean up properly (e.g. crashed or was --keep). We see this crash Forge every now and then due to high test volume and high test pre-emption due to GHA triggering logic.

Also introduce forge test k8s --reuse option, which reuses the running network (e.g. it was --keep before) instead of wiping the network (re-run genesis and re-install validators)

Test Plan

Run on forge


This change is Reviewable

@rustielin rustielin force-pushed the rustielin/forge-reuse branch from f06ac5a to 13ef7df Compare July 21, 2022 19:26
@rustielin rustielin marked this pull request as ready for review July 21, 2022 19:28
assert!(base_num_validators <= MAX_NUM_VALIDATORS);

let new_era = get_new_era().unwrap();
let new_era = "fg".to_string();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: May be a better name instead of "fg", how about "forge_testing" ?

if let Err(KubeError::Api(api_err)) = configmap.create(&PostParams::default(), &config).await {
if api_err.code == 409 {
info!(
"Configmap {} already exists, continuing with it",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this. I was meaning to put out this change but you beat me to it :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops :p well Forge needs lots of improvement -- more opportunities!

@rustielin rustielin enabled auto-merge (rebase) July 21, 2022 21:26
@github-actions
Copy link
Contributor

❌ Forge test failure

Forge is land-blocking

all up : 5868 TPS, 2901 ms latency, 6050 ms p99 latency,no expired txns

@github-actions
Copy link
Contributor

✅ Forge test success

Forge is land-blocking

all up : 5704 TPS, 2970 ms latency, 5600 ms p99 latency,no expired txns

@rustielin rustielin merged commit 42dfff0 into main Jul 21, 2022
@rustielin rustielin deleted the rustielin/forge-reuse branch July 21, 2022 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants