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: make sde log wait for DAT file to be fully written and improve error handling #123

Merged
merged 7 commits into from
Sep 28, 2021

Conversation

chrispcampbell
Copy link
Contributor

Fixes #122

See issue for more details. The primary fix (wait for the write buffer to be flushed) is in sde-log.js, and the rest improves the error handling for sde test so that it makes the build fail fast.

@ToddFincannon
Copy link
Collaborator

That all looks reasonable. I was not able to test the intermittent write failure, since I don't have a failing test. Generating and catching an exception on the other errors instead of just printing an error message is the right way to do it.

@chrispcampbell
Copy link
Contributor Author

Thanks, Todd. I meant to include links to the latest build logs. Before this fix, nearly every GH Actions build would include one or more tests with the error message listed in the issue description. After this fix, the error no longer appears:
https://github.com/climateinteractive/SDEverywhere/runs/3726208392?check_suite_focus=true#step:4:16

(I re-ran the build a few times to verify.)

Copy link
Collaborator

@ToddFincannon ToddFincannon left a comment

Choose a reason for hiding this comment

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

Approving this PR with the previously posted comments

@chrispcampbell chrispcampbell merged commit 34f25f8 into develop Sep 28, 2021
@chrispcampbell chrispcampbell deleted the chris/122-fail-build-when-test-fails branch September 28, 2021 00:17
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.

Tests intermittently fail without causing the build to fail
2 participants