-
Notifications
You must be signed in to change notification settings - Fork 723
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
GitHub releases fails to deploy when supplied glob matches a subdirectory #9338
Comments
This fixes a couple of bugs in the build process and works around a few 3rd party service bugs and undocumented "features". Most notably: * beta tag was missing from signing API call * Add git credentials to updates repo * AMO API library needs us to create destination folder before signing * Workaround Travis workflow bug travis-ci/travis-ci#2570 * Workaround Travis subdirectory bug travis-ci/travis-ci#9338
This is the correct link to PR -> travis-ci/docs-travis-ci-com#1750 |
Thanks. Updated my link. |
I think this is a bug, after all, which I should have spotted in #9322. Regardless; the |
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 24 hours. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
Use a config file like this:
With a build output filesystem structure like this:
Expected behaviour
file1 and file2 are uploaded to a new GitHub release.
Actual behaviour
file1 is uploaded and then the build fails with a stack trace like this:
Additional information
I think that the issue can also be reproduced with a glob of
dist/*
and the above build output directory structure (i.e. we don't actually want to upload anything inside the subdirectory but it's mere presence causes the build to fail). I think this because I saw the same error when I had a config like the one below and can't see how the 2nd file entry could be the cause of the error.Note that this bug means that the documentation update pending in PR travis-ci/docs-travis-ci-com#1750 from @alexmozzhakov does not work.
Example failed builds
My first exposure to this bug (with the multiple file entries):
https://travis-ci.org/kee-org/browser-addon/builds/353727668
My failed attempt to avoid the bug by using the
dist/**/*
glob:https://travis-ci.org/kee-org/browser-addon/builds/353742834
Potential workaround
If you can predict something constant about the built files you can avoid this bug by changing the glob as per the example config below (where we know that we are only interested in files with specific extensions)
The text was updated successfully, but these errors were encountered: