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

makefile: targets for itest w/ race detection #892

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

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