-
Notifications
You must be signed in to change notification settings - Fork 9
Introduce test_candidate.sh to automate testing release candidate artifacts
#6
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: main
Are you sure you want to change the base?
Conversation
release/test_candidate.sh
Outdated
|
|
||
| echo 'adm = pass' >> rel/couchdb/etc/local.ini | ||
|
|
||
| ./rel/couchdb/bin/couchdb && open http://127.0.0.1:5984/_utils/ |
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.
final bit here could be fetching the lastest git-ish for the release line branch from GitHub and compare it against the one reported on GET /
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'm embarrassed to admit I don't know what you mean my the "git-ish for the release line branch" is. I don't think you mean the git sha of 3.4.x like so:
❯ git checkout origin/3.4.x
HEAD is now at cfc66654f Merge pull request #5308 from apache/nouveau-java-23-3.4.x
which would be cfc66654f, and doesn't seem to match e.g.
❯ curl -u adm:pass $D1 | jq .git_sha
"6e5ad2a5c"
release/test_candidate.sh
Outdated
| python --version | ||
| java -version | ||
|
|
||
| wget --no-parent --no-directories -r $artifact_url |
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.
my version of this also pulls down the hashes and prints them next to the generated ones, so you can spot any difference right away.
Also slight preference to use curl as wget is non-default on BSDs and macOS.
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.
my version of this also pulls down the hashes and prints them next to the generated ones, so you can spot any difference right away.
I'm happy to change it if you can show me an example of how your script does it.
Also, I tried to find a nice way to get curl to download an entire directory, but most things I read said that wget was the better tool for the job. Open to suggestions for the equivalent command though.
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.
For what it is worth, on FreeBSD fetch is the default downloader tool, that is part of the base system. Both curl and wget could be installed as third-party packages, I am not sure if there is a generic preference for one or the other.
|
I am realising the script does way more than what I want from it and in a way different way that I does not meet my goals, I’m not sure if I should further mess with it, or just keep things to myself For example: one very important thing to me is validating checksums, especially the GPG one since that needs manual inspection, but that output is lost in the stdout stream. I also don’t need the whole “do a test build for me” section as I have the macOS binary build scripts for that, but I can see how this can be useful, but also, I don’t feel like writing a cross-platform (unixy at least) build script, or maybe that is exactly what we should be doing, but that’d duplicate a lot of CI work and needs to keep maintained. IF we were to decide to do this, I’d suggest we put that bit into a separate script. All that said, I’m not sure if:
I’m sorry for making a lot of noise about a thing that might in the end not be worth merging after all. wdyt? |
- log background pid to make it easier to kill - wait until server responds to create `_users` db
Since the |
Are you referring to It does begin to seem like the purpose of this script as it currently works diverges from your needs. Could it be as simple as adding a |
Otherwise unable to download artifacts
367e069 to
c88a043
Compare
No description provided.