-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-26554][BUILD] Update release-util.sh to avoid GitBox fake 200 headers
#23476
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,9 @@ function fcreate_secure { | |
| } | ||
|
|
||
| function check_for_tag { | ||
| curl -s --head --fail "$ASF_REPO_WEBUI;a=commit;h=$1" >/dev/null | ||
| # Check HTML body messages instead of header status codes. Apache GitBox returns | ||
| # a header with `200 OK` status code for both existing and non-existing tag URLs | ||
| ! curl -s --fail "$ASF_REPO_WEBUI;a=commit;h=$1" | grep '404 Not Found' > /dev/null | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for review and approval, @srowen . Yes, right.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh right, duh, wasn't thinking it through |
||
| } | ||
|
|
||
| function get_release_info { | ||
|
|
||
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.
as we can push commit to github repo directly, do we still have sync issues between github repo and apache repo?
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.
if we don't, maybe we can use the github repo to do the release?
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.
Right. GitHub repo can be used.
For me, since last bad experience, I'm pushing to only GitBox. So, I'm not sure whether
GitHub to GitBoxsync is safe or not in these days.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.
GitHub to GitBox sync must be safe otherwise we have problems. At least I've updated my local
ASF_REPOto github repo and merge PR to github repo directly.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.
Then, shall I change it back to check header messages against GitHub tag urls? I can do that as a followup PR if you want.
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.
Before proceeding that, let me search some from Apache websites.
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.
Good point on the apache policy concerns. For now I think we only need to use github at this particular place, because gitbox has a mistake about the reader status.
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.
Ya. It was just my confusion. My bad. It looks completely okay.
Previously,
githubwas able to be used at read-only pointers likepom.xml'sconnection. After GitBox setup, it's okay for read/write pointers for all GitHub users.For non-GitHub users (maybe BitBucket or GitLab users), we still use the
gitboxURL at write-access-required pointer likepom.xml'sdeveloperConnection.Uh oh!
There was an error while loading. Please reload this page.
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.
Yes. So for a
SPARK-26554follow-up PR, I'll focus only thischeck_for_tagfunction at this time. Thank you for clarification.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.
@cloud-fan . I made a followup PR, #23482.