Skip to content
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

publish_github_release: Fix upload using GitHub Actions #96

Open
jcfr opened this issue Jan 27, 2022 · 0 comments
Open

publish_github_release: Fix upload using GitHub Actions #96

jcfr opened this issue Jan 27, 2022 · 0 comments

Comments

@jcfr
Copy link
Contributor

jcfr commented Jan 27, 2022

The following errors were reported

Using Python 3.10.2
Traceback (most recent call last):
Updating prerelease package keep pattern [*<COMMIT_SHORT_SHA>*]
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
  <COMMIT_SHORT_SHA> -> fc7cee0
Checking if HEAD is a release tag
Checking if HEAD is a release tag - no (creating prerelease)

release latest: already exists

uploading 'latest' release asset(s) (found 1):
  uploading ../build/CTKAppLauncher-0.1.29-gfc7cee0-macosx-amd64.tar.gz
    httplib_response = self._make_request(
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/http/client.py", line 1076, in _send_output
    self.send(chunk)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/http/client.py", line 998, in send
    self.sock.sendall(data)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/ssl.py", line 1236, in sendall
    v = self.send(byte_view[count:])
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/ssl.py", line 1205, in send
    return self._sslobj.write(data)
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2384)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/requests/adapters.py", line 440, in send
    resp = conn.urlopen(
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='uploads.github.com', port=443): Max retries exceeded with url: /repos/commontk/AppLauncher/releases/6205100/assets?name=CTKAppLauncher-0.1.29-gfc7cee0-macosx-amd64.tar.gz (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2384)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/anyci/publish_github_release.py", line 597, in <module>
    main()
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/anyci/publish_github_release.py", line 590, in main
    _upload_prerelease(args)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/anyci/publish_github_release.py", line 457, in _upload_prerelease
    gh_asset_upload(
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/github_release.py", line 116, in with_check_for_credentials
    return func(*args, **kwargs)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/github_release.py", line 759, in gh_asset_upload
    already_uploaded, uploaded, _ = _upload_release_file(
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/github_release.py", line 701, in _upload_release_file
    response = _request(
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/github_release.py", line 65, in _request
    response = request(*args, **kwargs)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/requests/adapters.py", line 517, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='uploads.github.com', port=443): Max retries exceeded with url: /repos/commontk/AppLauncher/releases/6205100/assets?name=CTKAppLauncher-0.1.29-gfc7cee0-macosx-amd64.tar.gz (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2384)')))

Source: https://github.com/commontk/AppLauncher/runs/4966711011?check_suite_focus=true

Using Python 3.7.12
  cd src
  ci_addons publish_github_release commontk/applauncher \
    --exit-success-if-missing-token \
    --prerelease-packages ../build/CTKAppLauncher-*.tar.gz \
    --prerelease-packages-clear-pattern "*macosx*" \
    --prerelease-packages-keep-pattern "*<COMMIT_SHORT_SHA>*" \
    --release-packages build/CTKAppLauncher-*.tar.gz
  shell: /bin/bash -e {0}
  env:
    pythonLocation: /Users/runner/hostedtoolcache/Python/3.7.12/x64
    GITHUB_TOKEN: secrets.COMMONTKBOT_GITHUB_TOKEN
Updating prerelease package keep pattern [*<COMMIT_SHORT_SHA>*]
  <COMMIT_SHORT_SHA> -> 2eef961
Checking if HEAD is a release tag
Checking if HEAD is a release tag - no (creating prerelease)

release latest: already exists

uploading 'latest' release asset(s) (found 1):
  uploading ../build/CTKAppLauncher-0.1.29-g2eef961-macosx-amd64.tar.gz
Traceback (most recent call last):
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/anyci/publish_github_release.py", line 597, in <module>
    main()
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/anyci/publish_github_release.py", line 590, in main
    _upload_prerelease(args)
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/anyci/publish_github_release.py", line 458, in _upload_prerelease
    args.repo_name, args.prerelease_tag, packages, args.dry_run
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/github_release.py", line 116, in with_check_for_credentials
    return func(*args, **kwargs)
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/github_release.py", line 760, in gh_asset_upload
    repo_name, tag_name, upload_url, filename, verbose, dry_run)
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/github_release.py", line 713, in _upload_release_file
    response.raise_for_status()
  File "/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://uploads.github.com/repos/commontk/AppLauncher/releases/6205100/assets?name=CTKAppLauncher-0.1.29-g2eef961-macosx-amd64.tar.gz

Source: https://github.com/commontk/AppLauncher/runs/4966807783?check_suite_focus=true

jcfr added a commit to commontk/AppLauncher that referenced this issue Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant