Skip to content

Tests to validate floating tags #2316

Closed as not planned
Closed as not planned

Description

@mthalman

An issue was recently identified where the latest tag was not being set correctly (#2307). We should consider having tests which validate floating tags in general are set correctly as a safeguard against a misconfigured manifest file.

Activity

  1. moved this to Backlog in .NET Dockeron Dec 1, 2021
  2. moved this from Backlog to Needs Review in .NET Dockeron Dec 19, 2022
  3. moved this from Needs Review to Backlog in .NET Dockeron Apr 19, 2023
  4. moved this from Backlog to Current Release in .NET Dockeron Mar 28, 2024
  5. lbussell commented on Mar 28, 2024

    @lbussell
    Member

    This occurred again in #5311.

  6. ellahathaway commented on Aug 20, 2024

    @ellahathaway
    Member

    Below, I've compiled a list of "rules" that I think the floating tags should be validated against. I compiled these based off of the rules in https://github.com/dotnet/dotnet-docker/blob/main/.github/ISSUE_TEMPLATE/releases/dotnet-release-lifecycle.md and by looking at the READMEs for each repo.

    • .NET Alpha version
      • Add -preview (Alpha 10 -> 10.0-preview)
      • Latest tag stays on N-1 .NET version
    • .NET Preview version
      • Add -preview
      • Latest tag stays on N-1 .NET version
    • .NET RC version
      • Remove -preview (RC of 9 -> 9.0-preview becomes 9.0)
      • Latest tag stays on N-1 .NET version
    • .NET GA version
      • Move latest tags to newest version (GA of 9 -> move latest from 8.0 to 9.0)
    • .NET EOL version
      • No entries in the manifest
    • .NET Servicing version
      • Latest tags on the latest version (Servicing of 8 and 6.0 -> latest tag on 8.0)
        • Unless there's a GA release, in which case latest tag should be on GA version
    • OS version
      • If two-part version number (e.g. alpine3.19 and alpine3.20), general tag (e.g. alpine) should point to latest version (e.g. alpine tag points to alpine3.20)

    Below, is an implementation for the validation that I'm considering:

    • Add the test to prebuildvalidation in dotnet-docker pipeline
    • Use "file of truth"
      • This file would get updated as part of the release checklist
      • This file should be updated before the floating tag validation check gets run
      • Lists current version for each .NET major version, any EOL versions, and current versions of two-part version number OSs
    • Based on "file of truth", parse and validate tags in the manifest based on the rules above
  7. moved this from Current Release to In Progress in .NET Dockeron Aug 22, 2024
  8. ellahathaway commented on Aug 27, 2024

    @ellahathaway
    Member

    Closing in favor of #5841

  9. moved this from In Progress to Done in .NET Dockeron Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions