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 typo from #237 #238

Merged
merged 4 commits into from
Jul 8, 2024
Merged

Conversation

2opremio
Copy link
Contributor

@2opremio 2opremio commented Jul 4, 2024

I didn't adapt the logic right.

This was hard to debug because, in integration tests, it caused the daemon to run d.logger.WithError(err).Fatal("could not build migrations"), which in turn runs os.Exit which ends the test right away (without flushing logs etc).

I need to think how to improve this. One option is to override the ExitFunc in logrus with an assertion.

See #237 (comment)

I didn't adapt the logic right.

This was hard to debug because, in integration tests, it caused the
daemon to run `d.logger.WithError(err).Fatal("could not build
migrations")`, which in turn runs `os.Exit` which ends the test right
away (without flushing logs etc).

I need to think how to improve this. One option is to
override the `ExitFunc` in logrus with an assertion.
@2opremio 2opremio force-pushed the fix-integration-tests branch from 6ad1e61 to 03507be Compare July 8, 2024 16:50
@2opremio 2opremio changed the title Fix integration test execution in CI Fix typo from #237 Jul 8, 2024
@2opremio 2opremio marked this pull request as ready for review July 8, 2024 16:51
@2opremio 2opremio marked this pull request as draft July 8, 2024 16:58
@2opremio 2opremio marked this pull request as ready for review July 8, 2024 18:29
@aditya1702 aditya1702 merged commit 665aa86 into stellar:main Jul 8, 2024
19 checks passed
@2opremio 2opremio deleted the fix-integration-tests branch July 8, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants