-
Notifications
You must be signed in to change notification settings - Fork 66
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
skip_commit works, but builds still wait endlessly for appveyor to report status #1848
Comments
You still should be able to forcibly merge a PR if you are repository administrator. Or you can ask repo administrator to do it. |
You are describing a workaround, not a solution. :) Is this behavior of pending build checks ("Waiting for status to be reported ") expected, even though a build never triggered? |
We do not set this status. We set status to |
Thanks for coming back to me that quickly! 👍 To understand you correctly, is this what you're saying?
|
No... Appveyor does not set |
Great, so because of commit filtering, there should never start any AppVeyor build in my example. That's how I understood and expected the feature to work. 👍
Thanks, so it looks like there is something unusual going on and I might ran into a bug. Is there a way to check what triggered that status? Edit: To make it more clear, that's how it looks like: (I figuered that other people might not see it...) |
Yes, this is exactly what I was thinking, I just did not find any "official" confirmation online. So we could reset this status if build if filtered out, but to what? As I said, all statuses available in API, are not technically correct for this case. It should be something like |
This special case is indeed not mentioned in their explanation or help pages.
While
What do you think about this: As your link to the GitHub API shows, statuses can contain additional optional information like For example, a
Would it be possible to send a new status/description/target_url combination for builds that match commit filter criteria and are skipped by AppVeyor?
Then it works perfectly fine with |
But with this people can cheat repo owners by simple adding |
If people add |
Well, everybody should properly check what he is merging before doing so. :) So as it stands right now,
Happy to hear that. 👍 Hmm, another thought: |
Sure, I made a sample for you. Please note that I made it check that |
Awesome. Had no time yet to check it out! I'm sorry.
That is a smart move and seems to be very important! 👍 @IlyaFinkelshteyn Why did you use an api call to get the changed files instead using git diff command? Am I right, that I can call it like this from within appveyor config if i place your example file within our repo?
Which minimal scopes are needed for the token to properly access the api in this regard? There are a ton of options in the github settings... |
Honestly I did not think of Yes,
|
Hmm, your docs are saying: Wouldn't that then prevent it from working for all pr's? I was wondering why we would have to use a token at all, but I think I found it in the api docs. The Appveyor server would get limited upon their IP most likely: Rate Limiting
Even though it looked like a promising and better solution first, I think the API approach isn't working here due to ip limits for unauthenticated requests on one hand, and authenticated requests being limited to non-pr builds on the other hand? |
You have an option to allow secure variable in pull requests. For the same repository only if project us open source and for any repository if project is private. Does it work for you? |
I'll give it a try. Have to tinker around - never did most of that before. :) |
I'm very surprised to see this ticket being open still after such a long time, and TBH I believe you guys are over-complicating things: If |
Anyway, the way we do this in Travis is
What would be the equivalent of the |
As "skip_commits" does not work for required PR checks, see appveyor/ci#1848. Signed-off-by: Sebastian Schuberth <[email protected]>
As "skip_commits" does not work for required PR checks, see appveyor/ci#1848. Signed-off-by: Sebastian Schuberth <[email protected]>
As "skip_commits" does not work for required PR checks, see appveyor/ci#1848. Signed-off-by: Sebastian Schuberth <[email protected]>
As "skip_commits" does not work for required PR checks, see appveyor/ci#1848. Signed-off-by: Sebastian Schuberth <[email protected]>
As "skip_commits" does not work for required PR checks, see appveyor/ci#1848. Signed-off-by: Sebastian Schuberth <[email protected]>
As "skip_commits" does not work for required PR checks, see appveyor/ci#1848. Signed-off-by: Sebastian Schuberth <[email protected]>
Here's what I ended up doing: |
As described here: https://www.appveyor.com/docs/appveyor-yml/
I implemented
skip_commits:
for*.md
files and some others at https://github.com/Cockatrice/Cockatrice/tree/tooomm-appveyor_configIt works nicely and I successfully tested it for several cases in the last commits in that branch.
However, if you look at the PR there (2888), you see that there still is one AppVeyor check waiting at the bottom overview. Even though for each of the test commits there are correctly no AppVeyor builds triggered.
Problem there is that the "waiting for AppVeyor to report status" check won't change, and if a appveyor build is marked as
required
that pr can't get merged at all...Please let me know what I can do. 👍
The text was updated successfully, but these errors were encountered: