Git Product home page Git Product logo

Comments (14)

jcubic avatar jcubic commented on June 8, 2024 1

@seanpoulter can you maybe add a PR with those tests disabled on separated PR/branch. So we can merge right away? Just use cherry-pick on different branch.

from isomorphic-git.

seanpoulter avatar seanpoulter commented on June 8, 2024

Interesting. We're using a hard-coded username and password/PAT trying to force push to ADO which is throwing a HTTP 401.
https://github.com/isomorphic-git/isomorphic-git/blob/main/__tests__/test-hosting-providers.js#L85-L103

from isomorphic-git.

seanpoulter avatar seanpoulter commented on June 8, 2024

Did the PAT expire in ADO?

from isomorphic-git.

jcubic avatar jcubic commented on June 8, 2024

I have no idea what those are. Where can I check this? Will migration to GitHub action fix this?

from isomorphic-git.

seanpoulter avatar seanpoulter commented on June 8, 2024

It looks like we are using a username and password to authenticate to Azure DevOps in the test:

const password = reverse('ez8dMKyRfWpzMkhg3QJb5m')
const username = 'isomorphicgittestpush'


The authentication method was deprecated in 2020.
https://learn.microsoft.com/en-us/azure/devops/repos/git/auth-overview?view=azure-devops#alternate-credentials

Azure DevOps no longer supports Alternate Credentials authentication since the beginning of March 2, 2020.


The authentication method was removed in January 2024:
https://devblogs.microsoft.com/devops/azure-devops-will-no-longer-support-alternate-credentials-authentication/

This feature will be fully deprecated in January 2024.


The test analytics don't go back that far but it has been failing for the last 14 days.
https://dev.azure.com/isomorphic-git/isomorphic-git/_test/analytics?definitionId=1&contextType=build


The solution is to change the authentication method for the test case.

--

Next steps:

  • Decide on the authentication method
  • Confirm the user has the least possible permissions to run the test
  • Decide if we want to keep the secret hard-coded or hide it
  • Update the test case to use the new authentication method

--

To answer your two questions:

Where can I check this?

If we had a PAT set up, you could follow these docs:
https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?toc=%2Fazure%2Fdevops%2Forganizations%2Ftoc.json&view=azure-devops&tabs=Windows

Will migration to GitHub action fix this?

No.

from isomorphic-git.

jcubic avatar jcubic commented on June 8, 2024

If this to test the git server, then maybe we can use Docker for this.

from isomorphic-git.

seanpoulter avatar seanpoulter commented on June 8, 2024

from isomorphic-git.

jcubic avatar jcubic commented on June 8, 2024

I think that for now we need to disable those tests so we can merge open PR. We will think what to do with them when we migrate to GitHub actions.

from isomorphic-git.

seanpoulter avatar seanpoulter commented on June 8, 2024

I've disabled the test in #1879. If/when we get the GitHub Actions set up we get use this issue and get those tests back in.

from isomorphic-git.

ipeychev avatar ipeychev commented on June 8, 2024

We need to get out of this deadlock. @jcubic, if there is no way to fix this issue, can't we disable it for now in the whole repo? All other PR are blocked.

from isomorphic-git.

seanpoulter avatar seanpoulter commented on June 8, 2024

PR is up

from isomorphic-git.

jcubic avatar jcubic commented on June 8, 2024

I think we can close this one.

from isomorphic-git.

seanpoulter avatar seanpoulter commented on June 8, 2024

Do you want to keep it open to fix it and update the authentication to use a PAT in CI?

from isomorphic-git.

jcubic avatar jcubic commented on June 8, 2024

Can you remind me what is PAT?

from isomorphic-git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.