Skip to content

Look up only the packages that dependency notifications need - #1537

Merged
ysangkok merged 1 commit into
masterfrom
narrow-dependency-notifications-master
Oct 30, 2026
Merged

ysangkok merged 1 commit into
masterfrom
narrow-dependency-notifications-master

Conversation

@ysangkok

Copy link
Copy Markdown
Member

Continuation of #1524.

The notification job fetched the whole package index to check whether an
upload was the newest version and to find the latest version of each
reverse dependency. It now reuses the uploaded packages it has already
looked up, and takes the latest version of each reverse dependency from
the reverse index, which also holds that version's dependencies.

Reading both from the same snapshot of the reverse index means a reverse
dependency that gets a new version while the job runs can no longer be
skipped for lacking dependencies in the reverse index. A deleted latest
version of a reverse dependency is still used, because the reverse index
never removes versions.

Tested locally.

The notification job fetched the whole package index to check whether an
upload was the newest version and to find the latest version of each
reverse dependency. It now reuses the uploaded packages it has already
looked up, and takes the latest version of each reverse dependency from
the reverse index, which also holds that version's dependencies.

Reading both from the same snapshot of the reverse index means a reverse
dependency that gets a new version while the job runs can no longer be
skipped for lacking dependencies in the reverse index. A deleted latest
version of a reverse dependency is still used, because the reverse index
never removes versions.
@mergify

mergify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@ysangkok
ysangkok merged commit 5a55e30 into master Oct 30, 2026
14 checks passed
@ysangkok
ysangkok deleted the narrow-dependency-notifications-master branch October 30, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant