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

Supporting sparse the test parameters #10312

Merged
merged 6 commits into from
Apr 17, 2020
Merged

Conversation

sima-zhu
Copy link
Contributor

@sima-zhu sima-zhu commented Apr 16, 2020

The PR is to sparse the httpclient to matrix.
Test over four scenarios:

  1. AppConfig live tests (Has parameterized setup, but no non-critical pipeline)
  2. KeyVault live tests (Has parameterized setup, also non-critical pipeline)
  3. New KeyVault pipeline test for non-critical path: https://dev.azure.com/azure-sdk/internal/_build?definitionId=1673&_a=summary (Non-critical pipeline POC)
  4. Search live tests which does not have parameterized tests. (Backward compatibility for client without parameterized)

@sima-zhu
Copy link
Contributor Author

/azp run java - keyvault - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sima-zhu
Copy link
Contributor Author

@sima-zhu
Copy link
Contributor Author

/azp run java - search - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sima-zhu
Copy link
Contributor Author

/azp run java - keyvault - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sima-zhu
Copy link
Contributor Author

/azp run java - search- tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@sima-zhu
Copy link
Contributor Author

/azp run java - appconfiguration - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sima-zhu
Copy link
Contributor Author

/azp run java - search - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Comment on lines 624 to 625
System.out.println(httpClient);
System.out.println(serviceVersion);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
System.out.println(httpClient);
System.out.println(serviceVersion);
System.out.printf("HttpClient is %s; Service Version is %s", httpClient, serviceVersion);

@sima-zhu
Copy link
Contributor Author

/azp run java - keyvault - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sima-zhu
Copy link
Contributor Author

Right now, it is able to display the right name from Test tab.
https://dev.azure.com/azure-sdk/public/_build/results?buildId=360455&view=ms.vss-test-web.build-test-results-tab

<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version> <!-- {x-version-update;org.apache.maven.plugins:maven-surefire-plugin;external_dependency} -->
<configuration>
<rerunFailingTestsCount>3</rerunFailingTestsCount>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally we don't want to be retrying failing tests as this could mask flakiness in our clients.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, will remove.

@sima-zhu sima-zhu merged commit 36adda8 into Azure:master Apr 17, 2020
@sima-zhu sima-zhu deleted the sparse_tests branch April 17, 2020 18:29
Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks for switching to this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants