Open Bug 1438843 Opened 6 years ago Updated 5 months ago

Add a linting rule to inform developers that they should not push changes in servo / nss or nspr from m-c

Categories

(Developer Infrastructure :: Lint and Formatting, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: Sylvestre, Unassigned)

References

(Blocks 1 open bug)

Details

In review phase, we should at least show a warning when someone is trying to touch servo, nspr or nss in m-c.

This happened here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1234008#c33
This is a good idea! Two thoughts:

1) We could only run this linter when using --outgoing/--workdir, which mozlint doesn't support. I think the best approach here would be for the linter to live in the reviewbot github repo and we add it to the 'lint' path before running.

2) For the local case, it might be better to use a commit hook that gets set up via |mach bootstrap|. Of course we can't force people to use the commit hook, but if they opt not to use it, then they'll at least hit the server side hook. This commit hook could also use the proposed THIRD_PARTY_PATHS moz.build variables.

If we implement 2) it may not be worth doing 1), though might still be worth it. In either case we'll need a way to allow updating third party modules. I think servo uses a token in the commit message, maybe this approach could be generalized.
Product: Testing → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.