-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Labels
Description
Describe the bug
We've seen a couple instances of cross-repo link checking not working as expected.
Example 1: Missing ID
- Before Align Observability logs docs docs-content#547 was merged, there was a
log-correlation-intro
ID in thesolutions/observability/logs/stream-application-logs.md
file in the elastic/docs-content repo. - In elastic/asciidocalypse, there was a cross-repo link to this ID.
- In Align Observability logs docs docs-content#547, the
log-correlation-intro
ID was removed, but the build succeeded.- 💡 Is this because it was checking cross-repo links to docs-content against
main
instead of the working branch?
- 💡 Is this because it was checking cross-repo links to docs-content against
- Align Observability logs docs docs-content#547 is merged.
- PRs previews in elastic/asciidocalypse start failing because there is a cross-repo link to a now non-existent ID (doesn't exist on
main
). - We fixed the error in elastic/asciidocalypse in https://github.com/elastic/asciidocalypse/pull/118.
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
tointegration-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
- Find a cross-repo link.
- Go to the repo that contains the file you're linking to.
- Delete that file.
- Open a PR with that change.
- 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