Skip to content

Avoid the intersphinx mapping to ourselves? #1438

Closed

Description

@jeanas

After the merge of #1396, builds started to fail with errors about undefined references, which was normal because some labels were removed that indeed had references pointing to them. (This was fixed in #1433.) The problem is that this was not caught before the merge, even though the GitHub merge queue was used to merge the PR. The merge queue is supposed to check the result of merging the PR branch into master (as opposed to just checking the PR branch).

I did some digging into this mystery and it seems to me that this was caused by this oddity in our conf.py:

intersphinx_mapping = {
    # ...
    "packaging.python.org": ("https://packaging.python.org/en/latest/", None),
    # ...
}

So... what happened is that while the PR was not merged, the references :ref:`declaring-build-dependencies` was resolved to to be an Intersphinx reference to the deployment https://packaging.python.org ! And then, after the PR got merged, the targets were removed by the deployment and the references logically became dangling.

You can see this on the PR preview of #1396:

https://python-packaging-user-guide--1396.org.readthedocs.build/en/1396/guides/modernize-setup-py-project/

image

Here I'm hovering on the first link, which points to inside the PR preview.

image

And here I hover on the second link, which points to https://packaging.python.org instead, with a tooltip indicating an external link.

I'm going to open a PR to remove that entry in the Intersphinx mapping.

Activity

  1. added a commit that references this issue on Dec 5, 2023
    0bf1014
  2. hugovk commented on Dec 5, 2023

    @hugovk
    Member

    Oh, that's tricky one! Good work tracking it down!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions