-
Notifications
You must be signed in to change notification settings - Fork 959
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
Matched problems dropped when running in container #763
Comments
I'm also experiencing this issue. For me, it seems the problem matcher is not mounting the container volumes properly. In a non-container job on
In a job with
In the container initialization I can see:
This specifically includes: So, either:
For case 1), I tried: - shell: bash
run: |
if [ "$GITHUB_WORKSPACE" != "${{ github.workspace }}" ]; then
mkdir -p "$(dirname "${{ github.workspace }}")"
ln -s "$GITHUB_WORKSPACE" "${{ github.workspace }}"
fi
ls -al "${{ github.workspace }}" as well as (in case it doesn't follow symlinks): - shell: bash
run: |
if [ "$GITHUB_WORKSPACE" != "${{ github.workspace }}" ]; then
mkdir -p "$(dirname "${{ github.workspace }}")"
cp -r "$GITHUB_WORKSPACE/." "${{ github.workspace }}/"
fi
ls -al "${{ github.workspace }}" However, it seems that unfortunately the issue is 2). So this volume One possibility is a UID/GID permissions mismatch between the host volume and the user that the container is running as. Normally the container runs as root ( container:
image: debian:stable
options: "--user 1001:123" I confirmed the container was now running as that user with I think that is the length that I can go to troubleshoot without being able to run commands on the runner host after the container has run. This whole issue is also peculiar because running cc @electronjoe, this does seem very related or the same issue as #1009. |
I should also note that in my case, I am matching a relative path. My workflow will print something like:
This file definitely exists from the repo root and from the current working directory, which is |
Variable mismatch related to #2058 |
The answer is found from looking at this section of code: runner/src/Runner.Worker/Handlers/OutputManager.cs Lines 304 to 325 in aaf02ab
Because the error printed is Puzzlingly, So my solution was: - name: Update package database
run: apt-get update -y
- name: Install Git
run: apt-get -y install git
- uses: actions/checkout@v3 For jobs that build on previous jobs using artifacts and do not run checkout themselves: I am now making sure that the I think this exposes a broader issue, which is that the build should provide a way to specify the base repo folder without requiring a |
Describe the bug
A problem matcher enabled using a 'normal'
run
step in a job running in a container drops all issues with "Dropping file value ... Path is not under the workflow repo." Removing the container option from the workflow file (such that it runs onubuntu-latest
) and leaving all configuration unchanged does not drop the issues and creates annotations as expected.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Matched issues resulting in annotations when running in a container.
Runner Version and Platform
2.273.5 on GitHub.com
OS of the machine running the runner? OSX/Windows/Linux/...
Ubuntu 18.04.5
What's not working?
Job Log Output
See screenshot
The text was updated successfully, but these errors were encountered: