Skip to content

schema: update for new test pipeline configuration #875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions pkg/config/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@
},
"type": "object",
"description": "Optional: Deviations to the build"
},
"test": {
"$ref": "#/$defs/Test",
"description": "Test section for the main package."
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -526,6 +530,14 @@
"checks": {
"$ref": "#/$defs/Checks",
"description": "Optional: enabling, disabling, and configuration of build checks"
},
"timeout": {
"type": "integer",
"description": "Optional: The amount of time to allow this build to take before timing out."
},
"resources": {
"$ref": "#/$defs/Resources",
"description": "Optional: Resources to allocate to the build."
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -700,6 +712,18 @@
],
"description": "ReleaseMonitor indicates using the API for https://release-monitoring.org/"
},
"Resources": {
"properties": {
"cpu": {
"type": "string"
},
"memory": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"Scriptlets": {
"properties": {
"trigger": {
Expand Down Expand Up @@ -793,6 +817,10 @@
"checks": {
"$ref": "#/$defs/Checks",
"description": "Optional: enabling, disabling, and configuration of build checks"
},
"test": {
"$ref": "#/$defs/Test",
"description": "Test section for the subpackage."
}
},
"additionalProperties": false,
Expand All @@ -801,6 +829,27 @@
"name"
]
},
"Test": {
"properties": {
"Environment": {
"$ref": "#/$defs/ImageConfiguration",
"description": "Additional Environment necessary for test.\nEnvironment.Contents.Packages automatically get\npackage.dependencies.runtime added to it. So, if your test needs\nno additional packages, you can leave it blank."
},
"pipeline": {
"items": {
"$ref": "#/$defs/Pipeline"
},
"type": "array",
"description": "Required: The list of pipelines that test the produced package."
}
},
"additionalProperties": false,
"type": "object",
"required": [
"Environment",
"pipeline"
]
},
"Update": {
"properties": {
"enabled": {
Expand Down