Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove stale extension entries from lockfile #19658

Closed
wants to merge 1 commit into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Sep 28, 2023

When changes to module files result in module resolution rerunning, extension results from the lockfile may become stale due to changed usages even if the current build doesn't evaluate the affected extension.

We now compare the current usages against the usages recorded in the lockfile and drop all extensions that became stale.

Along the way, also trim tag locations when comparing usages for staleness detections as they do not affect the evaluation result.

When changes to module files result in module resolution rerunning,
extension results from the lockfile may become stale due to changed
usages even if the current build doesn't evaluate the affected
extension.

We now compare the current usages against the usages recorded in the
lockfile and drop all extensions that became stale.

Along the way, also trim tag locations when comparing usages for
staleness detections as they do not affect the evaluation result.
@fmeum fmeum requested a review from SalmaSamy September 28, 2023 09:52
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. labels Sep 28, 2023
@fmeum
Copy link
Collaborator Author

fmeum commented Sep 28, 2023

@bazel-io flag

@bazel-io bazel-io added the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Sep 28, 2023
@meteorcloudy meteorcloudy added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Sep 28, 2023
@keertk
Copy link
Member

keertk commented Sep 28, 2023

@bazel-io fork 6.4.0

@bazel-io bazel-io removed the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Sep 28, 2023
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Sep 29, 2023
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Sep 29, 2023
When changes to module files result in module resolution rerunning, extension results from the lockfile may become stale due to changed usages even if the current build doesn't evaluate the affected extension.

We now compare the current usages against the usages recorded in the lockfile and drop all extensions that became stale.

Along the way, also trim tag locations when comparing usages for staleness detections as they do not affect the evaluation result.

Closes bazelbuild#19658.

PiperOrigin-RevId: 569612685
Change-Id: I8e9e30c37076ef2cbfa6e0498b9e003a078e4c67
@fmeum fmeum deleted the keep-extensions branch October 1, 2023 11:25
iancha1992 pushed a commit that referenced this pull request Oct 2, 2023
When changes to module files result in module resolution rerunning,
extension results from the lockfile may become stale due to changed
usages even if the current build doesn't evaluate the affected
extension.

We now compare the current usages against the usages recorded in the
lockfile and drop all extensions that became stale.

Along the way, also trim tag locations when comparing usages for
staleness detections as they do not affect the evaluation result.

Closes #19658.

Commit
9bf8f39

PiperOrigin-RevId: 569612685
Change-Id: I8e9e30c37076ef2cbfa6e0498b9e003a078e4c67

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
@iancha1992
Copy link
Member

The changes in this PR have been included in Bazel 6.4.0 RC2. Please test out the release candidate and report any issues as soon as possible. If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=last_rc.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants