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

Need to save analyzer extension's run_info before run starts (bug from #3347?) #3451

Open
jonahpearl opened this issue Sep 29, 2024 · 3 comments

Comments

@jonahpearl
Copy link
Contributor

@ alejoe91, can you explain why this call to self._save_run_info() line got deleted? I think it's important to have it saved before the run starts, otherwise if the run crashes there is no run_info present to be loaded.

Originally posted by @jonahpearl in ff07ac6

@jonahpearl
Copy link
Contributor Author

Sorry idk how well the commenting works, but here's a screenshot of the line i'm referencing, specifically the deletion of line 2017:
image

@alejoe91
Copy link
Member

The run info dict is instantiated with the object, so there is no need to save it before it has run.

Is it triggering a specific error for you? All tests are running fine, so I don't think it's crashing

@jonahpearl
Copy link
Contributor Author

It doesn't accomplish the intended use case, which was to allow the user (or the code) to check the run info dict for run_completed as being true or false in case the analyzer code crashes. As it is, one could check for the existence of the run info json file as a proxy for whether the run finished, I suppose, but that's a bit counterintuitive.

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

No branches or pull requests

2 participants