Closed Bug 1993306 Opened 2 months ago Closed 2 months ago

retrigger-multiple action's schema is broken

Categories

(Firefox Build System :: Task Configuration, defect)

defect

Tracking

(firefox145 fixed)

RESOLVED FIXED
145 Branch
Tracking Status
firefox145 --- fixed

People

(Reporter: jcristau, Assigned: jcristau)

Details

Attachments

(1 file)

The retrigger-multiple schema is making treeherder sad, due to:

> const Ajv = require("ajv")
undefined
> const ajv = new Ajv()
undefined
> const retrigger_schema = {"type": "object", "properties": {"requests": {"type": "array", "items": {"tasks": {"type": "array", "description": "An array of task labels", "items": {"type": "string"}}, "times": {"type": "integer", "minimum": 1, "maximum": 100, "title": "Times", "description": "How many times to run each task."}, "additionalProperties": false}}, "additionalProperties": false}}
{
  type: 'object',
  properties: {
    requests: { type: 'array', items: [Object] },
    additionalProperties: false
  }
}
> ajv.compile(retrigger_schema)
Uncaught Error: strict mode: unknown keyword: "tasks"
    at checkStrictMode (/home/jcristau/src/github.com/mozilla/treeherder/node_modules/ajv/dist/compile/util.js:174:15)
    at checkUnknownRules (/home/jcristau/src/github.com/mozilla/treeherder/node_modules/ajv/dist/compile/util.js:32:13)
    at alwaysValidSchema (/home/jcristau/src/github.com/mozilla/treeherder/node_modules/ajv/dist/compile/util.js:19:5)
    at Object.code (/home/jcristau/src/github.com/mozilla/treeherder/node_modules/ajv/dist/vocabularies/applicator/items.js:17:42)
    at keywordCode (/home/jcristau/src/github.com/mozilla/treeherder/node_modules/ajv/dist/compile/validate/index.js:454:13)
Assignee: nobody → jcristau
Status: NEW → ASSIGNED
Pushed by jcristau@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d3c31b9e7480 https://hg.mozilla.org/integration/autoland/rev/f4ca05c5dfcf fix retrigger-multiple action's json schema. r=taskgraph-reviewers,releng-reviewers,bhearsum
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: