-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
publish_toolstate: don't use 'new' from inside the loop #62023
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Cc @kennytm @rust-lang/infra |
Oh I see, the push would happen elsewhere, namely when the branch actually hits master. That would be this log. And that log contains |
This comment has been minimized.
This comment has been minimized.
Yea, I noticed the same thing in #61693. Clippy has never opened a new issue when it has failed. Unfortunately the body of the error is not logged. I recommend at least updating the error handling to do that to understand why it is hitting 422. I thought about running the command locally with my own api key to see what the message is, but I was concerned about creating issues and pinging a bunch of people if it worked. |
r? @kennytm |
How would I do that? I don't know the involved python libs very well. |
Something like the following should work. diff --git a/src/tools/publish_toolstate.py b/src/tools/publish_toolstate.py
index 9e7c18b7f5..c7bfd8a1ab 100755
--- a/src/tools/publish_toolstate.py
+++ b/src/tools/publish_toolstate.py
@@ -164,6 +164,8 @@ def update_latest(
tool, new, MAINTAINERS.get(tool, ''),
relevant_pr_number, relevant_pr_user, pr_reviewer,
)
+ except urllib2.HTTPError as e:
+ print("HTTPError: {0} {1}".format(e, e.read()))
except IOError as e:
# network errors will simply end up not creating an issue, but that's better
# than failing the entire build job |
Okay, I added something like that. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
{"message":"Validation Failed","errors":[{"value":"llogiq","resource":"Issue","field":"assignees","code":"invalid"}],"documentation_url":"https://developer.github.com/v3/issues/#create-an-issue"} 🤔 Edit: Seems unassignable users cannot be present in the
|
That's weird, perhaps the assignee must be at least a collaborator? I can't find anything that mentions any restrictions like that. However, that makes sense because if you go to a github issue and click "assign", the only options are members/collaborators. I read that statement in the docs that if you don't have "push" access, all assignees will be dropped. Presumably the bot has push access, but this is hitting the additional requirements. |
Oooh so this is actually unrelated to my PR, and related to whether the author of the breaking PR is a team member? That explains so much! I had noticed a missing Miri issue some time ago already but it worked the next time so I thought it was fixed. So probably having the PR author as assignee is not a good idea then? |
…y are not a team member
This comment has been minimized.
This comment has been minimized.
@kennytm so this should fix the problem of not being able to assign non-team-members, and it also adds some more logging for the next time we have a problem. Does that seem reasonable? |
@bors r+ rollup |
📌 Commit 02863a3 has been approved by |
publish_toolstate: don't use 'new' from inside the loop I think I made a mistake in rust-lang#61938 by using `new` outside the inner loop. This PR fixes that. However, no issue got created at all for rust-lang#62003 (comment), and I don't know why that is. The script should be [triggered by Traivs](https://github.com/rust-lang/rust/blob/56a12b2ad058f22f1ef090713df15598525ba4a4/.travis.yml#L240), and I can find no trace of that in [the build log](https://travis-ci.com/rust-lang/rust/jobs/209880042).
publish_toolstate: don't use 'new' from inside the loop I think I made a mistake in rust-lang#61938 by using `new` outside the inner loop. This PR fixes that. However, no issue got created at all for rust-lang#62003 (comment), and I don't know why that is. The script should be [triggered by Traivs](https://github.com/rust-lang/rust/blob/56a12b2ad058f22f1ef090713df15598525ba4a4/.travis.yml#L240), and I can find no trace of that in [the build log](https://travis-ci.com/rust-lang/rust/jobs/209880042).
publish_toolstate: don't use 'new' from inside the loop I think I made a mistake in rust-lang#61938 by using `new` outside the inner loop. This PR fixes that. However, no issue got created at all for rust-lang#62003 (comment), and I don't know why that is. The script should be [triggered by Traivs](https://github.com/rust-lang/rust/blob/56a12b2ad058f22f1ef090713df15598525ba4a4/.travis.yml#L240), and I can find no trace of that in [the build log](https://travis-ci.com/rust-lang/rust/jobs/209880042).
publish_toolstate: don't use 'new' from inside the loop I think I made a mistake in rust-lang#61938 by using `new` outside the inner loop. This PR fixes that. However, no issue got created at all for rust-lang#62003 (comment), and I don't know why that is. The script should be [triggered by Traivs](https://github.com/rust-lang/rust/blob/56a12b2ad058f22f1ef090713df15598525ba4a4/.travis.yml#L240), and I can find no trace of that in [the build log](https://travis-ci.com/rust-lang/rust/jobs/209880042).
Rollup of 7 pull requests Successful merges: - #61199 (Revert "Set test flag when rustdoc is running with --test option" ) - #61755 (Add `--pass $mode` to compiletest through `./x.py`) - #61818 (Issue #60709 test) - #62023 (publish_toolstate: don't use 'new' from inside the loop) - #62104 (Inform the query system about properties of queries at compile time) - #62163 (Avoid mem::uninitialized() in std::sys::unix) - #62204 (doc(libcore) Fix CS) Failed merges: r? @ghost
I think I made a mistake in #61938 by using
new
outside the inner loop. This PR fixes that.However, no issue got created at all for #62003 (comment), and I don't know why that is. The script should be triggered by Traivs, and I can find no trace of that in the build log.