-
Notifications
You must be signed in to change notification settings - Fork 46
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
Move update-tester tests to markdown files #522
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't read the Rust yet.
ac08234
to
3880272
Compare
02a2013
to
87c240d
Compare
87c240d
to
36cdd36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of these (as discussed) are notes for the future. I think this is basically ready to go.
Thanks!
) -> Vec<(Test, Result<(), TestError>)> { | ||
let all_tests = parser::extract_tests("sql"); | ||
// Hack to match previous versions of toolkit that don't conform to Semver. | ||
let current_toolkit_semver = match current_toolkit_version.as_str() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[After live discussion, we think I was confused when I wrote this, because actually we want the tests even for old versions to come FROM THE NEW CODE. Not only would running old create-test-objects
be pointless, but running new create-test-objects
lets us add new tests for old versions.
So ignore what's below for now.
Recording for posterity.]
Is this necessary? Two questions make me think it may not be:
- I want to drop all releases older than 1.9 from
upgradeable_from
for 1.12 and all older than 1.10 for 1.13. - Will we be able to run 1.11's validate-test-objects against 1.10's create-test? If not, s/1.10/1.11/ in Approximate Percentile #1 :)
I don't think I've spoken of my push to drop <1.9 from upgradeable_from so let me get down an early draft here:
We can't create-test-objects
on any release older than 1.10, which means our current test automation plan won't support testing upgrading from any release older than that without having two automation schemes at twice the price (of both build AND maintain!), which means we can't call "release automation" done until we drop the old versions.
d6884f7
to
2df7306
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one last question: is it all rustfmted? :)
It seems to all be rustfmted for me locally |
same! ~/t/timescaledb-toolkit (th/update-tester-test-reformat)> cargo fmt --check
~/t/timescaledb-toolkit (th/update-tester-test-reformat)> |
2df7306
to
ebbb9a3
Compare
bors r+ |
Build succeeded:
|
Changes to the update-tester: