Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Add troubleshooting guide (#494)
Browse files Browse the repository at this point in the history
* add troubleshooting guide

* review fixes
  • Loading branch information
prayerslayer authored Mar 1, 2017
1 parent 3077485 commit 3a1a992
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
Binary file added docs/img/troubleshooting/no-approval-counted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/troubleshooting/no-enable-disable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/troubleshooting/no-success-status.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Troubleshooting Zappr

This page tries to explain common sources of error and give instructions how to fix them.

Terminology:

* Zapprfile: A file named `.zappr.yaml` located in the root directory of your repository.

## I can't enable or disable checks for my repository

![A Github 404 API error is visible](img/troubleshooting/no-enable-disable.png)

You don't have admin access for this repository. Either become an admin yourself or ask one to toggle this check.

## I updated my Zapprfile in a PR, but it's not picked up.

Zappr reads your Zapprfile from the repository's default branch (it's `master` by default). Changes on a feature branch are ignored.

## I enabled Zappr, but approvals don't seem to count

If you have the option `approvals.from` configured, which can look like this in your Zapprfile:

~~~ yaml
approvals:
from:
orgs:
- zalando
~~~

And Zappr's status looks like this:

![Zappr reports pending status with zero approvals](img/troubleshooting/no-approval-counted.png)

Then you need to make sure that

* This organization exists in the GitHub instance (github.com or your GHE)
* Everybody who is supposed to approve is a **public** member of this organization

## I enabled Zappr, but it hangs with status "pending"

![GitHub says "Waiting for status to be reported"](img/troubleshooting/no-success-status.png)

Until now there were two reasons why this happened:

### The 99% case

The person who enabled the Zappr check does not have access to the repository anymore, for whatever reason. Since Zappr stores a personal access token for every check (to communicate with GitHub during check execution), it's a problem if the permissions of this token change.

**Solution**: Disable and enable the Zappr check to replace the stored token.

### The case that happened only once

There is a limit of 1000 status updates per combination of context (like `zappr`, `zappr/pr/specification`...) and commit ID. If there are A LOT of comments in a PR, this limit might be exceeded.

**Solution**: Add an additional commit to the PR.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ docs_dir: docs
pages:
- Overview: index.md
- Setup: setup.md
- Troubleshooting: troubleshooting.md
- Comparison to other tools: competitors.md
- Run your own: run-your-own.md
- FAQ: faq.md
Expand Down

0 comments on commit 3a1a992

Please sign in to comment.