Giter Site home page Giter Site logo

Comments (6)

wvanbergen avatar wvanbergen commented on June 28, 2024

How are JUnitXML files generated in your stack?

from ci-queue.

cfournie avatar cfournie commented on June 28, 2024

py.test creates it for us after it's finished running our tests (which we call in our test runner).

from ci-queue.

wvanbergen avatar wvanbergen commented on June 28, 2024

In Ruby's MiniTest, we had to override some behaviour so it treats requeued/retried tests as "skipped" to make all the tooling that is unaware of retries work out of the box. My python knowledge and skills are not enough to know whether that is feasible in your case. What do you think?

from ci-queue.

cfournie avatar cfournie commented on June 28, 2024

We mark as skipped and requeue:

# Only attempt to requeue if the test failed.
# The method will return `False` if the test couldn't be requeued
if test_failed and self.queue.requeue(test_name):
outcomes.mark_as_skipped(call, item, self.terminalreporter.stats, "WILL_RETRY")
self.terminalwriter.write(' WILL_RETRY ', green=True)

But I guess not well enough because py.test is still writing out a failure :|

from ci-queue.

solackerman avatar solackerman commented on June 28, 2024

We modify the stats to look like the test never happened, but we don't remove the test itself.

def clear_out_stats(key):
if key in stats:
stats[key] = [i for i in stats[key] if i.nodeid != item.nodeid]
if not stats[key]:
del stats[key]

from ci-queue.

jules2689 avatar jules2689 commented on June 28, 2024

I think we need to override py tests' Junit then. JUnit output will be very important to CIs and to additional user experience. We're currently writing a command that will pull junit artifacts to run failed tests locally, for example. So I think it's in our best interest to invest some time into making this better in python-land.

@sabidib might be interested in this as I was talking to him about JUnit being required for this.

from ci-queue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.