-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
fix(dev-infra): rebase pr script and token sanitization not working #37489
Closed
devversion
wants to merge
5
commits into
angular:master
from
devversion:fix/dev-infra-git-client-token-sanitize
Closed
fix(dev-infra): rebase pr script and token sanitization not working #37489
devversion
wants to merge
5
commits into
angular:master
from
devversion:fix/dev-infra-git-client-token-sanitize
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
devversion
commented
Jun 8, 2020
- See individual commits.
devversion
added
action: review
The PR is still awaiting reviews from at least one requested reviewer
target: patch
This PR is targeted for the next patch release
area: dev-infra
Issues related to Angular's own dev infra (build, test, CI, releasing)
labels
Jun 8, 2020
devversion
force-pushed
the
fix/dev-infra-git-client-token-sanitize
branch
2 times, most recently
from
June 8, 2020 20:51
f952b70
to
a6ec3e3
Compare
josephperrott
approved these changes
Jun 8, 2020
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
devversion
added
action: merge
The PR is ready for merge by the caretaker
and removed
action: review
The PR is still awaiting reviews from at least one requested reviewer
labels
Jun 8, 2020
We recently moved over the git client from the merge script to the common dev-infra utils. This made specifying a token optional, but it looks like the logic for sanitizing messages doesn't account for that, and we currently add `<TOKEN>` between every message character. e.g. ``` Executing: git <TOKEN>g<TOKEN>i<TOKEN>t<TOKEN> <TOKEN>s<TOKEN>t<TOKEN>a<TOKEN>t<TOKEN>u<TOKEN>s<TOKEN> ```
The dev-infra rebase PR script currently does not work due to the following issues: 1. The push refspec is incorrect. It refers to the `base` of the PR, and not to the `head` of the PR. 2. The push `--force-with-lease` option does not work in a detached head as no remote-tracking branch is set up.
Looks like we broke the `hasLocalChanges` check in the git client when we moved it over from the merge script. The problem is that we are using `git` in the first argument of `git.run`. That means that we under-the-hood run `git git <..>`. This commit fixes that, but also switches to a better variant for ensuring no local changes because it exits with non-zero when there are local changes.
…specified Address feedback
…specified Fix lint
devversion
force-pushed
the
fix/dev-infra-git-client-token-sanitize
branch
from
June 9, 2020 13:58
50165f7
to
975a7ce
Compare
atscott
pushed a commit
that referenced
this pull request
Jun 9, 2020
…ed (#37489) We recently moved over the git client from the merge script to the common dev-infra utils. This made specifying a token optional, but it looks like the logic for sanitizing messages doesn't account for that, and we currently add `<TOKEN>` between every message character. e.g. ``` Executing: git <TOKEN>g<TOKEN>i<TOKEN>t<TOKEN> <TOKEN>s<TOKEN>t<TOKEN>a<TOKEN>t<TOKEN>u<TOKEN>s<TOKEN> ``` PR Close #37489
atscott
pushed a commit
that referenced
this pull request
Jun 9, 2020
The dev-infra rebase PR script currently does not work due to the following issues: 1. The push refspec is incorrect. It refers to the `base` of the PR, and not to the `head` of the PR. 2. The push `--force-with-lease` option does not work in a detached head as no remote-tracking branch is set up. PR Close #37489
atscott
pushed a commit
that referenced
this pull request
Jun 9, 2020
Looks like we broke the `hasLocalChanges` check in the git client when we moved it over from the merge script. The problem is that we are using `git` in the first argument of `git.run`. That means that we under-the-hood run `git git <..>`. This commit fixes that, but also switches to a better variant for ensuring no local changes because it exits with non-zero when there are local changes. PR Close #37489
atscott
pushed a commit
that referenced
this pull request
Jun 9, 2020
The dev-infra rebase PR script currently does not work due to the following issues: 1. The push refspec is incorrect. It refers to the `base` of the PR, and not to the `head` of the PR. 2. The push `--force-with-lease` option does not work in a detached head as no remote-tracking branch is set up. PR Close #37489
atscott
pushed a commit
that referenced
this pull request
Jun 9, 2020
Looks like we broke the `hasLocalChanges` check in the git client when we moved it over from the merge script. The problem is that we are using `git` in the first argument of `git.run`. That means that we under-the-hood run `git git <..>`. This commit fixes that, but also switches to a better variant for ensuring no local changes because it exits with non-zero when there are local changes. PR Close #37489
ngwattcos
pushed a commit
to ngwattcos/angular
that referenced
this pull request
Jun 25, 2020
…ed (angular#37489) We recently moved over the git client from the merge script to the common dev-infra utils. This made specifying a token optional, but it looks like the logic for sanitizing messages doesn't account for that, and we currently add `<TOKEN>` between every message character. e.g. ``` Executing: git <TOKEN>g<TOKEN>i<TOKEN>t<TOKEN> <TOKEN>s<TOKEN>t<TOKEN>a<TOKEN>t<TOKEN>u<TOKEN>s<TOKEN> ``` PR Close angular#37489
ngwattcos
pushed a commit
to ngwattcos/angular
that referenced
this pull request
Jun 25, 2020
The dev-infra rebase PR script currently does not work due to the following issues: 1. The push refspec is incorrect. It refers to the `base` of the PR, and not to the `head` of the PR. 2. The push `--force-with-lease` option does not work in a detached head as no remote-tracking branch is set up. PR Close angular#37489
ngwattcos
pushed a commit
to ngwattcos/angular
that referenced
this pull request
Jun 25, 2020
Looks like we broke the `hasLocalChanges` check in the git client when we moved it over from the merge script. The problem is that we are using `git` in the first argument of `git.run`. That means that we under-the-hood run `git git <..>`. This commit fixes that, but also switches to a better variant for ensuring no local changes because it exits with non-zero when there are local changes. PR Close angular#37489
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
profanis
pushed a commit
to profanis/angular
that referenced
this pull request
Sep 5, 2020
…ed (angular#37489) We recently moved over the git client from the merge script to the common dev-infra utils. This made specifying a token optional, but it looks like the logic for sanitizing messages doesn't account for that, and we currently add `<TOKEN>` between every message character. e.g. ``` Executing: git <TOKEN>g<TOKEN>i<TOKEN>t<TOKEN> <TOKEN>s<TOKEN>t<TOKEN>a<TOKEN>t<TOKEN>u<TOKEN>s<TOKEN> ``` PR Close angular#37489
profanis
pushed a commit
to profanis/angular
that referenced
this pull request
Sep 5, 2020
The dev-infra rebase PR script currently does not work due to the following issues: 1. The push refspec is incorrect. It refers to the `base` of the PR, and not to the `head` of the PR. 2. The push `--force-with-lease` option does not work in a detached head as no remote-tracking branch is set up. PR Close angular#37489
profanis
pushed a commit
to profanis/angular
that referenced
this pull request
Sep 5, 2020
Looks like we broke the `hasLocalChanges` check in the git client when we moved it over from the merge script. The problem is that we are using `git` in the first argument of `git.run`. That means that we under-the-hood run `git git <..>`. This commit fixes that, but also switches to a better variant for ensuring no local changes because it exits with non-zero when there are local changes. PR Close angular#37489
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
action: merge
The PR is ready for merge by the caretaker
area: dev-infra
Issues related to Angular's own dev infra (build, test, CI, releasing)
cla: yes
target: patch
This PR is targeted for the next patch release
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.