Closed Bug 1067453 Opened 11 years ago Closed 11 years ago

Typo in testRestrictedProfiles.js

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 35

People

(Reporter: jchen, Assigned: jchen)

References

Details

Attachments

(1 file)

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
Blocks: 1058150
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?
(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.
(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.
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.
(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.
(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.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: