Comments (6)
Hi @Jefinreji19. Delighted to hear you're interested in onboarding PR Metrics to your builds.
From looking at the error message, it appears that your build agent On_Premises_Windows
doesn't meet the baseline requirements for PR Metrics. However, it is likely that we can downgrade some of these requirements. The current requirements are requirements that we knew worked, but we'd be willing to test and release PR Metrics with downgraded requirements if it still works with these lower requirements and if that would help you and others.
I'd like to understand what your requirements would be, so could you navigate to https://dev.azure.com/org/_settings/agentpools (or to the equivalent if you're using an on-premises server), replacing org with the name of your Azure DevOps organization? Select On_Premises_Windows
, then switch to the Agents tab and click on a random agent name. Within the agent page, click on the Capabilities tab. From this page, could you let me know the version listed for api-version
and for Agent.Version
?
By the way, another workaround for now would be to update your build agent to meet those minimum requirements. But this is going to be a more involved solution and we're happy to lessen the requirements from our side if possible.
from pr-metrics.
Hi
The Agent. Version is 2.183.1, and I wasn't able to find the api-version in the capabilities tab. Could you please help us to resolve this issues asap? Can you please see the attached screenshot?
from pr-metrics.
Thanks for the additional information @Jefinreji19. That very much helps us to narrow down the problem you're seeing.
I'm not 100% sure what API version you have, or what we can reasonably target while still ensuring we don't accidentally break some functionality. However, I believe it should be safe to downgrade from API v6.0 to v4.1. And from looking at the build matrix, it looks like this will cover the vast majority of Azure DevOps versions – Team Foundation Server 2018 U2+ including all versions of Azure DevOps. You can find some information in the API/Software version matrix at https://docs.microsoft.com/azure/devops/integrate/concepts/rest-api-versioning?view=azure-devops although this just focuses on the major (and not the minor) revisions.
As such, I've created a new PR (linked) to make this downgrade. If you have a way to test this locally, e.g. using the instructions at https://github.com/microsoft/OMEX-Azure-DevOps-Extensions/tree/main/PipelinesTasks/PRMetricsV1#deploying, I'd encourage you to try it out and let me know how you get on. Either way, I'll try to get this merged and pushed out to the Marketplace as soon as reasonably possible.
If it doesn't work for you (or you don't believe it will be possible to get it working on your agents), perhaps you can clarify the Azure DevOps version you're using (assuming you're using the on premises and not the cloud version) and I'll see what else we can do.
from pr-metrics.
@Jefinreji19: I've pushed out v1.0.4 of PR Metrics to the Azure DevOps Marketplace. Your pipeline should be automatically updated to that version. Hope this resolves the issue for you. Keep me posted.
from pr-metrics.
I have Rerun the Pipeline again and I'm getting the following error message:- ##[error]No agent found in pool On_Premises_Windows which satisfies the specified demands: api-version/4.1, Agent.Version -gtVersion 2.159.2
Can you please check and let me know.
from pr-metrics.
@Jefinreji19 I see you've pulled down the update, as the version requirements specified in your message are the ones from the new version. But it obviously still isn't working for you. Could you tell me which version of Azure DevOps you're using? Every version I've tried it on is working for me, so I need information to narrow down what your environment looks like. Thanks.
from pr-metrics.
Related Issues (20)
- TypeError – stack: "TypeError: Cannot read property 'length' of null HOT 2
- Azure Devops token error HOT 7
- Files are wrongfully counted as test files HOT 1
- The message for a pull request that is too large shows the wrong number HOT 3
- Allow for the large pull request message to be optional HOT 1
- Allow selecting the compare branch HOT 10
- TODO: Remove System.AccessToken support after a transition period has elapsed
- Request line change info from Azure DevOps and GitHub HOT 2
- Request for ignoring white spaces while computing diff count. HOT 4
- Could not access sufficient Git history HOT 5
- Request: Make PR comment table horizontal vs vertical HOT 1
- Can't get PR Metrics to work on Azure Devops Server (not cloud) HOT 10
- Cannot read property 'forEach' of null - Azure DevOps error HOT 2
- Option to skip PR title changes HOT 4
- file-matching-patterns only respects first match pattern HOT 2
- Show dashes (-) instead of 0 in the table HOT 1
- Workflow completes with success despite expired token HOT 2
- Task input to configure how metrics count "Test" code HOT 4
- Secret PAT Token does not work on Azure DevOps OnPremise HOT 5
- PR validation time HOT 2
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 pr-metrics.