Skip to content

Commit

Permalink
feat(release): Proposing release index shema (#211)
Browse files Browse the repository at this point in the history
* proposing release index shema

* updating with feat build options

* updating index to a different model
  • Loading branch information
NikolaMilosa authored Feb 27, 2024
1 parent 799e840 commit 31e9076
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# macOS
.DS_Store

.vscode
.vscode_copy

# Logs
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"yaml.schemas": {
"release-index-shema.json": "release-index.yaml"
}
}
137 changes: 137 additions & 0 deletions release-index-shema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/Welcome3",
"definitions": {
"Welcome3": {
"type": "object",
"additionalProperties": false,
"properties": {
"rollout": {
"$ref": "#/definitions/Rollout"
},
"features": {
"type": "array",
"items": {
"$ref": "#/definitions/Feature"
}
},
"releases": {
"type": "array",
"items": {
"$ref": "#/definitions/Release"
}
}
},
"required": [
"features",
"releases",
"rollout"
],
"title": "Welcome3"
},
"Feature": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"subnets": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"subnets"
],
"title": "Feature"
},
"Release": {
"type": "object",
"additionalProperties": false,
"properties": {
"rc_name": {
"type": "string"
},
"version": {
"type": "string"
},
"publish": {
"type": "string",
"format": "date-time"
},
"features": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"features",
"publish",
"rc_name",
"version"
],
"title": "Release"
},
"Rollout": {
"type": "object",
"additionalProperties": false,
"properties": {
"rc_name": {
"type": "string"
},
"pause": {
"type": "boolean"
},
"skip_days": {
"type": "array",
"items": {
"type": "string",
"format": "date"
}
},
"stages": {
"type": "array",
"items": {
"$ref": "#/definitions/Stage"
}
}
},
"required": [
"pause",
"rc_name",
"skip_days",
"stages"
],
"title": "Rollout"
},
"Stage": {
"type": "object",
"additionalProperties": false,
"properties": {
"subnets": {
"type": "array",
"items": {
"type": "string"
}
},
"bake_time": {
"type": "string"
},
"wait_for_next_week": {
"type": "boolean"
}
},
"required": [
"bake_time",
"subnets"
],
"title": "Stage"
}
}
}
79 changes: 79 additions & 0 deletions release-index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
rollout:
rc_name: rc--2024-02-21_23-01 # changed in step 4 & 5
pause: true
skip_days:
- 2024-02-26
stages:
- subnets: [io67a]
bake_time: 8h
- subnets: [shefu, uzr34]
bake_time: 4h
- subnets: [pjljw, qdvhd, bkfrj]
bake_time: 4h
- subnets: [snjp4, w4asl, qxesv]
bake_time: 2h
- subnets: [4zbus, ejbmu, 2fq7c]
bake_time: 2h
- subnets: [pae4o, 5kdm2, csyj4]
bake_time: 2h
- subnets: [eq6en, lhg73, brlsh]
bake_time: 2h
- subnets: [k44fs, cv73p, 4ecnw]
bake_time: 1h
- subnets: [opn46, lspz2, o3ow2]
bake_time: 1h
- subnets: [w4rem, 6pbhf, e66qm]
bake_time: 1h
- subnets: [yinp6, fuqsr, jtdsg]
bake_time: 30m
- subnets: [mpubz, x33ed, pzp6e]
bake_time: 30m
- subnets: [3hhby, nl6hn, gmq5v]
bake_time: 30m
- subnets: [tdb26]
bake_time: 2h
wait_for_next_week: true

features: # can be changed in step 4 $ 5
- name: p2p
subnets:
- shefu
- qdvhd
- bkfrj
- snjp4
- qxesv
- w4asl
- 4zbus
- ejbmu
- 2fq7c
- pae4o
- csyj4
- 5kdm2
- eq6en
- brlsh
- k44fs
- cv73p
- 4ecnw
- opn46
- lspz2
- o3ow2
- w4rem
- 6pbhf
- e66qm
- jtdsg
- fuqsr
- mpubz
- x33ed
- 3hhby
- nl6hn

releases: # add new release in step 2
- rc_name: rc--2024-02-21_23-01
version: 85bd56a70e55b2cea75cae6405ae11243e5fdad8
publish: 2024-02-26T14:20:00+00:00 # changed in step 3
features:
- p2p
- rc_name: rc--2024-02-21_23-01
version: 2e921c9adfc71f3edc96a9eb5d85fc742e7d8a9f
publish: 2024-02-26T14:20:00+00:00 # changed in step 3
features: []

0 comments on commit 31e9076

Please sign in to comment.