facebook / facebook/buck2

Full rebuild after killing daemon

Open
#547 8 comments 4 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.4k
Forks
394
PR merge metrics
No merged PRs in 30d

Description

If I do `buck2 build //...` then `buck2 kill` then `buck2 build //...` it does a full rebuild every single time. I have the following in my buckconfig.

```
[buck2]
materializations = deferred
sqlite_materializer_state = true
defer_write_actions = true
hash_all_commands = true
restarter = true
```

This seems like a bug, wondering if this is expected behavior.

Contributor guide

Open the contributing guide

Research direction

Reproduce the sequence `buck2 build //...`, `buck2 kill`, and `buck2 build //...` with the listed buckconfig settings, comparing whether the second build is a full rebuild. Trace the daemon shutdown and materializer state handling, then verify that artifacts are reused after `buck2 kill`, or establish and document that the behavior is expected.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.