-
Notifications
You must be signed in to change notification settings - Fork 995
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
Problem matcher annotations not showing up - but appear matched in logs #1009
Comments
I'm not sure if this should be in actions/runner or actions/toolkit. I did go looking for related issues and found the following.
From the above a comment by @ericsciple:
To my eye, the paths being logged by the pattern-match detection logging look good if one assumes they are based upon the repo_root (e.g. |
I was able to enable diagnostic logs and this is good (that is, looks informative!):
|
To my eye, reviewing the above - this looks like a bug someplace in GH Actions? The inferred path for reasons unclear has duplicated the repository name ( What I might try is giving an absolute path in the log warning, to see what happens then (e.g. postprocess my warnings to give file paths not in |
This appears possibly overlapping Issue #763 ? |
A Github Community post seems to possibly explain this issue. I'll explore this.
|
Per discussion in: actions/runner#1009 Signed-off-by: Scott Harrison Moeller <[email protected]>
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
From my diagnostics logs, note that the docker-run-action@v2 defaults to dropping you into the
|
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
I have achieved success - but I do believe there is unexpected behavior here. Issues with my environment:
Doing the follow resulted in correct annotation capture:
To Github actions | runner team, I believe following needs to be addressed more clearly (repaired or documented):
|
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
An attempt to use learnings from here: actions/runner#1009
Describe the bug
Edit: I believe there is a bug at play here for atypical workflows, see my conclusion below. Upshot: If you are using a problem matcher on output from a container, ensure that the working directory you are emitting those logs from within the container is a volume mounted from ${{ github.workspace }} in your GH Action Runner VM.
A gcc-problem-matcher I authored from a Template is working when applied to a simple demonstration project. Working specifically meaning the UI annotates
-Wunused-variable
in theFiles changed
UI tab of the Pull Request.When I apply the same gcc-problem-matcher to my desired project in This PR, no such UI annotation appears (though logs indicate that the matcher did hit on the GCC warnings, more below). The following deltas exist that I'm aware of.
/magma/lte/...
xo
to trim the/mamga/
leaving justlte/...
to match repoTo Reproduce
Steps to reproduce the behavior:
GCC Warnings & Errors
check (takes ~an hour to build and run the first time)##[warning]lte/gateway/c/oai/tasks/nas/emm/Attach.c:206:7: warning: unused variable 'totally_useless' [-Wunused-variable]
Expected Behavior
In the prototype Pull Request to my forked Magma repo, I expect the
-Wunused-variable
annotation to correctly display in the UI for the pull request - applied to the filelte/gateway/c/oai/tasks/nas/emm/Attach.c
in line with the following log message that makes it appear to have successfully problem matched.This behavior is working in my simple repo Pull Request sanity check which also uses electronjoe/gcc-problem-matcher.
Runner Version and Platform
Pulled from mis-behaving PR build_oai job.
Job Log Output
I'm not sure what all is relevant, but here are some bits I thought might be important. Pulled from mis-behaving PR build_oai job. Note that I only observe the
##[warning]
when the problem-matcher is firing in GH Action, so that looks good to me.Runner and Worker's Diagnostic Logs
Perhaps this is an important next step. I had attempted to enable diagnostic logs and it seems I failed (as I see no logs of the shape described in this subsection). I'll attempt to generate another run with diagnostic logs now.
The text was updated successfully, but these errors were encountered: