Skip to content

Potential Issues with running of tests #407

Open

Description

@AlexanderKaran

Feedback from NextJS Team:

Each framework runs in a separate matrix VM, so comparisons include between-runner variance.

Activity

  1. AlexanderKaran commented on Aug 28, 2026

    @AlexanderKaran
    CollaboratorAuthor

    Currently, we have an EC2 instance for each framework, which runs each test repetition. For example, if an install test is run five times, we run it five times on that EC2 instance.

    Depot provides consistent instance types, and tests have already proven stable, with tiny, tiny variances between runs.

    However, this could cause an issue if one instance is faulty. We could run all tests on one, but then we have to be super, super careful to clean up.

    The best solution is either to leave it as is and explain this in the methodology. As the tests get re-run a lot, or we run each test repetion on its own EC2 and randomise the order of the tests and frameworks running them.

  2. AlexanderKaran commented on Aug 28, 2026

    @AlexanderKaran
    CollaboratorAuthor

    Another option as well could be to leave tests as they are and re-run the whole set a few times and also run tests regularly on a schedule

  3. AlexanderKaran commented on Aug 29, 2026

    @AlexanderKaran
    CollaboratorAuthor

    Also now added this: #412

    Which I wonder means we don't even really need to do anything here. If we pick up a big variance between tests or a big change between a tests current and new variance in the PR which merges the stats we just run again?

  4. 43081j commented on Aug 29, 2026

    @43081j
    Contributor

    i think so. its probably fine for now and we can re-visit later if we need to.

    depot seems stable so far and we can just re-run whenever its not.

  5. AlexanderKaran commented on Aug 30, 2026

    @AlexanderKaran
    CollaboratorAuthor

    @43081j Just so we are on the same page, I won't make changes to how the tests run, but I will:

    • Publish some tables in the methodology pages that include:
      • Variance between all runs of a test
      • Variance between a full test suite

    I'll also add a section that flags whether the swing has changed too much in a PR that updates the stats, and finally ensure the tests run at least twice a week at a random time.

    Later, we can work on turning the variance into a confidence score; the lower it is, the better.

  6. rdforte commented on Aug 31, 2026

    @rdforte
    Collaborator

    I think this could potentially be a possibility so comparisons include between-runner variance but one we have yet to encounter if depot is proving to be relatively consistent and based on your #412 PR @AlexanderKaran if we do see a large variance in the results then I think its ok to rerun the tests and see if the results are consistent or it was just a funky test. If we constantly keep getting results with large variances then we can look at improving our testing approach but I don't think we are there yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions