Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be306f4a04 |
@@ -1364,107 +1364,6 @@
|
|||||||
"description": "the kept predefined list",
|
"description": "the kept predefined list",
|
||||||
"history": 5
|
"history": 5
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "config-candidates",
|
|
||||||
"template": "state",
|
|
||||||
"key-forms": [
|
|
||||||
{
|
|
||||||
"key": "<pull>",
|
|
||||||
"value": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"v": {
|
|
||||||
"type": "integer",
|
|
||||||
"description": "the layout version"
|
|
||||||
},
|
|
||||||
"pull": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"head": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"declares": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"kind": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"default": {
|
|
||||||
"description": "the default"
|
|
||||||
},
|
|
||||||
"why": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"description": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"enum": {
|
|
||||||
"description": "the allowed values"
|
|
||||||
},
|
|
||||||
"minimum": {
|
|
||||||
"type": [
|
|
||||||
"number",
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"description": "a declared bound; 0 is a bound, absent is none"
|
|
||||||
},
|
|
||||||
"maximum": {
|
|
||||||
"type": [
|
|
||||||
"number",
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"description": "a declared bound; 0 is a bound, absent is none"
|
|
||||||
},
|
|
||||||
"pattern": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"trusted": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"predefined": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"required": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"runtime": {
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"kind",
|
|
||||||
"default",
|
|
||||||
"why"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"description": "module to key to declaration"
|
|
||||||
},
|
|
||||||
"at": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "when (RFC 3339 time)",
|
|
||||||
"format": "date-time"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"pull",
|
|
||||||
"head",
|
|
||||||
"declares"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"description": "the configuration a pull request declares"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "the configuration declared by open pull requests",
|
|
||||||
"history": 5
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "packages",
|
"name": "packages",
|
||||||
"template": "state",
|
"template": "state",
|
||||||
@@ -2959,6 +2858,10 @@
|
|||||||
},
|
},
|
||||||
"description": "the merges it holds, oldest first"
|
"description": "the merges it holds, oldest first"
|
||||||
},
|
},
|
||||||
|
"revision": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "the catalog graph revision of the branch the take-in made, which the pipelines of its entries start at (design 47 G section 476, A-448)"
|
||||||
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "the delivery group, for a group being gathered"
|
"description": "the delivery group, for a group being gathered"
|
||||||
|
|||||||
@@ -266,80 +266,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "the value each module on each node takes for each config key, built from the sources alone"
|
"description": "the value each module on each node takes for each config key, built from the sources alone"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "kept",
|
|
||||||
"template": "state",
|
|
||||||
"key-forms": [
|
|
||||||
{
|
|
||||||
"key": "<owner>.<repository>.<number>.<node>.<module>.<key>",
|
|
||||||
"value": {
|
|
||||||
"type": "object",
|
|
||||||
"description": "an approved held value, kept apart from the values mesh-config resolves, laid only over the composition of its own pull request at its head (ADR 0565 clause 5)",
|
|
||||||
"properties": {
|
|
||||||
"pull": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the pull request, owner/repository#number"
|
|
||||||
},
|
|
||||||
"head": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the head the declaration was read at"
|
|
||||||
},
|
|
||||||
"declaration": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the digest of what the declaration holds the value to; the value stays only while it is the same"
|
|
||||||
},
|
|
||||||
"node": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"module": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"key": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the config key"
|
|
||||||
},
|
|
||||||
"value": {
|
|
||||||
"description": "the value held, as the operator approved it"
|
|
||||||
},
|
|
||||||
"by": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"via": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "where the value was proposed from"
|
|
||||||
},
|
|
||||||
"why": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"approved": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "who approved it, as the proposal kept it"
|
|
||||||
},
|
|
||||||
"proposal": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the proposal's id"
|
|
||||||
},
|
|
||||||
"at": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "date-time",
|
|
||||||
"description": "when it was kept"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"pull",
|
|
||||||
"head",
|
|
||||||
"declaration",
|
|
||||||
"node",
|
|
||||||
"module",
|
|
||||||
"key",
|
|
||||||
"value"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"description": "one held value: the pull request (owner, repository and number, none holding a dot), the node, the module and the config key, which may hold dots"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "the approved held values of open pull requests, read by the checker and the assigner's composition check"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1364,107 +1364,6 @@
|
|||||||
"description": "the kept predefined list",
|
"description": "the kept predefined list",
|
||||||
"history": 5
|
"history": 5
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "config-candidates",
|
|
||||||
"template": "state",
|
|
||||||
"key-forms": [
|
|
||||||
{
|
|
||||||
"key": "<pull>",
|
|
||||||
"value": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"v": {
|
|
||||||
"type": "integer",
|
|
||||||
"description": "the layout version"
|
|
||||||
},
|
|
||||||
"pull": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"head": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"declares": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"kind": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"default": {
|
|
||||||
"description": "the default"
|
|
||||||
},
|
|
||||||
"why": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"description": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"enum": {
|
|
||||||
"description": "the allowed values"
|
|
||||||
},
|
|
||||||
"minimum": {
|
|
||||||
"type": [
|
|
||||||
"number",
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"description": "a declared bound; 0 is a bound, absent is none"
|
|
||||||
},
|
|
||||||
"maximum": {
|
|
||||||
"type": [
|
|
||||||
"number",
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"description": "a declared bound; 0 is a bound, absent is none"
|
|
||||||
},
|
|
||||||
"pattern": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"trusted": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"predefined": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"required": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"runtime": {
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"kind",
|
|
||||||
"default",
|
|
||||||
"why"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"description": "module to key to declaration"
|
|
||||||
},
|
|
||||||
"at": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "when (RFC 3339 time)",
|
|
||||||
"format": "date-time"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"pull",
|
|
||||||
"head",
|
|
||||||
"declares"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"description": "the configuration a pull request declares"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "the configuration declared by open pull requests",
|
|
||||||
"history": 5
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "packages",
|
"name": "packages",
|
||||||
"template": "state",
|
"template": "state",
|
||||||
@@ -2959,6 +2858,10 @@
|
|||||||
},
|
},
|
||||||
"description": "the merges it holds, oldest first"
|
"description": "the merges it holds, oldest first"
|
||||||
},
|
},
|
||||||
|
"revision": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "the catalog graph revision of the branch the take-in made, which the pipelines of its entries start at (design 47 G section 476, A-448)"
|
||||||
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "the delivery group, for a group being gathered"
|
"description": "the delivery group, for a group being gathered"
|
||||||
|
|||||||
@@ -266,80 +266,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "the value each module on each node takes for each config key, built from the sources alone"
|
"description": "the value each module on each node takes for each config key, built from the sources alone"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "kept",
|
|
||||||
"template": "state",
|
|
||||||
"key-forms": [
|
|
||||||
{
|
|
||||||
"key": "<owner>.<repository>.<number>.<node>.<module>.<key>",
|
|
||||||
"value": {
|
|
||||||
"type": "object",
|
|
||||||
"description": "an approved held value, kept apart from the values mesh-config resolves, laid only over the composition of its own pull request at its head (ADR 0565 clause 5)",
|
|
||||||
"properties": {
|
|
||||||
"pull": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the pull request, owner/repository#number"
|
|
||||||
},
|
|
||||||
"head": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the head the declaration was read at"
|
|
||||||
},
|
|
||||||
"declaration": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the digest of what the declaration holds the value to; the value stays only while it is the same"
|
|
||||||
},
|
|
||||||
"node": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"module": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"key": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the config key"
|
|
||||||
},
|
|
||||||
"value": {
|
|
||||||
"description": "the value held, as the operator approved it"
|
|
||||||
},
|
|
||||||
"by": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"via": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "where the value was proposed from"
|
|
||||||
},
|
|
||||||
"why": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"approved": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "who approved it, as the proposal kept it"
|
|
||||||
},
|
|
||||||
"proposal": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the proposal's id"
|
|
||||||
},
|
|
||||||
"at": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "date-time",
|
|
||||||
"description": "when it was kept"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"pull",
|
|
||||||
"head",
|
|
||||||
"declaration",
|
|
||||||
"node",
|
|
||||||
"module",
|
|
||||||
"key",
|
|
||||||
"value"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"description": "one held value: the pull request (owner, repository and number, none holding a dot), the node, the module and the config key, which may hold dots"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "the approved held values of open pull requests, read by the checker and the assigner's composition check"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -266,80 +266,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "the value each module on each node takes for each config key, built from the sources alone"
|
"description": "the value each module on each node takes for each config key, built from the sources alone"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "kept",
|
|
||||||
"template": "state",
|
|
||||||
"key-forms": [
|
|
||||||
{
|
|
||||||
"key": "<owner>.<repository>.<number>.<node>.<module>.<key>",
|
|
||||||
"value": {
|
|
||||||
"type": "object",
|
|
||||||
"description": "an approved held value, kept apart from the values mesh-config resolves, laid only over the composition of its own pull request at its head (ADR 0565 clause 5)",
|
|
||||||
"properties": {
|
|
||||||
"pull": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the pull request, owner/repository#number"
|
|
||||||
},
|
|
||||||
"head": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the head the declaration was read at"
|
|
||||||
},
|
|
||||||
"declaration": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the digest of what the declaration holds the value to; the value stays only while it is the same"
|
|
||||||
},
|
|
||||||
"node": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"module": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"key": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the config key"
|
|
||||||
},
|
|
||||||
"value": {
|
|
||||||
"description": "the value held, as the operator approved it"
|
|
||||||
},
|
|
||||||
"by": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"via": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "where the value was proposed from"
|
|
||||||
},
|
|
||||||
"why": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"approved": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "who approved it, as the proposal kept it"
|
|
||||||
},
|
|
||||||
"proposal": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "the proposal's id"
|
|
||||||
},
|
|
||||||
"at": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "date-time",
|
|
||||||
"description": "when it was kept"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"pull",
|
|
||||||
"head",
|
|
||||||
"declaration",
|
|
||||||
"node",
|
|
||||||
"module",
|
|
||||||
"key",
|
|
||||||
"value"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"description": "one held value: the pull request (owner, repository and number, none holding a dot), the node, the module and the config key, which may hold dots"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "the approved held values of open pull requests, read by the checker and the assigner's composition check"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-101
@@ -1364,107 +1364,6 @@
|
|||||||
"description": "the kept predefined list",
|
"description": "the kept predefined list",
|
||||||
"history": 5
|
"history": 5
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "config-candidates",
|
|
||||||
"template": "state",
|
|
||||||
"key-forms": [
|
|
||||||
{
|
|
||||||
"key": "<pull>",
|
|
||||||
"value": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"v": {
|
|
||||||
"type": "integer",
|
|
||||||
"description": "the layout version"
|
|
||||||
},
|
|
||||||
"pull": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"head": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"declares": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"kind": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"default": {
|
|
||||||
"description": "the default"
|
|
||||||
},
|
|
||||||
"why": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"description": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"enum": {
|
|
||||||
"description": "the allowed values"
|
|
||||||
},
|
|
||||||
"minimum": {
|
|
||||||
"type": [
|
|
||||||
"number",
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"description": "a declared bound; 0 is a bound, absent is none"
|
|
||||||
},
|
|
||||||
"maximum": {
|
|
||||||
"type": [
|
|
||||||
"number",
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"description": "a declared bound; 0 is a bound, absent is none"
|
|
||||||
},
|
|
||||||
"pattern": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"trusted": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"predefined": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"required": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"runtime": {
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"kind",
|
|
||||||
"default",
|
|
||||||
"why"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"description": "module to key to declaration"
|
|
||||||
},
|
|
||||||
"at": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "when (RFC 3339 time)",
|
|
||||||
"format": "date-time"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"pull",
|
|
||||||
"head",
|
|
||||||
"declares"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"description": "the configuration a pull request declares"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "the configuration declared by open pull requests",
|
|
||||||
"history": 5
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "packages",
|
"name": "packages",
|
||||||
"template": "state",
|
"template": "state",
|
||||||
@@ -2959,6 +2858,10 @@
|
|||||||
},
|
},
|
||||||
"description": "the merges it holds, oldest first"
|
"description": "the merges it holds, oldest first"
|
||||||
},
|
},
|
||||||
|
"revision": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "the catalog graph revision of the branch the take-in made, which the pipelines of its entries start at (design 47 G section 476, A-448)"
|
||||||
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "the delivery group, for a group being gathered"
|
"description": "the delivery group, for a group being gathered"
|
||||||
|
|||||||
@@ -1247,7 +1247,7 @@ func subViews(t *testing.T) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
t.Run("an event names its state on its subject, and decodes as it was encoded", func(t *testing.T) {
|
t.Run("an event names its state on its subject, and decodes as it was encoded", func(t *testing.T) {
|
||||||
if s := StateOfEvent("mesh.stream.mesh-delivery-indexer.event.views.config-candidates"); s != "config-candidates" {
|
if s := StateOfEvent("mesh.stream.mesh-delivery-indexer.event.views.predefined"); s != "predefined" {
|
||||||
t.Errorf("state of subject = %q", s)
|
t.Errorf("state of subject = %q", s)
|
||||||
}
|
}
|
||||||
for subject, want := range map[string]string{"mesh.mod.o.event.views.modules": "o", "mesh.mod.o.event.views.a.b": "", "mesh.mod.o.event.other": "",
|
for subject, want := range map[string]string{"mesh.mod.o.event.views.modules": "o", "mesh.mod.o.event.views.a.b": "", "mesh.mod.o.event.other": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user