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

Repair failing test-proxy livetests #5259

Merged
merged 14 commits into from
Jan 31, 2023
Merged

Conversation

scbedd
Copy link
Member

@scbedd scbedd commented Jan 27, 2023

Here's the issue. When we are using a token for push/pull, we are now unable to git status without a remote configuration that actually works. It fails with error code 128 and terminal prompts are now disabled. The reason this is happening is because git status is now erroring when it can't find a global configuration for a given user. This is where it would prompt you for a user/pass combo -- something which is disabled in CI for a reason!

The token being present in the origin url short circuits this error and allows it to infer the username automagically, which is why this solution works.

Kinda glad this occurred here before someone started asking

Hey Scott why is failing?

This PR moves the update of the origin to include the token to before we DetectPendingChanges. Frankly, this kinda makes sense, and I'm actually uncertain why it ever worked other than "git updates".

  • TODO: remove TERMINAL_PROMPT environment variable, it doesn't address the issue. The update of SetOrigin is all that is required.

@scbedd scbedd requested a review from mikeharder as a code owner January 27, 2023 22:28
@scbedd scbedd requested a review from benbp January 27, 2023 22:35
@scbedd scbedd self-assigned this Jan 27, 2023
@scbedd scbedd added the Test-Proxy Anything relating to test-proxy requests or issues. label Jan 27, 2023
@scbedd scbedd changed the title Ensure that disabled terminal prompts still work during livetest Repair failing test-proxy livetests Jan 27, 2023
@scbedd
Copy link
Member Author

scbedd commented Jan 27, 2023

/azp run tools - test-proxy - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scbedd scbedd merged commit ff66b2a into main Jan 31, 2023
@scbedd scbedd deleted the hotfix/resolve-proxy-livetest branch January 31, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test-Proxy Anything relating to test-proxy requests or issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants