release-approval:
machine: true
steps:
- install-bazel-linux-rbe
- checkout
- run: pyenv install 3.6.3
- run: pyenv global 3.6.3
- run: |
export RELEASE_APPROVAL_USERNAME=$REPO_GITHUB_USERNAME
export RELEASE_APPROVAL_TOKEN=$REPO_GITHUB_TOKEN
bazel run @graknlabs_build_tools//ci:release-approval
The error looks to reference a change between the expectations of Python2 and of Python3, indicating that release-approval.py
isn't compatible with Python3:
INFO: Build completed successfully, 4 total actions
Traceback (most recent call last):
File "/home/circleci/.cache/bazel/_bazel_circleci/f16e36219ef33c22efc2ad20f3e3775c/execroot/kglib/bazel-out/k8-fastbuild/bin/external/graknlabs_build_tools/ci/release-approval.runfiles/graknlabs_build_tools/ci/release-approval.py", line 41, in <module>
new_release_signature = hmac.new(git_token, json.dumps(grabl_data), hashlib.sha1).hexdigest()
File "/opt/circleci/.pyenv/versions/3.6.3/lib/python3.6/hmac.py", line 144, in new
return HMAC(key, msg, digestmod)
File "/opt/circleci/.pyenv/versions/3.6.3/lib/python3.6/hmac.py", line 42, in __init__
raise TypeError("key: expected bytes or bytearray, but got %r" % type(key).__name__)
TypeError: key: expected bytes or bytearray, but got 'str'
Exited with code 1