actions / actions/runner

Matched problems dropped when running in container

Open
#763 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Runner Bug
Dominant language
C#
Stars
6.3k
Forks
1.4k
Avg merge
1d 16h
Merged PRs (30d)
24

Description

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 on ubuntu-latest) and leaving all configuration unchanged does not drop the issues and creates annotations as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Create a workflow with a configuration similar to (the example uses eslint):
name: PR Linting

on:
  pull_request:
    branches: [ develop ]

jobs:
  lint:
    name: Lint
    runs-on: ubuntu-latest
    container:
      image: node:14.13.1

    steps:
      - uses: actions/checkout@v2

      - name: Enable problem matcher
        run: echo "::add-matcher::.github/problem-matchers/eslint.json"

      - name: Run linter
        run: npm run lint
  1. Add the actual problem matcher (I used the multiline example: https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md)
  2. Run it
  3. Warnings / errors will be highlighted, but no annotations created.
  4. Remove the container section from the definition
  5. Warnings / errors will be highlighted and annotations will be created.

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?

Screenshot 2020-10-21 at 09 18 58

Job Log Output

See screenshot

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files or tests. Start by reproducing the workflow with the container and problem matcher, then inspect the runner logs around the dropped file paths; done means matched problems from container jobs produce annotations without the path warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.