Skip to content

Don't consider external repos dirty if hardlink count changes - #29701

Closed
fmeum wants to merge 2 commits into
bazelbuild:masterfrom
fmeum:29590-mtime-refetch
Closed

Don't consider external repos dirty if hardlink count changes#29701
fmeum wants to merge 2 commits into
bazelbuild:masterfrom
fmeum:29590-mtime-refetch

Conversation

@fmeum

@fmeum fmeum commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Description

When checking external repos for external modifications, don't use ctime as it is sensitive to hardlink count changes (e.g. with --experimental_use_hermetic_linux_sandbox) and thus causes false positives.

Motivation

Fixes #29590

Build API Changes

No

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: External repos are no longer refetched whenever they contribute inputs to an action using the hermetic Linux sandbox.

@fmeum
fmeum force-pushed the 29590-mtime-refetch branch from c085db0 to 85e5776 Compare June 1, 2026 20:11
@fmeum fmeum changed the title 29590 mtime refetch Don't consider external repos dirty if hardlink count changes Jun 1, 2026
@fmeum
fmeum marked this pull request as ready for review June 1, 2026 20:13
@fmeum
fmeum requested a review from Wyverald June 1, 2026 20:13
@github-actions github-actions Bot added team-Performance Issues for Performance teams team-Core Skyframe, bazel query, BEP, options parsing, bazelrc awaiting-review PR is awaiting review from an assigned reviewer labels Jun 1, 2026
@fmeum

fmeum commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator Author

@bazel-io fork 9.2.0

@Wyverald
Wyverald requested a review from tjgq June 16, 2026 21:09
@Wyverald Wyverald 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 Jun 16, 2026
@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 Jun 18, 2026
bazel-io added a commit to bazel-io/bazel that referenced this pull request Jun 23, 2026
…bazelbuild#29701) (bazelbuild#29889)

### Description
When checking external repos for external modifications, don't use ctime
as it is sensitive to hardlink count changes (e.g. with
`--experimental_use_hermetic_linux_sandbox`) and thus causes false
positives.

### Motivation
Fixes bazelbuild#29590

### Build API Changes

No

### Checklist

- [x] I have added tests for the new use cases (if any).
- [ ] I have updated the documentation (if applicable).

### Release Notes

RELNOTES: External repos are no longer refetched whenever they
contribute inputs to an action using the hermetic Linux sandbox.

Closes bazelbuild#29701.

PiperOrigin-RevId: 934309229
Change-Id: I22aa96959047496f5b71234cd2363ca98619a903

Commit
bazelbuild@57b14c4

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Core Skyframe, bazel query, BEP, options parsing, bazelrc team-Performance Issues for Performance teams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

External repository refetches after its files are hardlinked for hermetic sandbox

2 participants