Skip to content

fix: Suppress Project NotFound 404 exception

Lucas Charles requested to merge suppress-project-not-found-exception into master

DESCRIPTION

Checklist

  • Manually verified passing unit tests for this branch locally by running bin/run_docker_tests.sh
    • Yes, this is a pain, but GitLab doesn't run reasonably within a docker container in a normal CI pipeline
    • See bin/run_docker_tests.sh --help for faster/iterative testing options
  • Paste local test output
  • Add a CHANGELOG.md entry

Local Test Output

/bin/run_docker_tests.sh output
❯ docker run -it --rm -e DISCOTO_GITLAB_TOKEN=$DISCOTO_ACCESS_TOKEN -e DISCOTO=1 -e DISCOTO_PROJECTS=something/completely/made/up -e DISCOTO_ISSUABLE_LABELS=discoto-beta registry.gitlab.com/gitlab-org/secure/pocs/discussion-automation:suppress-project-not-found-exception discoto
Unable to find image 'registry.gitlab.com/gitlab-org/secure/pocs/discussion-automation:suppress-project-not-found-exception' locally
suppress-project-not-found-exception: Pulling from gitlab-org/secure/pocs/discussion-automation
21c83c524219: Already exists
de296d325e15: Already exists
ee7a2fddb20b: Already exists
d23ff03fdd17: Already exists
fa112e80e7f6: Already exists
b7358e836ae1: Pull complete
c4f072c54818: Pull complete
Digest: sha256:25cd5f4758b12a48eb2d5f8963ec30e923bbf2bf32e9d8480777314d975b9947
Status: Downloaded newer image for registry.gitlab.com/gitlab-org/secure/pocs/discussion-automation:suppress-project-not-found-exception
Config:
  gitlab_endpoint           https://gitlab.com
  labels                    ["discoto-beta"]
  projects                  ["something/completely/made/up"]
  groups                    []
  assignee
  author
Server responded with code 404, message: 404 Project Not Found. Request URI: https://gitlab.com/api/v4/projects/something%2Fcompletely%2Fmade%2Fup
Loaded 0 initial topics
Expanded to 0 total topics

echo $?
0
Edited by Lucas Charles

Merge request reports