-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
network-audit intermittently fails on Linux #6189
Comments
I believe this started happening with C77 |
cc: @diracdeltas Can you take a look? |
@jumde does this error look familiar to you? i vaguely remember you may have fixed something like this in the past |
This looks like a parsing error, most of the errors that I have looked at involved process being terminated early/not-at-all. I can look at this, not seen this error on mac though. |
maybe only do the json hack if the platform is windows? |
@diracdeltas interestingly enough, it seems the output is always malformed (when testing on Linux). Maybe the way the process gets terminated doesn't let it clean up properly? |
@bsclifton i wonder if that's because it's sending SIGKILL instead of SIGTERM? https://github.com/brave/brave-browser/pull/7182/files#diff-c1a0ca0ae9997d37108b9580a48466bcR98 |
@diracdeltas yes - I think that's definitely part of the problem. Before that was introduced (with #4036) it was hanging indefinitely. I'm curious if SIGTERM for all cases would work? I suspect there was an issue with it (@jumde would know) Important to note though: because this is abruptly being terminated, there are logs which haven't been flushed (because the JSON isn't terminated properly). This means the integrity of the check is questionable, since there is currently the band-aid in place which corrects the missing line ending. There could be entries (which might be considered violations) which haven't been written to the log which are dropped when the process is terminated I'm going to create a new issue for the integrity - maybe you can help me prioritize? 😄 |
Closing as a duplicate of #7207 |
On CI, only on Linux, occasionally fails with an error similar to:
The text was updated successfully, but these errors were encountered: