Skip to content

Validate HTTP links in the source code #78273

@jakelandis

Description

@jakelandis

The deprecation info API is used during upgrades to help users better understand the changes that are necessary before they upgrade. To help present this information each entry exposes an HTTP link for additional documentation. These HTTP links are embedded in the source code and like all remote links have the potential to be broken.

We recently switched to using shortened links which will allow us to better mitigate any broken links. However, we should also include some CI validation that these links are still good.

Ideally, with both shortened URLs and validation we could also consider opening the door to allow exceptions, deprecation logs, server logs, etc. to also embed HTTP links if it makes sense.

I assume we would need to :

  1. externalize all of the HTTP links to a resource file
  2. create a gradle task that can validate the response code and possibly an expected regex
  3. wire that check into CI.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions