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

handle extant but closed hitlogfile file #665

Merged
merged 1 commit into from
May 9, 2024
Merged

Conversation

leondz
Copy link
Owner

@leondz leondz commented May 8, 2024

evalutors/base is now more defensive and can recover from closed hitlogfiles

cf. #637 (review) - testing now passes with a NIM_API_KEY set

resolves #599

NB: This PR leaves unresolved the underlying misbehaviour that leads to _config.transient.hitlogfile closing before the scan completes. That behaviour is potentially a side-effect of insufficient state management of _config, tracked in #646. We might consider undoing this PR when #646 is resolved, or blocking it in order to testing #646. Adding an assert to monitor hitlogfile state may be sufficient when completing #646.

All that said: pending the larger change to _config state, this PR should enable hitlog file writing to at least recover from inconsistent state.

@leondz leondz marked this pull request as ready for review May 8, 2024 10:12
@leondz leondz requested a review from jmartin-tech May 8, 2024 10:12
@leondz leondz changed the title handle extant but closed hitlogfile handle extant but closed hitlogfile file May 8, 2024
Copy link
Collaborator

@jmartin-tech jmartin-tech left a comment

Choose a reason for hiding this comment

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

This gets the job done. I agree this will likely be reverted or adjusted by #646.

@leondz do we need a Sign-off in the commit message or can we land this as is since there is a DCO signature already?

@leondz
Copy link
Owner Author

leondz commented May 9, 2024

DCO signature in place should be enough.

@leondz leondz merged commit 53ab860 into main May 9, 2024
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2024
@leondz leondz deleted the bugfix/hitlogfile_gate branch May 29, 2024 07:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hitlogfile write exception
2 participants