Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Issue 1766863002: [Findit] Check existence of given targets before running compile in recipe findit/chromium/compile. (Closed)

Created:
4 years, 9 months ago by stgao
Modified:
4 years, 9 months ago
Reviewers:
agable, Nico, iannucci
CC:
chanli, chromium-reviews, infra-reviews+build_chromium.org, jam, Sharu Jiang, kjellander-cc_chromium.org, lijeffrey
Base URL:
https://chromium.googlesource.com/chromium/tools/build.git@setup_local_test
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

[Findit] Check existence of given targets before running compile in recipe findit/chromium/compile. A "target" here is actually a node in ninja's build graph, eg: 1. An executable target like browser_tests 2. An object file like obj/path/to/Source.o 3. An action like build/linux:gio_loader 4. An generated header file like gen/library_loaders/libgio.h 5. and so on Because a "target" could be added or deleted by some commit in the regression range, we have to check whether it still exists before re-running compile at a different commit. Otherwise, compile will always fail. Use 'ninja -t query TARGET1 [TARGET2 ...]' to test whether "target"s exist or not: ninja exits with 0 if all the targets exist; otherwise with 1. BUG=592715, 560991 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=299206

Patch Set 1 : . #

Total comments: 10

Patch Set 2 : Address comments. #

Patch Set 3 : Update expected files. #

Patch Set 4 : Rebase. #

Messages

Total messages: 22 (15 generated)
stgao
Hi forks, would you mind helping review this CL? You may check http://crbug.com/592715 for the ...
4 years, 9 months ago (2016-03-07 23:14:40 UTC) #11
Nico
My two files lgtm https://codereview.chromium.org/1766863002/diff/80001/scripts/slave/check_target_existence.py File scripts/slave/check_target_existence.py (right): https://codereview.chromium.org/1766863002/diff/80001/scripts/slave/check_target_existence.py#newcode28 scripts/slave/check_target_existence.py:28: cmd = ['ninja', '-C', target_build_dir, ...
4 years, 9 months ago (2016-03-08 19:41:37 UTC) #13
iannucci
recipe stuff lgtm, though we should move the new script file into the module as ...
4 years, 9 months ago (2016-03-09 19:01:52 UTC) #14
stgao
Comments are addressed. https://chromiumcodereview.appspot.com/1766863002/diff/80001/scripts/slave/check_target_existence.py File scripts/slave/check_target_existence.py (right): https://chromiumcodereview.appspot.com/1766863002/diff/80001/scripts/slave/check_target_existence.py#newcode1 scripts/slave/check_target_existence.py:1: #!/usr/bin/env python On 2016/03/09 19:01:52, iannucci ...
4 years, 9 months ago (2016-03-09 20:09:12 UTC) #15
iannucci
lgtm
4 years, 9 months ago (2016-03-09 22:09:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766863002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766863002/140001
4 years, 9 months ago (2016-03-10 01:31:53 UTC) #20
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 01:35:55 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:140001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=299206

Powered by Google App Engine
This is Rietveld 408576698