-
Notifications
You must be signed in to change notification settings - Fork 46
Add a script to help verify release checks #32
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
base: trunk
Are you sure you want to change the base?
Add a script to help verify release checks #32
Conversation
7b895cd to
1019ac5
Compare
| ################### | ||
|
|
||
| mkdir -p /tmp/$1 | ||
| cd /tmp/$1 |
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.
An improvement to this script would be to use a docker container instead of the /tmp directory.
0d0d6da to
2615841
Compare
2615841 to
832cb22
Compare
832cb22 to
1d90352
Compare
1d90352 to
4ea68da
Compare
4ea68da to
5e6a4a3
Compare
5e6a4a3 to
fc22ab0
Compare
fc22ab0 to
c316892
Compare
029d0ab to
12e7d81
Compare
88e8e13 to
4b2f607
Compare
4b2f607 to
dbf5d81
Compare
| echo "====== CHECK RESULTS ======" | ||
| echo | ||
|
|
||
| gpg --import KEYS |
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 think it spoils the local gpg agent in case we don't want to import all the keys locally, so it should probably run inside a docker or we can prepare a docker image to do all checks :-)
77e2240 to
3dad685
Compare
| command -v timeout >/dev/null 2>&1 || { echo >&2 "timeout needs to be installed"; exit 1; } | ||
| command -v docker >/dev/null 2>&1 || { echo >&2 "docker needs to be installed"; exit 1; } | ||
| (docker info >/dev/null 2>&1) || { echo >&2 "docker needs to running"; exit 1; } | ||
| (java -version 2>&1 | grep -q "1.8") || { echo >&2 "Java 8 must be used"; exit 1; } |
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 think we can remove this requirement as it will not work for 5.x releases, right? :-)
3dad685 to
bed5d51
Compare
bed5d51 to
0e53ce4
Compare
0e53ce4 to
5996107
Compare
5996107 to
f5a33a8
Compare
b119a93 to
52bc067
Compare
|
Additions added so releases after they have been published can also be checked. |
2fbe264 to
d859b6e
Compare
333a269 to
ab9a662
Compare
|
this PR is a little bit obsolete by now, what I am using for 4.1 / 5.0.5 recently is in https://github.com/apache/cassandra-builds/pull/119/files simple "diff" will show the differences, mostly related to the fact this had to be added to the right places. It seems that by releasing Trixie they moved Buster to plus this does not download Go my patch does. |
|
I would prefer if the author of this PR picked the changes I have mentioned above into this PR so there is one place we improve this at. |
ab9a662 to
fa4b258
Compare
done |
|
|
||
| ################### | ||
|
|
||
| idx=`expr index "$2" -` |
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.
FYI osx has bsd expr which does not support the index command.
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 don't think this is the only problem in the script with it running on osx.
i think solving osx support would be better done by moving more into docker runs, as @Mmuzaf points out here: https://github.com/apache/cassandra-builds/pull/32/files/fa4b258da36445cd9afd92959a2637bac516c2d7#r1272464191
No description provided.