feat: add remote prover tests run on monitor#1236
Conversation
8b62ee3 to
e5924b7
Compare
e5924b7 to
90aff20
Compare
| .without_metadata_genesis() | ||
| .connect_lazy::<RemoteProverClient>(); | ||
|
|
||
| let mut interval = tokio::time::interval(Duration::from_secs(30)); // Test every 30 seconds |
There was a problem hiding this comment.
Just wondering if we should make this relatively large - say 1 or 2 minutes? Particularly if we expect testnet/mainnet provers to be under significant load (I'm not sure how much load this request itself involves).
And it would be good to make this configurable but not required for this PR.
There was a problem hiding this comment.
Yes, agree that the best is making this configurable. The configuration options is growing and I'm thinking that switching to clap might be a good idea, wdyt?
There was a problem hiding this comment.
In the meantime, I changed it to 2 mins.
There was a problem hiding this comment.
Yea clap sounds good. Main thing is to have everything configurable via env vars as always.
|
Not a review yet (I haven't looked at the code) - but curious how does the frontend look now? Specifically, what kind of info do we show for each proof "probe". Also, how are we building the proof request? For this we need to have a transaction, right? Are we using a transaction against the faucet, or something else? |
|
Looks really good!
If not too difficult, I'd show a part of the error message and then an option to copy the rest of the message to clipboard. So, for example, we could show just "InvalidArgument" and then case a "copy" button next to it.
For now, let's just to transaction proofs - we can add other proof types later. Regarding proof generation - I think using
I think this is fine for now and I think it may be useful to see anyway that the status monitor is out of sync with the underlying network. So, I'd keep things as is. |
Nice! Another UI question: in the RPC card, is there not enough space to show the full genesis block hash? (it feels like it should almost fit there).
I think these are separate because this would test the full flow (not just the remote prover). But we could probably use the transaction we generate there to submit to the remote prover as well. This way, we'll test both things.
Not sure yet. Maybe we use the "real" transaction discussed above to build a single-transaction batch, and then build a single-batch block. But also, this is fairly far away - so, things could change. |
Yes, agreed - let's keep the truncated version. One small suggestion: I'd probably prefix it with Separately - what's outstanding on this PR? Or are we just waiting for more reviews on it? |
With this last thing addressed, this PR is ready. |
bobbinth
left a comment
There was a problem hiding this comment.
A very shallow review from me - but looks good! Thank you!





Send periodical
proverequests to the remote provers.I ended up refactoring a bit the code for the sake of simplicity and type safety.