Closed Bug 1283282 Opened 8 years ago Closed 8 years ago

Certain combinations of mochitests break Trychooser

Categories

(Infrastructure & Operations Graveyard :: CIDuty, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bytesized, Assigned: MattN)

Details

(Keywords: trychooser)

Attachments

(5 files)

Steps to Reproduce:
 - Point browser to http://trychooser.pub.build.mozilla.org/
 - Build Types => Both
 - Platforms => All
 - Under Unit Test Suites, check "mochitests (all)"
 - Uncheck mochitest-jetpack

Expected Result:
 - Computed Command and Computed Syntax will display a command that will run all mochitests except for jetpack

Actual Result:
 - Computed Command and Computed Syntax display "(NO JOBS CHOSEN)"
Component: Tools → Buildduty
QA Contact: hwine → bugspam.Callek
It seems that the problem is with mochitest-browser-screenshots tests,any combination with these tests will display "(NO JOBS CHOSEN)".
Adding this patch from trychooser.js will solve the problem but this mean that we are not longer need  MOZSCREENSHOTS_SETS to have a value in order to work.
So I need a feedback if is wise to remove this sequence.
Attachment #8767157 - Flags: feedback?(coop)
Comment on attachment 8767157 [details] [diff] [review]
patch_bug1283282_tools.patch

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

I don't know enough about this code. Punting the feedback request to Armen.
Attachment #8767157 - Flags: feedback?(coop) → feedback?(armenzg)
Comment on attachment 8767157 [details] [diff] [review]
patch_bug1283282_tools.patch

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

I only approved that the change was not insane (since I don't know enough JavaScript)
Passing it to the author of the patch.
Attachment #8767157 - Flags: feedback?(armenzg) → feedback?(MattN+bmo)
Comment on attachment 8767157 [details] [diff] [review]
patch_bug1283282_tools.patch

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

(In reply to Kirk Steuber [:bytesized] from comment #0)
> Steps to Reproduce:
>  - Point browser to http://trychooser.pub.build.mozilla.org/
>  - Build Types => Both
>  - Platforms => All
>  - Under Unit Test Suites, check "mochitests (all)"
>  - Uncheck mochitest-jetpack
> 
> Expected Result:
>  - Computed Command and Computed Syntax will display a command that will run
> all mochitests except for jetpack
> 
> Actual Result:
>  - Computed Command and Computed Syntax display "(NO JOBS CHOSEN)"

IMO this is expected if mochitest-browser-screenshots is checked. Simply uncheck mochitest-browser-screenshots to get the result you desire. If you want we could also add the attention class to the mochitest-browser-screenshots label so it's more obvious but I would prefer to leave the validation.
Attachment #8767157 - Flags: feedback?(MattN+bmo) → feedback-
(In reply to Matthew N. [:MattN] (PTO Jun. 29 - Jul. 1) from comment #5)
> IMO this is expected if mochitest-browser-screenshots is checked. Simply
> uncheck mochitest-browser-screenshots to get the result you desire.

I don't know exactly what the mochitest-browser-screenshots test is. However, I was very surprised to see "NO JOBS CHOSEN", when there ARE jobs chosen. If the combination of tests I picked is invalid, perhaps the error message should say that instead.
This patch can also be added so when selecting ALL test suites, mochitest-browser-screenshots will not be selected by default.
Attachment #8768687 - Flags: review?(MattN+bmo)
Comment on attachment 8768687 [details] [diff] [review]
patch_bug1283282_tools_nodefault.patch

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

> This patch can also be added so when selecting ALL test suites, mochitest-browser-screenshots will not be selected by default.

That wouldn't reflect reality though so I don't see why that would be a good idea. I think a better solution is comment 5:
> If you want we could also add the attention class to the mochitest-browser-screenshots label so it's more obvious.
Attachment #8768687 - Flags: review?(MattN+bmo) → review-
This patch puts mochitest-browser-screenshots test into attention class.
Attachment #8770525 - Flags: feedback?(MattN+bmo)
This patch puts the message for test mochitest-browser-screenshots into attension class.
Attachment #8770527 - Flags: feedback?(MattN+bmo)
Matthew please chose which patch should we use.
Flags: needinfo?(MattN+bmo)
Attachment #8770525 - Flags: feedback?(MattN+bmo)
Attachment #8770527 - Flags: feedback?(MattN+bmo)
See my patch for what I had in mind. It only draws attention when necessary.
Assignee: nobody → MattN+bmo
Status: NEW → ASSIGNED
Flags: needinfo?(MattN+bmo)
Comment on attachment 8772610 [details]
Bug 1283282 - Make it more clear that MOZSCREENSHOTS_SETS is required for screenshots.

Looks good to me.
Attachment #8772610 - Flags: review?(aobreja) → review+
https://hg.mozilla.org/build/tools/rev/fb5a8d8f73a0
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: Release Engineering → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: