Skip to content

DeltaCalculator: Don't revisit a re-added file deleted after a failed build - #2098

Open
robhogan wants to merge 1 commit into
mainfrom
pr2098
Open

robhogan wants to merge 1 commit into
mainfrom
pr2098

Conversation

@robhogan

@robhogan robhogan commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Since #2007, a re-added file the graph already holds stays in the added set as well as modified. After a failed build, deleting it cancels the addition and leaves it modified:

foo deleted and re-added during build N  -> build N+1 revisits foo, fails
foo deleted                              -> every build: "Failed to get the SHA-1 for: foo"

This moves it from added to modified instead.

Changelog: Internal

Test plan:

  • New unit test, failing without this change.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 23, 2026
@robhogan
robhogan marked this pull request as ready for review October 23, 2026 19:48
… build

Since #2007, a re-added file the graph already holds stays in the added set as well as modified. After a failed build, deleting it cancels the addition and leaves it modified:

```
foo deleted and re-added during build N  -> build N+1 revisits foo, fails
foo deleted                              -> every build: "Failed to get the SHA-1 for: foo"
```

This moves it from added to modified instead.

Changelog: Internal

Test plan:
- New unit test, failing without this change.

This branch has not been deployed

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant