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

Fix master build #1079

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Fix master build #1079

merged 2 commits into from
Oct 1, 2024

Conversation

JesseAbram
Copy link
Member

Fixes master build by not querying potentially missed event then repinging until the event block had been pruned, this instead just goes to non pruning state of the chain

got_jumpstart_event = true;
break;
};
assert_eq!(format!("{:?}", jump_start_status), format!("{:?}", JumpStartStatus::Done));
Copy link
Contributor

Choose a reason for hiding this comment

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

This will always be true, but no harm in leaving it in

Copy link
Contributor

@ameba23 ameba23 left a comment

Choose a reason for hiding this comment

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

🥇 Great that this works and CI is passing again.

I don't totally understand why it works. I am guessing it must be that sometimes the jumpstart finished event was happening whilst we were waiting for the http responses, and so we were missing it.

run_to_block(&rpc, block_number + 9).await;
This feels like something which could break again easily when something changes either with the protocol or the hardware we run the tests on.

I feel like we keep getting problems in tests relating to mocking the OCW requests (eg the test_store_share test). I know you disagree but i think the way to go is to only mock these when you are specifically testing the behavior of that http endpoint.

@JesseAbram
Copy link
Member Author

🥇 Great that this works and CI is passing again.

I don't totally understand why it works. I am guessing it must be that sometimes the jumpstart finished event was happening whilst we were waiting for the http responses, and so we were missing it.

run_to_block(&rpc, block_number + 9).await; This feels like something which could break again easily when something changes either with the protocol or the hardware we run the tests on.

this should be fine this was because we.....I upped the refresh sent block from 5 to 7, so this created a race condition, now it should be good.

I feel like we keep getting problems in tests relating to mocking the OCW requests (eg the test_store_share test). I know you disagree but i think the way to go is to only mock these when you are specifically testing the behavior of that http endpoint.

mmmm fair we can bring it up on our next core meeting,

@JesseAbram JesseAbram merged commit 0b8d54a into master Oct 1, 2024
8 checks passed
@JesseAbram JesseAbram deleted the fix-master-build branch October 1, 2024 13:02
ameba23 added a commit that referenced this pull request Oct 1, 2024
* master:
  Pregenerate keyshares sets for all possible initial signer comittees (#1073)
  Fix master build (#1079)
  Bump reqwest from 0.12.7 to 0.12.8 in the patch-dependencies group (#1082)
  Block tss chain when signer (#1078)
ameba23 added a commit that referenced this pull request Oct 2, 2024
* master:
  Bump clap from 4.5.18 to 4.5.19 in the patch-dependencies group (#1091)
  Avoid panic by checking that we have a non-signing validator before selecting one (#1083)
  Fix master build (#1088)
  Small fixes to `test-cli` (#1084)
  Pregenerate keyshares sets for all possible initial signer comittees (#1073)
  Fix master build (#1079)
  Bump reqwest from 0.12.7 to 0.12.8 in the patch-dependencies group (#1082)
  Block tss chain when signer (#1078)
  Run multiple test validator (#1074)
  Bump tempfile from 3.12.0 to 3.13.0 (#1076)
  Bump axum from 0.7.6 to 0.7.7 in the patch-dependencies group (#1075)
  Unignore register and sign integration test, and do a non-mock jumpstart (#1070)
  No unbonding when signer or next signer (#1031)
  Add `/relay_tx` endpoint (#1050)
  Fix how pre-generated keyshares are added for tests (#1061)
  Handle Provisioning Certification Keys (PCKs) (#1051)
  Bump async-trait from 0.1.82 to 0.1.83 in the patch-dependencies group (#1067)
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