-
Notifications
You must be signed in to change notification settings - Fork 42
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
dev: Make db-run check CockroachDB version #427
Conversation
This should help catch when developers forget to upgrade their version to match the one in use by the repo. Example failure: $ cargo run --bin omicron-dev db-run Compiling omicron-test-utils v0.1.0 Finished dev [unoptimized + debuginfo] target(s) in 5.94s Running `target/debug/omicron-dev db-run` omicron-dev: using temporary directory for database store (cleaned up on clean exit) omicron-dev: will run this to start CockroachDB: cockroach start-single-node --insecure --http-addr=:0 [...] omicron-dev: temporary directory: /tmp/.tmpWJTKQn omicron-dev: wrong version of CockroachDB installed. expected 'v21.1.11', found: 'Ok("v21.1.10")
@@ -14,7 +14,7 @@ SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | |||
ARG0="$(basename ${BASH_SOURCE[0]})" | |||
|
|||
# If you change this, you must also update the md5sums below | |||
CIDL_VERSION="v21.1.10" | |||
CIDL_VERSION="$(cat "$SOURCE_DIR/cockroachdb_version")" |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
It did :) I think I raced catching that and uploading the file with you seeing the patch
Looks like this is failing in docker builds (on the include_str invocation). I'll try to sort out what's up there |
Oh, okay, that was from the first commit. |
I hate those run failure emails 😁 |
This reverts commit 9a830b4. The commit broke running under Helios
This should help catch when developers forget to upgrade their version
to match the one in use by the repo.
Example failure:
$ cargo run --bin omicron-dev db-run
Compiling omicron-test-utils v0.1.0
Finished dev [unoptimized + debuginfo] target(s) in 5.94s
Running
target/debug/omicron-dev db-run
omicron-dev: using temporary directory for database store (cleaned up on clean exit)
omicron-dev: will run this to start CockroachDB:
cockroach start-single-node --insecure --http-addr=:0 [...]
omicron-dev: temporary directory: /tmp/.tmpWJTKQn
omicron-dev: wrong version of CockroachDB installed. expected 'v21.1.11', found: 'Ok("v21.1.10")