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
Handle commit changes #20557
Handle commit changes #20557
Conversation
Submitting the task to Taskcluster failed. DetailsInterpreterError at template.tasks[0]: object has no property pusher |
d322244
to
f03203f
Compare
f778850
to
1f08bdc
Compare
a1d086f
to
791de03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The taskcluster.yml change looks pretty good to me, if you want to pull it out I'll review it separately. The rest I haven't looked at.
3e0c41b
to
f8e67d8
Compare
f8e67d8
to
34a2086
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % some nits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to add some tests if possible.
34a2086
to
0aee016
Compare
If the decision task and the scheduled tak see different commits there are several possible scenarios: * There is a non-force push to a branch. In this case the old commit is still reachable and can be tested * There is a force push to a branch. In this case the old commit is not reachable and we want to bail asap * A PR is updated (with a force or non-force push). In this case we don't want to test the old commit. * Master is updated, thus changing the equivalent merge commit for the PR. In this case we probably want to run the tests anyway; this is only a problem if the master change also affects behaviour on the branch. Currently we bail in all these cases; instead try to treat them as descibed above.
f1f5045
to
f21b906
Compare
`git fetch origin expected_head:task_head` fails when we are already on `task_head` branch: "fatal: Refusing to fetch into current branch refs/heads/task_head of non-bare repository". We can't use --update-head-ok here, either, since we often want to check out an earlier commit, which is not a fast-forward. The sane way to do this is to use a separate `git reset --hard`. Also fix another unrelated AttributeError in the error messages printed when handling exceptions.
`git fetch origin expected_head:task_head` fails when we are already on `task_head` branch: "fatal: Refusing to fetch into current branch refs/heads/task_head of non-bare repository". We can't use --update-head-ok here, either, since we often want to check out an earlier commit, which is not a fast-forward. The sane way to do this is to use a separate `git reset --hard`. Also fix another unrelated AttributeError in the error messages printed when handling exceptions.
No description provided.