Open Bug 1395696 Opened 2 years ago Updated Last year

Consider adding a commit hook for tests.yml changes

Categories

(Testing :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: gbrown, Unassigned)

References

(Blocks 1 open bug)

Details

+++ This bug was initially created as a clone of Bug #1394418 +++

We could do something like https://hg.mozilla.org/hgcustom/version-control-tools/file/default/hghooks/mozhghooks/prevent_webidl_changes.py to ensure that new test tasks are not added without review from a member of a certain group of people. Careful reviewers could ensure that the job visibility policy is respected.

There are lots of changes to tests.yml that don't require much attention:
 - tier 3 jobs
 - chunk modifications
 - ...

So is a commit hook reasonable?
I think it's a good idea in principle, but I'd like Greg to weigh in on the relative costs of doing it from a infra standpoint.
Flags: needinfo?(gps)
I don't like commit hooks for things like this because it is hard to maintain and adds overhead to change process.

The proper place to detect this is at review time and via lints to prevent bad behavior. Phabricator supports subscribing to reviews touching certain files. It also supports a "blocking review." You could create a rule that requires a certain group or people approve changes touching certain files.

So I'd hold off on a commit hook and do this in Phabricator.

Until we actually use Phabricator for reviews, you can create a rule at https://phabricator.services.mozilla.com/herald/ to be notified when certain files change. I'm not sure if that will be the final production database of Phabricator or not. Best to use it on an evaluation basis only.
Flags: needinfo?(gps)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.