-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
sql: update upgrade unit tests to bootstrap from 23.1 (or 22.2) #103956
Comments
cc @postamar could you leave some instructions here with what we need to modify in the |
Ideally this should be TDD so that someone who isn't myself can update this straightforwardly: update all the config definitions for mixed-version tests and see what breaks and fix it. In practice, some things are missing in the |
This commit adds a test in the bootstrap package which checks that initial values can be generated for each and every release which is supported by the current version. We expect this test, TestSupportedReleases, to fail loudly the next time a release engineer bumps the major or minor version counter. While getting the test to pass does increase the burden of the release engineer, doing so should be a very mechanical process. It involves copy-pasting the contents of the test data file for the data-driven TestInitialValuesToString test in the new release branch. This commit therefore also adds the hard-coded values for the 23.1 release which was until now not supported by the bootstrap package. Informs cockroachdb#103956. Release note: None.
104336: boostrap: improve testing and support v23.1 r=postamar a=postamar This commit adds a test in the bootstrap package which checks that initial values can be generated for each and every release which is supported by the current version. We expect this test, TestSupportedReleases, to fail loudly the next time a release engineer bumps the major or minor version counter. While getting the test to pass does increase the burden of the release engineer, doing so should be a very mechanical process. It involves copy-pasting the contents of the test data file for the data-driven TestInitialValuesToString test in the new release branch. This commit therefore also adds the hard-coded values for the 23.1 release which was until now not supported by the bootstrap package. Informs #103956. Release note: None. Co-authored-by: Marius Posta <[email protected]>
I'll unassign myself at this point, now that the initial values for 23.1 have been added. The remaining work in the scope of this issue and this team is adding and/or updating the following to involve the 23.1 release somehow:
Feel free to edit this list accordingly |
@fqazi can you work on the corpus tests and mixed version schema change test? i will work on the mixed version logic tests. |
@postamar I still find myself a little bit lost. Do you know what it would take to unskip the When I try, it fails on this query due to getting the wrong results.
Do the expected results just need to be rewritten? (Aside: that test probably should be in a different file, since it's testing something much lower level than being able to login.) |
Yes indeed a rewrite is all it takes, and you're right this doesn't really belong here. I squished it in there originally because I was being a bit lazy. I can't remember why, in any case I'm sorry about that. |
112149: logictest: unskip some mixed version tests r=rafiss a=rafiss This also removes old tests that are only relevant for testing clusters that bootstrap on 22.2. informs #103956 - will be resolved by backport Release note: None Co-authored-by: Rafi Shamim <[email protected]>
Currently, all of our upgrade unit tests (mostly logic tests outside of the
cockroach-go
config) bootstrap the cluster atV22_2
. Since therelease-23.1
branch has been cut, master should now be considered 23.2 work (#103551). As such, we should be writing our upgrade tests to bootstrap the cluster fromV23_1
.This is made more complex in this release, as we intend to keep
BinaryMinSupportedVersionKey
atV22_2
inrelease-23.2
[1]. This means that, ideally, we should start testing our upgrades both fromV22_2
and fromV23_1
.This work will involve creating initial_values for the 23.1 release: see [2].
Assigning @cockroachdb/sql-foundations, as a lot of our upgrade tests are logic tests. Migration and tenant upgrade tests are also among tests that should be updated. Corrresponding teams are free to create separate issues to handle those changes.
[1] https://cockroachlabs.atlassian.net/wiki/spaces/RE/pages/2762309867/Version+Skipping+to+Enable+Long-Term+Support+LTS
[2]
cockroach/pkg/sql/catalog/bootstrap/initial_values.go
Lines 76 to 83 in bc6b056
Jira issue: CRDB-28269
The text was updated successfully, but these errors were encountered: