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

Allow multi-line search in helix logs #148

Open
dibarbet opened this issue Dec 9, 2021 · 1 comment
Open

Allow multi-line search in helix logs #148

dibarbet opened this issue Dec 9, 2021 · 1 comment

Comments

@dibarbet
Copy link
Contributor

dibarbet commented Dec 9, 2021

cc @jcouv

It would be useful to allow multi-line matches for the search regex in helix logs. There are cases where we want to narrow down things like a crash in a specific test, or a specific stack trace. For example I may want to search that the test run was aborted while X test is running. Dotnet test currently outputs these as separate lines

The active Test Run was aborted because the host process exited unexpectedly. Please inspect the call stack above, if available, to get more information about where the exception originated from.
The test running when the crash occurred: 
Microsoft.CodeAnalysis.CSharp.UnitTests.CodeGen.CodeGenTupleTests.TupleWithElementNamedWithDefaultName

Helix log search calls into https://github.com/jaredpar/runfo/blob/main/DevOps.Util.DotNet/DotNetQueryUtil.cs#L337 which does a line by line regex match

@jcouv
Copy link

jcouv commented Dec 9, 2021

We may also be able to get away with a more limited feature: search for lines following the "The test running when the crash occurred: " line.

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