Closed Bug 1407009 Opened 9 years ago Closed 9 years ago

OpenCloudConfig: gecko-t-win10-64-hw.json and gecko-t-win7-32-hw.json have invalid "Arguments" (string not array)

Categories

(Infrastructure & Operations :: RelOps: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pmoore, Unassigned)

Details

The easiest way to explain this is with the command output: pmoore@Petes-iMac:~/git/OpenCloudConfig/userdata/Manifest master $ cat gecko-t-win10-64.json | grep Arguments "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ pmoore@Petes-iMac:~/git/OpenCloudConfig/userdata/Manifest master $ cat gecko-t-win10-64-hw.json | grep Arguments "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": "/FakeFlag", "Arguments": [ "Arguments": "-addstore Root C:\\DSC\\MozillaMaintenance\\MozFakeCA.cer" "Arguments": "-addstore Root C:\\DSC\\MozillaMaintenance\\MozRoot.cer" "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ "Arguments": [ As you see, the first `cat` shows that all occurrences of "Arguments" are arrays, whereas some strings rather than string arrays have slipped into both gecko-t-win10-64-hw.json and gecko-t-win7-32-hw.json.
We should probably add some schema validation to those manifests, so they can be validated before being processed... (e.g. json schema validation) ... but that is probably something for a different bug. It would prevent things like this slipping in without us noticing.
agree! there is a jsonlint validation task here: https://github.com/mozilla-releng/OpenCloudConfig/blob/master/ci/validate.sh it's triggered here: https://github.com/mozilla-releng/OpenCloudConfig/blob/21bb41735dfd1308ca805b15cc43e12f3b48ff29/.taskcluster.yml#L34 at the moment, we're only looking for valid json, not a valid schema, so no error is thrown in the validation task. i once started on a schema which is incomplete and likely bitrotten now but it's skeleton is here: https://github.com/mozilla-releng/OpenCloudConfig/blob/master/userdata/Manifest/schema.json
Mark, Are you happy to fix the busted schemas for now, before we implement json schema validation? Pete
Flags: needinfo?(mcornmesser)
(In reply to Pete Moore [:pmoore][:pete] from comment #3) > Mark, > > Are you happy to fix the busted schemas for now, before we implement json > schema validation? > > Pete That will be addressed by https://github.com/mozilla-releng/OpenCloudConfig/pull/95. Which has been submitted for review in Bug 1358561.
Flags: needinfo?(mcornmesser)
(In reply to Mark Cornmesser [:markco] from comment #4) > (In reply to Pete Moore [:pmoore][:pete] from comment #3) > > Mark, > > > > Are you happy to fix the busted schemas for now, before we implement json > > schema validation? > > > > Pete > > That will be addressed by > https://github.com/mozilla-releng/OpenCloudConfig/pull/95. Which has been > submitted for review in Bug 1358561. I'm afraid there are still a couple missing: https://github.com/mozilla-releng/OpenCloudConfig/blob/8df1f2a6d741162cb800c0b934905865b85ede95/userdata/Manifest/gecko-t-win7-32-hw.json#L252 https://github.com/mozilla-releng/OpenCloudConfig/blob/8df1f2a6d741162cb800c0b934905865b85ede95/userdata/Manifest/gecko-t-win7-32-hw.json#L259
Flags: needinfo?(mcornmesser)
(In reply to Pete Moore [:pmoore][:pete] from comment #5) > I'm afraid there are still a couple missing: > > https://github.com/mozilla-releng/OpenCloudConfig/blob/ > 8df1f2a6d741162cb800c0b934905865b85ede95/userdata/Manifest/gecko-t-win7-32- > hw.json#L252 > https://github.com/mozilla-releng/OpenCloudConfig/blob/ > 8df1f2a6d741162cb800c0b934905865b85ede95/userdata/Manifest/gecko-t-win7-32- > hw.json#L259 I've fixed this, some additional component dependency errors, and fixed the formatting in: * https://github.com/mozilla-releng/OpenCloudConfig/compare/33418a90f5dbf9f61b360b9e6e670f1bc38f1288...1a92450534d162339d27b5c55e7e0fb3137c6810
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Is there a way to check schema prior to commit or submitting a PR?
Flags: needinfo?(mcornmesser)
(In reply to Mark Cornmesser [:markco] from comment #7) > Is there a way to check schema prior to commit or submitting a PR? To be implemented in bug 1409473.
You need to log in before you can comment on or make changes to this bug.