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

Add build support for FlakyAttribute #15003

Closed
analogrelay opened this issue Mar 12, 2019 · 4 comments
Closed

Add build support for FlakyAttribute #15003

analogrelay opened this issue Mar 12, 2019 · 4 comments
Assignees
Labels
area-test closed-out-of-scope This is not something that will be fixed/implemented and the issue is closed.

Comments

@analogrelay
Copy link
Contributor

I'm filing this to track adding support for FlakyAttribute to the aspnet/EntityFramework build scripts.

The attribute allows you to sequester a test by marking it as "Flaky". That test will no longer be run during the normal run but will be run during a separate second test pass. The results of the second test pass will not affect the build outcome, but the test results will be published and recorded.

What's involved (see dotnet/extensions#1239)

  • Add a script to run flaky tests eng/scripts/ci-flaky-tests.cmd/.sh
  • Add some MSBuild goop to skip flaky tests on normal runs but run it when ci-flaky-tests is run
  • Add logic to run ci-flaky-tests after the main build in Azure Pipelines (AzP)
  • Add logic to publish test results from flaky tests to AzP so they still show up in the Tests pane in the AzP build summary.

Happy to do the work, but wanted an issue tracking it here and wanted to bring it to the attention of the team to confirm you want it :).

@analogrelay analogrelay self-assigned this Mar 12, 2019
@smitpatel
Copy link
Member

Do we have flaky tests?

@analogrelay
Copy link
Contributor Author

That's part of the reason I'm not just going ahead and adding the support :). Having said that, if I add the support and you never use the attribute, the impact is minimal but you can apply the attribute as soon as you find a flaky test you want to sequester in this way. If we don't do the work now, that's fine, but we have to do that work whenever you do decide you want to separate out a flaky test.

cc @ajcvickers

@ajcvickers
Copy link
Member

@smitpatel We do have a lot of test failures, but of the ones that aren't infra related, the rest seem to be flakey SQL Server. Current best plan to help with that is to run SQL Server on a different box. Other types of bad tests we're petty good at fixing straight away.

Let's discuss in triage.

@analogrelay
Copy link
Contributor Author

Just give me a ping if you want the Flaky test infrastructure in your repo :).

@ajcvickers ajcvickers added this to the Backlog milestone Mar 15, 2019
@ajcvickers ajcvickers removed this from the Backlog milestone Sep 4, 2019
@ajcvickers ajcvickers added the closed-out-of-scope This is not something that will be fixed/implemented and the issue is closed. label Mar 10, 2022
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-test closed-out-of-scope This is not something that will be fixed/implemented and the issue is closed.
Projects
None yet
Development

No branches or pull requests

3 participants