-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Native support for Azure Devops parallelization #3657
Comments
Discussion on this also here: cypress-io/cypress-documentation#922 cc @bahmutov |
@markgoho can I ask what is NOT working for you? We are extracting the variables from team foundation variables, so the dashboard should be able to show the commit information.
The reason we looked at Azure Devops and only created a basic example is that Azure DevOps does NOT provide caching of installed dependencies, making |
hey @bahmutov thanks for the quick response! The dashboard is reading the e2e tests just fine. I'm primarily interested in seeing parallelization supported natively like the 10 or so other CI environments. Dependency re-installs are a little painful (2.5 min or so on their hosted ubuntu agent) but does that have an impact on running the spec files in parallel on your system? |
ok, for Azure Devops, the builds are not linked by an environment right away? which variable would you pass with The dependencies install / lack of Docker support is painful but does not affect the test run itself. But especially for parallel mode, if you spend 3 minutes to install NPM dependencies to spend 30 seconds to run tests ... that is super painful, especially compared to other CIs |
We'd probably pass the build number, which is like I'm not 100% how the parallelization is determined, but let's say I had 10 spec files and 5 machines available. Your service spins up those other machines, installs dependencies and runs, say, 2 spec files per machine. So the question is: do the parallelized tests (with the extra dependency installation) take less time to run than running them in sequence but with just 1 dependency installation? Yeah, wtf Azure Devops? I know they have a proposal for caching but it's probably weeks to months away. I think this is probably all academic until they get their caching strategy in place. For now it's kind of pointless to do parallelization with Azure. |
I have finally created a nice parallel example on Azure CI pipelines, here is the config file https://github.com/cypress-io/cypress-example-kitchensink/blob/master/azure-ci.yml Builds https://cypress-io.visualstudio.com/cypress-example-kitchensink/_build/results To parallelize I have used the variable
Currently in https://dashboard.cypress.io/#/projects/4b7344/runs/5210/specs it is |
Related: in build https://cypress-io.visualstudio.com/cypress-example-kitchensink/_build/results?buildId=197 I have printed all environment variables
|
Released in |
Current behavior:
Supports "out of the box" parallelization for most popular CI environments.
Desired behavior:
Support Azure Devops
Cf. https://docs.cypress.io/guides/guides/parallelization.html#Linking-CI-machines-for-parallelization-or-grouping
https://github.com/cypress-io/cypress/blob/master/packages/server/lib/util/ci_provider.js
We need Azure Devops to be supported here.
Note: Azure Devops is the new name for Visual Studio Team Services (VSTS) which was previously called Visual Studio Online and Team Foundation Services. There has been some work done to support this throughout Cypress, but as far as I can tell, nothing in the parallelization links listed above.
Might be helpful: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases?view=azure-devops&tabs=designer#multi-configuration
The text was updated successfully, but these errors were encountered: