Closed Bug 1842647 Opened 3 years ago Closed 3 years ago

./mach vendor failing to honor an `exclude` entry

Categories

(Developer Infrastructure :: Mach Vendor & Updatebot, defect)

defect

Tracking

(firefox117 fixed)

RESOLVED FIXED
Tracking Status
firefox117 --- fixed

People

(Reporter: jfkthame, Assigned: tjr)

References

Details

Attachments

(1 file)

In gfx/harfbuzz/moz.yaml, we have an entry under exclude:

    - "src/test*"

which is intended to cause various test files present in the upstream src/ directory to be omitted when vendoring into Gecko.

However, this doesn't appear to work; running ./mach vendor gfx/harfbuzz/moz.yaml, the test files (test.cc, and a bunch of individual test-*.cc files) get included in the tree, and added to the moz.build file (which then results in a build failure).

Is this exclude pattern not valid (i.e. this is simply user error), in which case what would be the proper form? Or is ./mach vendor misbehaving?

See Also: → 1842425
See Also: → 1842991

The problem comes from this line

The problem is basically precedence. If src is in include and src/test* is in exclude, then logically you want the src/test* files excluded. But if ** is in exclude and src is in include, logically you want the src directory included. But these are the same scenario.

The severity field is not set for this bug.
:tjr, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(tom)
Severity: -- → S3
Flags: needinfo?(tom)
Pushed by tritter@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/26c26e73c08c More intelligently handle a file that matches both patterns. r=jewilde
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: