Closed
Bug 1067453
Opened 11 years ago
Closed 11 years ago
Typo in testRestrictedProfiles.js
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 35
People
(Reporter: jchen, Assigned: jchen)
References
Details
Attachments
(1 file)
|
1.11 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
The class name is missing an 's'; should be "org.mozilla.gecko.RestrictedProfiles"
[1] http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/testRestrictedProfiles.js#41
Comment 2•11 years ago
|
||
Is this sufficient? RestrictedProfiles and getUserRestrictions are not annotated as RobocopTargets. Does WrapElementForJNI imply that these names won't change and are not Proguarded out?
| Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #2)
> Is this sufficient? RestrictedProfiles and getUserRestrictions are not
> annotated as RobocopTargets. Does WrapElementForJNI imply that these names
> won't change and are not Proguarded out?
Yes, I believe RobocopTarget and WrapElementForJNI are treated very similarly in the Proguard config. I was able to run the test locally after the fix.
Comment 4•11 years ago
|
||
(In reply to Jim Chen [:jchen :nchen] from comment #3)
> (In reply to Nick Alexander :nalexander from comment #2)
> > Is this sufficient? RestrictedProfiles and getUserRestrictions are not
> > annotated as RobocopTargets. Does WrapElementForJNI imply that these names
> > won't change and are not Proguarded out?
>
> Yes, I believe RobocopTarget and WrapElementForJNI are treated very
> similarly in the Proguard config. I was able to run the test locally after
> the fix.
I agree with your analysis, but no amount of local verification is sufficient to prove that your annotations are sufficient. Proguard symbol stripping is non-deterministic; running locally says nothing about running on buildbots, and certainly guarantees nothing in the future.
| Assignee | ||
Comment 5•11 years ago
|
||
I agree with Proguard being hard to predict. Running the test locally was just another data point to support the patch's correctness. On the other hand, if our Proguard annotations are behaving wildly differently between buildbot and local builds, we should look into it because that would make development very difficult IMO.
Comment 6•11 years ago
|
||
(In reply to Jim Chen [:jchen :nchen] from comment #5)
> I agree with Proguard being hard to predict. Running the test locally was
> just another data point to support the patch's correctness. On the other
> hand, if our Proguard annotations are behaving wildly differently between
> buildbot and local builds, we should look into it because that would make
> development very difficult IMO.
Known issue, and I intend to do *something* because this will get much worse when we start landing deeper instrumentation tests. But I'm not hearing words that you understand what I'm saying. Proguard is unpredictable. There is no way to make local and buildbot builds *not* behave "wildly differently". Your mental model should be that it is like PGO: there's no expectation that two consecutive runs in exactly the same environment produce the same output.
Comment 7•11 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #6)
> Known issue, and I intend to do *something* because this will get much worse
> when we start landing deeper instrumentation tests. But I'm not hearing
> words that you understand what I'm saying. Proguard is unpredictable.
> There is no way to make local and buildbot builds *not* behave "wildly
> differently". Your mental model should be that it is like PGO: there's no
> expectation that two consecutive runs in exactly the same environment
> produce the same output.
Sounds a bit like quantum mechanics. Let's keep plowing ahead like nothing's wrong until one of us gets stuck in the transporter's pattern buffer.
| Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•