Skip to content

Conversation

gijswijs
Copy link
Contributor

This PR adds three targets for race detection:

  • build-itest-race builds itest btcd and itest lnd, but only the
    latter with the race flag set.
  • itest-race-only runs itests with the race flag set.
  • itest-race runs build-itest-race and itest-race-only
    consecutively.

It is uncertain whether we need to build lnd with the race flag set. Race conditions should already have been found during CI of lnd itself. This would only detect edge cases where the race condition is triggerd by something in tapd.

Running itests with this setup results in a context timeout. It seems to be sensitive to that. So before we can do proper race detection, we need to fix that.

This commits adds three targets for race detection:

- `build-itest-race` builds itest btcd and itest lnd, but only the
  latter with the `race` flag set.
- `itest-race-only` runs itests with the `race` flag set.
- `itest-race` runs `build-itest-race` and `itest-race-only`
  consecutively.
@gijswijs gijswijs marked this pull request as draft April 29, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

2 participants