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

/test-this-pr comment automation broken #2639

Open
consideRatio opened this issue May 24, 2023 · 2 comments
Open

/test-this-pr comment automation broken #2639

consideRatio opened this issue May 24, 2023 · 2 comments

Comments

@consideRatio
Copy link
Member

We have a comment command based on automation setup in a github workflow:

name: Run test-this-pr action
on:
issue_comment:
types: [created]
jobs:
run-test-this-pr:
# Run this job in an env where the token with elevated permissions is stored
environment: test-this-pr-env
runs-on: ubuntu-latest
if: |
(github.event.issue.pull_request != null) &&
contains(github.event.comment.body, '/test-this-pr') &&
contains(
fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'),
github.event.comment.author_association
)
steps:
- uses: sgibson91/test-this-pr-action@main
with:
access_token: ${{ secrets.jupyterhub_bot_pat }}

This action failed like below in this github job triggered for #2638.

/usr/bin/docker run --name ed8[6](https://github.com/jupyterhub/mybinder.org-deploy/actions/runs/5066975013/jobs/9097433919#step:3:7)6e9f8bd04d0cef4f2[7](https://github.com/jupyterhub/mybinder.org-deploy/actions/runs/5066975013/jobs/9097433919#step:3:8)8ad250e9d8318bae_2ec08b --label ed866e --workdir /github/workspace --rm -e "INPUT_ACCESS_TOKEN" -e "INPUT_REPOSITORY" -e "INPUT_PR_NUMBER" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/mybinder.org-deploy/mybinder.org-deploy":"/github/workspace" ed866e:9f8bd04d0cef4f278ad250e9d8318bae  "***" "jupyterhub/mybinder.org-deploy" "2638"
Traceback (most recent call last):
  File "/app/src/main.py", line 50, in <module>
    post_request(branch_ref_url, headers=HEADER, json=body)
  File "/app/src/utils.py", line 57, in post_request
    raise RuntimeError(resp.text)
RuntimeError: {"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/git#create-a-reference"}
@minrk
Copy link
Member

minrk commented May 24, 2023

fwiw, we are getting a 404 here, attempting to create the test-this-pr branch/2638 branch. It's unclear what the 404 would refer to as being not found, as the docs do not list 404 as an available error code.

Last successful run appears to have been #2611 on April 28, which is also a PR from a fork, as are ~all previous invocations of this bot.

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

2 participants