swiftlang/swift

[SR-1691] Run longer tests first

Open

#44.300 aberto em 6 de jun. de 2016

Ver no GitHub
 (6 comments) (0 reactions) (0 assignees)Swift (10.719 forks)batch import
good first issuepythontest suite

Métricas do repositório

Stars
 (69.989 stars)
Métricas de merge de PR
 (Mesclagem média 8d 17h) (510 fundiu PRs em 30d)

Description

Previous ID SR-1691
Radar None
Original Reporter @gribozavr
Type New Feature
Votes 0
Component/s Project Infrastructure
Labels New Feature, Python, StarterBug
Assignee None
Priority Medium

md5: d2501feeca870b45e5e159e000fd4619

Issue Description:

In the Swift testsuite there many short tests and a few long tests. Sometimes the longer tests happen to be scheduled last, creating a "long tail" and keeping just a few cores busy. It would be better to start the longer tests first, and then run the short tests. This can shave off 1..2 minutes from testing time.

The suggested solution is to add a new feature to lit, that would allow to attach arbitrary labels to tests. lit could embed definition of special label type, or test suite could have extra code to take specific label names and then attach more semantic attributes to test.

// RUN: some-long-test
// LABEL: run_first

We could also migrate the limit_to_features feature to use labels, it would be a much better fit.

Guia do colaborador