Skip to content

Use manifest.json/image-info.json to determine which tests to run. #5337

Description

@lbussell

Describe the Problem

Maintaining TestData.cs causes merge conflicts during servicing and allows for human error. Most of this data is already duplicated in some way by the manifest.json file. We should consider using that file to drive our tests.

Describe the Solution

There is already a model for the manifest in the ImageBuilder tool. We could either duplicate that model, create a simpler model in this repo just for reading the manifest, or factor out the model from ImageBuilder and publish it as a package.

Including a model to read the manifest file in this repo would also help with #4704.

Additional Context

  • Should still allow for disabling specific image tests for certain cases.

Activity

  1. lbussell commented on Apr 11, 2024

    @lbussell
    MemberAuthor

    [Triage]

    1. We discussed generating the TestData in the Test project, but decided against it since it might be easy to miss special cases that exist in the manifest if the test cases aren't explicitly enumerated.

    It would be a good idea to create a prototype of this, probably by creating a simple model in the Test project.

  2. moved this from Backlog to Current Release in .NET Dockeron Jan 27, 2025
  3. lbussell commented on Jan 27, 2025

    @lbussell
    MemberAuthor

    [Triage] If it's possible to share images between 9.0 and 10.0, then we should aim to have a solution for this issue in place before .NET 10 is released.

    We should also consider the situation of a local build without an image-info file present. If it's possible to have a solution that only relies on path filters and the manifest then that might be preferable, as opposed to reading both the manifest and the image info.

  4. changed the title [-]Use manifest.json to determine which tests to run.[/-] [+]Use manifest.json/image-info.json to determine which tests to run.[/+] on Jan 27, 2025
  5. added theissue type on Aug 25, 2025
  6. moved this from Current Release to Post Release in .NET Dockeron Aug 25, 2025
  7. moved this from Post Release to Current Release in .NET Dockeron Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    • Status
      Current Release

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions