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

Zally issue creation sometimes omits commits #607

Closed
ePaul opened this issue Aug 25, 2020 · 4 comments
Closed

Zally issue creation sometimes omits commits #607

ePaul opened this issue Aug 25, 2020 · 4 comments

Comments

@ePaul
Copy link
Member

ePaul commented Aug 25, 2020

We observed that some of the merges in this repository don't create a Zally issue, when they should have done so.

Examples:

Analysis:

It looks like the result of https://api.github.com/repos/zalando/restful-api-guidelines/pulls/598/files (and similar) didn't return useful results (possibly an error?), which resulted in a error of jq, and then the rest of the script thought that nothing changed, and decided not to create a Zally issue.

GitHub's commit information API lags a bit behind the actual commits. So when it doesn't return anything, we might need to wait a bit and retry, when this happened.

@ePaul
Copy link
Member Author

ePaul commented Aug 25, 2020

Other missed (and relevant) PRs:

@ePaul
Copy link
Member Author

ePaul commented Sep 22, 2020

Potential (partial) solution:

  • wait a moment before fetching the files for a merged PR.
  • (if feasible) in the error case, wait a bit and try again
  • in case of doubt, create an issue

@tkrop tkrop self-assigned this Nov 3, 2020
@ePaul
Copy link
Member Author

ePaul commented Dec 1, 2020

We invested a bit more time to figure out what happened.

  • The travis-deploy.sh script is trying to figure out which PR belongs to the merge commit. It is using jq's capture("#(?<n>[0-9]+) ") to find the PR number from the merge commit. This finds Merge pull request #591 from zalando/gh-589-fix-link, but not Added naming convention for enums (#560). If it fails, no issue is created.
  • After that, the script is trying to look at the files for the PR, to check whether a file in chapters changed.
    This sometimes fails, because the Github API doesn't return any data yet – in this case, no issue is created.

To make it more robust, we would need to:

  • fix the regexp
  • add a loop for the second request too
  • as a fallback, if we didn't get anything, still create an issue.

tkrop pushed a commit that referenced this issue Jan 12, 2021
tkrop pushed a commit that referenced this issue Jan 12, 2021
tkrop pushed a commit that referenced this issue Jan 19, 2021
tkrop pushed a commit that referenced this issue Jan 20, 2021
fix: and improve zally notification script (#607)
@tkrop
Copy link
Member

tkrop commented Feb 15, 2021

Lets assume that #628 was finally fixing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants