Repository navigation
tier2: rebuild objects ninja recorded with no header dependencies (#2244) - #2249
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2244
Local Tier 2 reuses a build volume per checkout. In some volumes, ninja has recorded objects with zero header dependencies. Ninja never rebuilds such an object after a header edit, so Tier 2 tests old libobs code, and the local gate can stamp that run. Of the 23
obs-rust-linux-validate-build-*volumes on this machine, two are affected (925 and 716 objects, libobs unity groups and its PCH among them); the rest have none.Guard (this PR):
rust/tools/linux-validate/drop-depless-objects.shruns invalidate.shbefore the build. It deletes every object thatninja -t depslists as#deps 0, so ninja compiles it again from the current sources. A zccache hit is keyed on those sources too, so the result can't be stale. Every C/C++ object includes at leaststdc-predef.h, so zero deps is never right. A tree without a ninja build (first run) is left alone.test: Tier 2 must rebuild objects…):ci/test_tier2_depless_objects.pyfails all 3 cases (no script, no call in validate.sh).ninjaprinting real-format-t depsoutput: zero-deps objects deleted, objects with deps kept, a clean tree untouched../lintok.…-e829c156d95d, read-only): the script's pattern matches 716 objects, all present. That's exactly the 716#deps 0count.Root cause, not found yet. In the validate image's zccache 1.15.5, none of these reproduce empty depfiles:
-MD -MF;-x c-header.gch, then-include);ninja -j32;ZCCACHE_DISABLE=1pass-through used by validate.sh's recovery build.Something rarer leaves an empty depfile, and #2244 stays open for it. This guard makes Tier 2 correct whatever the cause.