Closed Bug 917576 Opened 11 years ago Closed 11 years ago

Regression: Ru tests not in fact running un-accelerated

Categories

(Testing :: Reftest, defect)

defect
Not set
normal

Tracking

(firefox25 unaffected, firefox26+ fixed, firefox27+ fixed)

RESOLVED FIXED
mozilla27
Tracking Status
firefox25 --- unaffected
firefox26 + fixed
firefox27 + fixed

People

(Reporter: nrc, Assigned: nrc)

References

Details

Attachments

(2 files, 2 obsolete files)

Because reftest is not parsing non-string prefs.
Attached patch parse non-string pref values (obsolete) — Splinter Review
Attachment #806302 - Flags: review?(ahalberstadt)
We need to check this kind of thing in the automation too, so we notice these bugs in future. I think it took four weeks for anyone to notice this.
I bet we have not been running multi-process tests as multi-process either, for the same reason.
Try push: https://tbpl.mozilla.org/?tree=Try&rev=7e1feb223053

Could be interesting...
Summary: Ru tests not in fact running un-accelerated → Regression: Ru tests not in fact running un-accelerated
I think bug 899171 regressed this, but I have not confirmed.
Blocks: 899171
Bug 914521 causes bustage on Cipc.
Attachment #806393 - Flags: review?(bobbyholley+bmo)
Comment on attachment 806302 [details] [diff] [review]
parse non-string pref values

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

Sorry about the regression, and thanks for catching this! There's a method in mozprofile that already has this logic though.

::: layout/tools/reftest/runreftest.py
@@ +85,5 @@
> +      else:
> +        try:
> +          prefs[thispref[0]] = int(prefValue)
> +        except ValueError:
> +          prefs[thispref[0]] = prefValue

This whole chunk can just be:
prefValue = mozprofile.Preferences.cast(thispref[1].strip())

http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/mozprofile/mozprofile/prefs.py#57
Attachment #806302 - Flags: review?(ahalberstadt) → review-
Er, I meant 'prefs[thispref[0]] = ...'
Attachment #806393 - Flags: review?(bobbyholley+bmo) → review+
This was regressed by bug 899171 which is in mozilla26.
much easier :-)
Attachment #806302 - Attachment is obsolete: true
Attachment #806822 - Flags: review?(ahalberstadt)
Comment on attachment 806822 [details] [diff] [review]
parse non-string pref values using cast

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

You forgot to do 'prefs[thispref[0]]' but consider this an r+ with that fixed :)

::: layout/tools/reftest/runreftest.py
@@ +78,5 @@
>        thispref = v.split('=')
>        if len(thispref) < 2:
>          print "Error: syntax error in --setpref=" + v
>          sys.exit(1)
> +      thispref[0] = mozprofile.Preferences.cast(thispref[1].strip())

This needs to be 'prefs[thispref[0]]'
Attachment #806822 - Flags: review?(ahalberstadt) → review-
whoops, that what I get for writing patches before my morning coffee
Attachment #806822 - Attachment is obsolete: true
Attachment #806825 - Flags: review?(ahalberstadt)
Comment on attachment 806825 [details] [diff] [review]
parse non-string pref values using cast

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

Thanks!
Attachment #806825 - Flags: review?(ahalberstadt) → review+
Comment on attachment 806825 [details] [diff] [review]
parse non-string pref values using cast

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 899171
User impact if declined: No functioning Ru/Cipc/Ripc tests
Testing completed (on m-c, etc.): Try (only affects tests)
Risk to taking this patch (and alternatives if risky): Low (no alternatives)
String or IDL/UUID changes made by this patch: none
Attachment #806825 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/5f8518a7584d
https://hg.mozilla.org/mozilla-central/rev/4a5e5dfa5e2f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Comment on attachment 806825 [details] [diff] [review]
parse non-string pref values using cast

This is NPOTB. I can land without approval. I will get it in my next round of uplifts to Aurora.
Attachment #806825 - Flags: approval-mozilla-aurora?
(In reply to Nick Cameron [:nrc] from comment #2)
> We need to check this kind of thing in the automation too, so we notice
> these bugs in future. I think it took four weeks for anyone to notice this.

Agreed! But I don't see that this ever happened?

https://hg.mozilla.org/releases/mozilla-aurora/rev/ded6ef58e8a3
https://hg.mozilla.org/releases/mozilla-aurora/rev/c3cd681e553d
Flags: in-testsuite?
Blocks: 914521
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: