Repository navigation
Open
Description
For last two days I have folowing error message on TravisCl when used https://github.com/probonopd/uploadtool/raw/master/upload.sh to upload package to GitHub releases.
Cannot figure out the release URL for continuous
I have no clue what could be wrong. Has any of you similar problem or know the solution?
I used it for last year without any issues and I didn't make any changes in configuration of TravisCl or GitHub.
Full log from GitHub is following:
Please consider submitting your AppImage to AppImageHub, the crowd-sourced
central directory of available AppImages, by opening a pull request
at https://github.com/AppImage/appimage.github.io
Desktop file: /home/travis/build/buddhi1980/mandelbulber2/mandelbulber2/build/appdir/mandelbulber2.desktop
/home/travis/build/buddhi1980/mandelbulber2/mandelbulber2/build/appdir should be packaged as Mandelbulber_v2-16cc8ce-x86_64.AppImage
Size of the embedded runtime: 188456 bytes
Guessing update information based on $TRAVIS_TAG= and $TRAVIS_REPO_SLUG=buddhi1980/mandelbulber2
gh-releases-zsync|buddhi1980|mandelbulber2|continuous|Mandelbulber_v2*-x86_64.AppImage.zsync
updateinformation type: gh-releases-zsync
ui_offset: 175784
ui_length: 1024
--2020-09-12 16:34:28-- https://github.com/probonopd/uploadtool/raw/master/upload.sh
Resolving github.com (github.com)... 140.82.112.3
Connecting to github.com (github.com)|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/probonopd/uploadtool/master/upload.sh [following]
--2020-09-12 16:34:28-- https://raw.githubusercontent.com/probonopd/uploadtool/master/upload.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9755 (9.5K) [text/plain]
Saving to: ‘upload.sh’
0K ......... 100% 73.3M=0s
2020-09-12 16:34:28 (73.3 MB/s) - ‘upload.sh’ saved [9755/9755]
Running on Travis CI
TRAVIS_COMMIT: 16cc8ce83751ca8e08ca4a9c1617696fa308ea44
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 135 100 135 0 0 727 0 --:--:-- --:--:-- --:--:-- 729
tag_infos: {
"message": "Not Found",
"documentation_url": "https://docs.github.com/enterprise/2.18/user/rest/reference/git#get-a-reference"
}
tag_sha:
Getting the release ID...
release_url: https://api.github.com/repos/buddhi1980/mandelbulber2/releases/tags/continuous
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 126 100 126 0 0 807 0 --:--:-- --:--:-- --:--:-- 812
release_infos: {
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name"
}
release ID:
upload_url:
release_url:
target_commit_sha:
TRAVIS_COMMIT != target_commit_sha, hence deleting continuous...
Delete the tag...
delete_url: https://api.github.com/repos/buddhi1980/mandelbulber2/git/refs/tags/continuous
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 132 100 132 0 0 811 0 --:--:-- --:--:-- --:--:-- 814
{
"message": "Reference does not exist",
"documentation_url": "https://docs.github.com/rest/reference/git#delete-a-reference"
}
Create release...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 370 100 129 100 241 813 1520 --:--:-- --:--:-- --:--:-- 1525
{
"message": "Problems parsing JSON",
"documentation_url": "https://docs.github.com/rest/reference/repos#create-a-release"
}
upload_url:
release_url:
Cannot figure out the release URL for continuous
Metadata
Metadata
Assignees
Labels
No labels
Activity
trevorsandy commentedon Sep 12, 2020
Commit 0d90bbc broke the script.
Workaround:
Download an earlier revision - for example: 8142d46
Cheers,
buddhi1980 commentedon Sep 13, 2020
Final solution was to add
export UPLOADTOOL_ISPRERELEASE=truein travis.yml
It fixed the problem
trevorsandy commentedon Sep 13, 2020
I don't think you should close this ticket.
Commit 0d90bbc broke the script. If a user does not have UPLOADTOOL_ISPRERELEASE export var declared the script behaviour should handle that, it should not fail.
Cheers,
probonopd commentedon Sep 13, 2020
Thanks for analyzing @trevorsandy. This needs to be fixed indeed!
probonopd commentedon Sep 13, 2020
@DamirPorobic can you please have a look at this? Thank you.
In fact, we are running into this ourselves: https://travis-ci.org/github/probonopd/uploadtool/builds/726059036
Change is_prerelease logic
probonopd commentedon Sep 13, 2020
Please retry. Sorry for the trouble caused.
DamirPorobic commentedon Sep 14, 2020
Strange, didn't fail on my repos but thanks for fixing.
buddhi1980 commentedon Sep 14, 2020
What is funny, that now it doesn't work when
export UPLOADTOOL_ISPRERELEASE=trueis usedShould I remove UPLOADTOOL_ISPRERELEASE?
probonopd commentedon Sep 14, 2020
Yes, at least then it should be working again...
@DamirPorobic can you please have another look at this? If else fails, I will have to revert to 8142d46.
Updated travis.yml
buddhi1980 commentedon Sep 15, 2020
Works almost properly again when deleted
export UPLOADTOOL_ISPRERELEASE=trueBut now it is published as a Release instead of Pre-release. It is not correct.
Originally by default everything was published as a pre-releases (drafts)
probonopd commentedon Sep 15, 2020
Yes, we changed the default intentionally. Because otherwise the GitHub GUI hides the continuous builds away from view.
5 remaining items
buddhi1980 commentedon Sep 17, 2020
@DamirPorobic this script from your repository works perfect. I have just tested it with export UPLOADTOOL_ISPRERELEASE=true and it created pre-release.
Check is UPLOADTOOL_ISPRERELEASE is set to true otherwise set false p…
DamirPorobic commentedon Sep 20, 2020
There is a PR waiting to bring this change into this repo. @probonopd can you have a look?
probonopd commentedon Sep 20, 2020
@buddhi1980 are you saying the latest version from this repository is still not working?
buddhi1980 commentedon Sep 20, 2020
Yes, it doesn't work when I use version from here. When I use version from DamirPorobic, everything works fine.
probonopd commentedon Sep 20, 2020
Also when you do NOT set
UPLOADTOOL_ISPRERELEASEto anything? In this case, it should not be a prerelease. Can you confirm that works, too?buddhi1980 commentedon Sep 20, 2020
without UPLOADTOOL_ISPRERELEASE it worked, but everything went to Releases. I was not able to set this flag, because script failed. I needed to post them as pre-releases
buddhi1980 commentedon Sep 20, 2020
By the way for backward compatibility by default all packages should be posted as drafts or pre-leseases. It was default behavior before these changes.
probonopd commentedon Sep 20, 2020
Yes, and then GitHub started to hide the prereleases. Hence I changed the default.
probonopd commentedon Sep 20, 2020
Just to be clear, so you are saying the DamirPorobic version didn't work without UPLOADTOOL_ISPRERELEASE, "script failed"?
buddhi1980 commentedon Sep 20, 2020
Pre-releases are visible

DamirPorobic commentedon Sep 20, 2020
Same for me:

buddhi1980 commentedon Sep 20, 2020
I havent tested DamirPorobic version without UPLOADTOOL_ISPRERELEASE. I tested it only with UPLOADTOOL_ISPRERELEASE = true.
Version from here works without UPLOADTOOL_ISPRERELEASE, but fails when there is used UPLOADTOOL_ISPRERELEASE = true.
buddhi1980 commentedon Sep 20, 2020
It is very good that pre-releases are hidden on main page of repository:

donluca commentedon Feb 28, 2023
I'm having issues as well uploading to Github Releases.
I've followed the steps in the Readme and I'm using the build.yml file for Minidexed and I'm getting this error in the logs: