Closed Bug 719617 Opened 12 years ago Closed 12 years ago

SDK 1.4 files cause warnings in the validator

Categories

(addons.mozilla.org Graveyard :: Add-on Validation, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: canuckistani, Assigned: basta)

References

Details

Attachments

(1 file)

If I validate an addon created with SDK 1.4, validation produces a number of warnings from code found in the SDK's own code. The validator data is slightly out of date, it does not include SDK version 1.4.

Note: SDK tag 1.4rc4 should be identical to SDK tag 1.4, however I do not think the current jetpack_data.txt file includes the 1.4 tag. If the validator code depends on the tag name in some way, this could cause problems.
https://raw.github.com/mozilla/amo-validator/master/validator/testcases/jetpack_data.txt includes 1.4 hashes committed on the 10th (and live in prod) so I'm not sure why the warnings are shown.
Assignee: nobody → mattbasta
Target Milestone: --- → 6.3.9
(In reply to Wil Clouser [:clouserw] from comment #1)
> https://raw.github.com/mozilla/amo-validator/master/validator/testcases/
> jetpack_data.txt includes 1.4 hashes committed on the 10th (and live in
> prod) so I'm not sure why the warnings are shown.

Right, the 1.4 tag is in jetpack_data.txt. Matt: when you get a sec can you triy validating the supplied xpi to see what the issue might be?
Target Milestone: 6.3.9 → ---
Jeff: Does the SDK modify the SDK library files in any way now? I.e.: does it change whitespace, inject IDs, or do anything else that would cause the hashes of the contents contents of those JS files not to match the hashes in the repo?
Target Milestone: --- → 6.3.9
Blocks: 713127
On closer inspection, the format of harness-options.json was greatly changed in 1.4. I'll need some time to make the changes to the validator in order to remain backward compatible with the SDK 1.3 and below, particularly since there's no real documentation to harness-options.json.
Done:

https://github.com/mozilla/amo-validator/pull/113

In the future, it would be extremely helpful if changes to harness-options.json were properly documented or there was a descriptive change log (I was unable to find one).
Matt, thank you for the fix!
Merged:

https://github.com/mozilla/amo-validator/commit/d968deabbd7c0b05754c74d2a174691b6f53b33c
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
(In reply to Matt Basta from comment #4)
> On closer inspection, the format of harness-options.json was greatly changed
> in 1.4. I'll need some time to make the changes to the validator in order to
> remain backward compatible with the SDK 1.3 and below, particularly since
> there's no real documentation to harness-options.json.

Matt: that's an excellent point - I am sure that we did not realize we had this dependency. In the future we need to add testing with the validator to the testing regime as this would have revealed this issue to us prior to release!
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: