-
Notifications
You must be signed in to change notification settings - Fork 9
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
Build and Static Code Analysis not showing the offending file and line for submodules (OSOE-874) #365
Comments
I think such formatting is already supposed to happen:
Running
I think we just need to change the regex. It still works with the above output, but apparently, something is different under the (Linux) runners of GHA. Because e.g. Regexr shows this working fine: @Psichorex can you perhaps link other examples? @sarahelsaig is this something you'd like to work on? |
I think all of the failed workflows are gone now everything has passed. But we can easily repro this by making a simple intentional warning and commit it to this issue's branch for example. Everytime I got a warning in a submodule this no-info exit happened. |
So you can confirm that this only affects code in submodules? |
I can't say it's 100% just submodules. I can test it tomorrow. What I can tell is that I haven't seen an informative |
OK, thanks. I'm looking into this now. |
It's not necessarily just submodules. This one is for a file directly in the repo: https://github.com/Lombiq/Open-Source-Orchard-Core-Extensions/actions/runs/9767321918/job/26962333964#step:7:168 |
Then I remembered correctly because I had OSOE warnings but I couldnt recall info. |
Some investigation notes:
|
If the build finds a code analysis error, then you'll see something like this in the workflow output:
Note how no indication is given where the analyzer violation is coming from. The file and line should be shown, as it is when you simply run
dotnet build
.This happens if the offending code is not part of the repo, i.e. it's in a submodule.
Further info (from a Teams convo) by @sarahelsaig:
Jira issue
The text was updated successfully, but these errors were encountered: