Skip to content

Cross-repo link checking not working as expected #581

@colleenmcginnis

Description

@colleenmcginnis

Describe the bug

We've seen a couple instances of cross-repo link checking not working as expected.

Example 1: Missing ID

Example 2: Missing file

  • Before https://github.com/elastic/asciidocalypse/pull/116 was merged, the first page of the integration docs was located at integration-docs/docs/reference/ingestion-tools/index.md in the elastic/asciidocalypse repo.
  • In elastic/docs-content, there were two cross-repo links (one, two) to this file.
  • In https://github.com/elastic/asciidocalypse/pull/116, the file was renamed from integration-docs/docs/reference/ingestion-tools/index.md to integration-docs/docs/reference/ingestion-tools/integrations/index.md, but the build succeeded.
  • Even though the check passed, I anticipated this would cause a failure in docs-content the next time a preview build started so I added a redirect.
  • I think this prevented errors in docs-content.

Expected behavior

The build should have failed in the two examples above.

Steps to reproduce

  1. Find a cross-repo link.
  2. Go to the repo that contains the file you're linking to.
  3. Delete that file.
  4. Open a PR with that change.
  5. The check will pass even though the link will be broken after the PR is merged.

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions