ort icon indicating copy to clipboard operation
ort copied to clipboard

Retag "expensive" tests

Open sschuberth opened this issue 3 years ago • 5 comments

    > Sounds good. So with #5865 in place, can this be merged now?

Not yet. #5865 only enabled the build scans for tests to get the durations of tests. We'd still need to agree on from when on a test counts as "expensive", retag all tests accordingly, exclude expensive tags from PR runs, and set up a new job that runs expensive tests on a nighly basis. I don't have the time to work on all of this.

To get a feeling for recent test durations, see

But in order to get your fixed merged, can we either disable the test, or split it out to a separate PR? And while doing that, we could also consider to split the addition of the rather big test project from the addition of the test itself.

Originally posted by @sschuberth in https://github.com/oss-review-toolkit/ort/issues/5857#issuecomment-1259040123

sschuberth avatar Sep 27 '22 10:09 sschuberth

@oss-review-toolkit/kotlin-devs from what duration on should we regard a single test case as "expensive"? 30s? 1m? For our current test durations please see the links above.

sschuberth avatar Sep 27 '22 10:09 sschuberth

I'm not sure, the tests at he top of the list are all tests I would prefer to run on each change, I often rely on the CI tests because it's sometimes hard to know which tests might be affected by a change. Maybe we should instead look into the specific test cases and check if they can be made faster, for example by reducing the size of the test projects.

mnonnenmacher avatar Sep 27 '22 11:09 mnonnenmacher

for example by reducing the size of the test projects.

Apparently that wasn't possible for a recently added test. So how about instead removing the ExpensiveTag (as we're not using / maintaining it away) and instead introduce a NightlyTag for tests that we want to only run once a night / day (for whatever reason)?

sschuberth avatar Sep 27 '22 11:09 sschuberth

I like NightlyTag because it's more specific than ExpensiveTag.

mnonnenmacher avatar Sep 27 '22 12:09 mnonnenmacher

I like NightlyTag because it's more specific than ExpensiveTag.

Actually I think the opposite: ExpensiveTag better expresses why you'd want to run a test nighty / daily / not per PR.

sschuberth avatar Apr 26 '24 10:04 sschuberth

Closed as part of backlog grooming. Feel free to comment if you would like to contribute to this.

sschuberth avatar Jul 15 '24 08:07 sschuberth