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: handle context cancellations in txsim #2830

Merged
merged 2 commits into from
Nov 9, 2023
Merged

Conversation

cmwaters
Copy link
Contributor

@cmwaters cmwaters commented Nov 8, 2023

I have seen a few CI tests fail because although the context stops the process, it isn't correctly parsed causing the program that called the txsim to think that there was another error and not the context Canceled or DeadlineExceeded errors

@celestia-bot celestia-bot requested a review from a team November 8, 2023 15:59
@codecov-commenter
Copy link

Codecov Report

Merging #2830 (e0c7cd4) into main (75f9393) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #2830      +/-   ##
==========================================
- Coverage   19.80%   19.80%   -0.01%     
==========================================
  Files         144      144              
  Lines       17398    17403       +5     
==========================================
  Hits         3446     3446              
- Misses      13631    13636       +5     
  Partials      321      321              
Files Coverage Δ
test/txsim/run.go 0.00% <0.00%> (ø)

@cmwaters cmwaters enabled auto-merge (squash) November 9, 2023 09:29
Copy link
Contributor

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

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

LGTM!

@cmwaters cmwaters merged commit 5dfe777 into main Nov 9, 2023
29 checks passed
@cmwaters cmwaters deleted the cal/context-handling-txsim branch November 9, 2023 21:05
@evan-forbes evan-forbes added the backport:v1.x PR will be backported automatically to the v1.x branch upon merging label Nov 10, 2023
mergify bot pushed a commit that referenced this pull request Nov 10, 2023
I have seen a few CI tests fail because although the context stops the
process, it isn't correctly parsed causing the program that called the
txsim to think that there was another error and not the context Canceled
or DeadlineExceeded errors

(cherry picked from commit 5dfe777)
rootulp pushed a commit that referenced this pull request Nov 10, 2023
This is an automatic backport of pull request #2830 done by
[Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on
`<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:v1.x PR will be backported automatically to the v1.x branch upon merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants