Comments (14)
@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.
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.
Did the PAT expire in ADO?
from isomorphic-git.
I have no idea what those are. Where can I check this? Will migration to GitHub action fix this?
from isomorphic-git.
It looks like we are using a username and password to authenticate to Azure DevOps in the test:
isomorphic-git/__tests__/test-hosting-providers.js
Lines 66 to 67 in 79a38e0
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.
If this to test the git server, then maybe we can use Docker for this.
from isomorphic-git.
from isomorphic-git.
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.
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.
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.
PR is up
from isomorphic-git.
I think we can close this one.
from isomorphic-git.
Do you want to keep it open to fix it and update the authentication to use a PAT in CI?
from isomorphic-git.
Can you remind me what is PAT?
from isomorphic-git.
Related Issues (20)
- The `statusMatrix` throw a TypeError when use in the browser with `memfs` HOT 4
- Git.readBlob is too slow. HOT 9
- Properly propagate error encountered when reading response from git-upload-pack POST request HOT 4
- No shallow directory error HOT 3
- isPromiseFs fails on Deno HOT 9
- Improve `normalizePath` performance HOT 6
- pushing a tag to a target branch fail HOT 1
- Empty response from git server when using code bundler HOT 33
- Pushing returning 401 Error: No Anonymous Write Access HOT 6
- Tests are failing on Android HOT 15
- Cloning empty repository fails if git server uses git >= 2.41.0 HOT 5
- Getting a 404 with azure devops HOT 1
- not respecting server capabilities ( report-status ) HOT 1
- How can I abort a push operation on Node? AbortController seems to be not supported. HOT 2
- Codespell workflow needs approval
- Race condition makes it possible for a ref to be resolved to an empty string while it's in the middle of being updated HOT 16
- Invalid refs should throw HOT 11
- Isomorphic git functionality is broken on any browser
- Error Running Linter on main locally HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isomorphic-git.