Closed Bug 1573192 Opened 6 years ago Closed 6 years ago

remove the email validation for metadata.owner

Categories

(Taskcluster :: Services, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mtabara, Assigned: mtabara)

Details

Attachments

(1 file)

In https://github.com/mozilla/application-services/ and https://github.com/mozilla-mobile/android-components/ there's various github apps which run (e.g. https://dependabot.com/ or https://github.com/bors-ng/bors-ng).

When taskcluster-github is rendering the .taskcluster.yml, it hits some email validation errors in setting up metadata.owner which normally is set to ${user}@users.noreply.github.com where user = ${event.sender.login}. For primitive github operations, sans bots, this works well while for cron-jobs triggered from hooks, we feed that value to our covenience. However, for bots, we may not always have that flexibility of tweaking the bot input. Moreover, Github itself is adding the [bot] string to that input.

In order to make checks such as this and this more generic (if we end up adding multiple bots for a repo), there might be a couple of solutions at hand.

a) add a string.replace operation in json-e which would ensure the string.replace("[bot]", "") solves regardless of the bot name
b) remove the email validation for metadata.owner

As far as I understood, the latter is something that TC team has been considering in the past.

Thanks for filing a bug. We discussed this in today's team meeting, and from what we know it's fine to just go ahead with (b).

However, it's hard to know how things are used in Taskcluster, and our process for making potentially-breaking changes involves RFCs. These give a chance for lots of people to see and understand the proposed change and chime in if they see an issue that we do not.

So, can you create a TC RFC for this change and shepherd it through the proposal and final-comment phases? The RFC itself doesn't have to be very long -- in fact, you've covered the necessary points in comment 0 so some editing of that into the RFC template would probably do the trick.

Sorry, this slipped my radar somehow before the PTO at the end of August. I'Il take care of this this week or the next.
Creating an TC RFC sounds gopod, thanks for suggesting this :dustin!

I still think this is a good idea, and it should be fairly quick to get agreement on it.

Assignee: nobody → mtabara
Component: General → Services

(In reply to Dustin J. Mitchell [:dustin] (he/him) from comment #3)

I still think this is a good idea, and it should be fairly quick to get agreement on it.

RFC - https://github.com/taskcluster/taskcluster-rfcs/pull/153

Summary: potentially remove the email validation for metadata.owner → remove the email validation for metadata.owner

Mihai, will you be making the patch for this? It should be short and I can do so too if you'd prefer.

(In reply to Dustin J. Mitchell [:dustin] (he/him) from comment #5)

Mihai, will you be making the patch for this? It should be short and I can do so too if you'd prefer.

I'd love to do it as I'd like to dig a bit in the taskcluster codebase. My plate is a bit full before the holidays but I'm planning to get to it either before X-mas or on the 30-31 December which should be perfect quiet working days for hacking on such things.

Should there is an urgency on implementing this, I'm happy to defer.

Merged! This will be in v27.

(In reply to Dustin J. Mitchell [:dustin] (he/him) from comment #9)

Merged! This will be in v27.

Thank you, closing this.

Status: NEW → RESOLVED
Closed: 6 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: