Closed Bug 1295225 Opened 8 years ago Closed 8 years ago

by-test-platform does not allow regex

Categories

(Firefox Build System :: Task Configuration, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla51

People

(Reporter: gbrown, Assigned: gbrown)

Details

Attachments

(1 file)

As discussed in email a couple of weeks ago ("Different test invocations for different platforms"), I think that allowing a regex in by-test-platform would be very convenient for the upcoming addition of windows and mac test task configurations.
I don't think we are quite ready to use this, but I've updated the desktop tests.yml in preparation.
Attachment #8781217 - Flags: review?(dustin)
Comment on attachment 8781217 [details] [diff] [review]
allow regex in get_keyed_by()

Review of attachment 8781217 [details] [diff] [review]:
-----------------------------------------------------------------

The patch looks fine, and does exactly what it promises..

But I wonder at the wisdom of using regexes - "win.*" looks like "anything beginning with "win." to the untrained eye.  This is going to run up against our habit of naming things randomly, and we're going to have a regex like "(w\d+.*|win.*)" which starts to lose something in the "readability" department.

Still, r+.  If this ends up complicated, we can try something else (I'm thinking a transform with a list of platforms that categorizes them into runtime environments, then using "by-runtime-environment: win: .., macosx: .., linux: ..").
Attachment #8781217 - Flags: review?(dustin) → review+
Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/28b32da382a3
Allow regex in taskcluster by-test-platform; r=dustin
I hear you, and I'm not opposed to a better solution!
https://hg.mozilla.org/mozilla-central/rev/28b32da382a3
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Product: TaskCluster → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: