chore(rel): bump minor for stitch graph + add support invalidating migrations repo rule (#62511)

chore(rel): bump minor for stitch graph + add support invalidating migrations repo rule (#62490)

* chore(bzl): allow to invalidate migrations repo rule

* chore(bzl): gen stitch graph for 5.4
This commit is contained in:
Jean-Hadrien Chabran 2024-05-08 00:04:59 +02:00 committed by GitHub
parent 46efc7d1e9
commit d488517383
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 36 additions and 1 deletions

View File

@ -502,6 +502,7 @@ load("//dev:schema_migrations.bzl", "schema_migrations")
schema_migrations(
name = "schemas_migrations",
updated_at = "2024-05-07 14:39",
)
# wolfi images setup ================================

View File

@ -1,3 +1,11 @@
"""
Provide a custom repository_rule to fetch database migrations from previous versions from
a GCS bucket.
The "updated_at" attribute allows to manually invalidate the cache, because the rule itself
cannot know when to do so, as it will simply skip listing the bucket otherwise.
"""
def _schema_migrations(rctx):
"""
This repository is used to download the schema migrations from GCS.
@ -54,4 +62,7 @@ filegroup(
schema_migrations = repository_rule(
implementation = _schema_migrations,
attrs = {
"updated_at": attr.string(mandatory = True),
},
)

View File

@ -10,7 +10,7 @@ import (
// NOTE: This should be kept up-to-date with the upcoming version to be released, and bumped after.
// fallback schemas everything we support migrating to. The release tool automates this upgrade, so don't touch this :)
// This should be the last minor version since patch releases only happen in the release branch.
const maxVersionString = "5.3.0"
const maxVersionString = "5.4.0"
// MaxVersion is the highest known released version at the time the migrator was built.
var MaxVersion = func() oobmigration.Version {

View File

@ -926,6 +926,13 @@
1679051112
],
"PreCreation": false
},
"v5.4.0": {
"RootID": 1000000027,
"LeafIDs": [
1679051112
],
"PreCreation": false
}
}
},
@ -1895,6 +1902,13 @@
1686315964
],
"PreCreation": false
},
"v5.4.0": {
"RootID": 1000000033,
"LeafIDs": [
1686315964
],
"PreCreation": false
}
}
},
@ -11456,6 +11470,15 @@
"PreCreation": false
},
"v5.3.0": {
"RootID": 1648051770,
"LeafIDs": [
1709738515,
1711003437,
1711538234
],
"PreCreation": false
},
"v5.4.0": {
"RootID": 1648051770,
"LeafIDs": [
1713958707