-
Notifications
You must be signed in to change notification settings - Fork 521
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
e2e: run-multiple.sh
script should save the dump of failed tests
#4115
Comments
@cason I've already implemented this logic, it's the concept of https://github.com/cometbft/cometbft/tree/andy/e2e-preserve-logs you can run with "executions" enabled
and it will save all the logs and manifest used in each run (could add logic to save the node data/config too), the nice thing you can run the same manifest multiple times, maybe modifying a parameter, and still keep the old results because it saves each run within a time date folder
This logic can be expanded on many fronts, like some ideas parse the results and generate automated reports in order to improve the time it currently takes to comb through the results or eventually do diffs of results based on tweaks between runs 😉 I just didn't have time to port this to main because I was busy investigation the nightly failures but if you think this is the right direction and should be prioritized I'd be happy to work on it. |
@andynog , this is great, should we open a PR on this?
Yes, I would keep everything. |
@cason, I'll try to find time this week to push a PR with this logic 👍 |
Thank you for this code, @andynog, great work. I was wondering, however, whether we should add a command to the runner to dump all this information. So we can run the multiple actions, one by one, and after stopping the network but before cleaning-up the execution, we could also "manually" dump and the relevant data. Ok, it is true that the Comet's home directories for every node are under |
This issue can be associated with #4113. |
PR #4165 was closed since the solution to this problem needs additional design considerations that needs to be addressed/defined before a logic can be implemented. |
This is a helper script to run multiple executions, one per manifest.
If an execution fails, it dumps some data to the standard output and then cleans the directory with the actual execution data:
cometbft/test/e2e/run-multiple.sh
Lines 24 to 35 in 276996a
It should instead create a temporary directory with the information of the failed execution, containing:
network/${manifest%.toml}
execution directorylog
action)The text was updated successfully, but these errors were encountered: