feedback icon indicating copy to clipboard operation
feedback copied to clipboard

`!` pattern not working with `ignore:`

Open dabrahams opened this issue 1 year ago • 3 comments

Describe the bug

ignore:
  - !Sources/

in codecov.yml produces:

yaml.constructor.ConstructorError: could not determine a constructor for the tag '!Sources/'
  in "<unicode string>", line 2, column 5:
      - !Sources/
        ^

Environment (please complete the following information):

  • System: GitHub CI.

To Reproduce

See https://github.com/hylo-lang/Swifty-LLVM/actions/runs/9132968118/job/25115449559?pr=73#step:17:56

You can clone the project and run it yourself if you want to reproduce.

Expected behavior All paths other than those beginning with Sources/ are ignored.

dabrahams avatar May 17 '24 19:05 dabrahams

Never mind; it just needed to be quoted.

ignore:
  - '!Sources/'

dabrahams avatar May 17 '24 19:05 dabrahams

@rohan-at-sentry Related to this and Dave's other regex - docs related issues, https://github.com/codecov/shared/blob/f17719ac12d8e8bf60c7b51af5716b001ccdff0e/shared/validation/helpers.py#L223-L225 Seems well written. Possiby could be of help in re-writing the docs.

@dabrahams I'm going to re-open this so we address the confusion here in the docs.

drazisil-codecov avatar May 20 '24 12:05 drazisil-codecov

The way y'all have responded to my filed issues is very gratifying and makes reporting them worthwhile. Keep up the great work!

dabrahams avatar May 20 '24 17:05 dabrahams