New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 852454 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Flaky cast-shell buld

Project Member Reported by sadrul@chromium.org, Jun 13 2018

Issue description

The cast_shell_linux bot seems to flakily fail to build, with the following error:

...
[384/20395] CXX obj/chromecast/common/extensions_api/api/generated_schemas.o
FAILED: obj/chromecast/common/extensions_api/api/generated_schemas.o 
/b/swarming/w/ir/cache/goma/client/gomacc ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/chromecast/common/extensions_api/api/generated_schemas.o.d -DV8_DEPRECATION_WARNINGS -DDCHECK_ALWAYS_ON=1 -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DCR_CLANG_REVISION=\"334100-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=332543 -DCR_LIBCXXABI_REVISION=331450 -DCR_SYSROOT_HASH=4e7db513b0faeea8fb410f70c9909e8736f5c0ab -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -Igen -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -fdebug-prefix-map=/b/swarming/w/ir/cache/builder/src/out/Release=. -no-canonical-prefixes -m64 -march=x86-64 -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-address-of-packed-member -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang enforce-in-thirdparty-webkit -Xclang -plugin-arg-find-bad-constructs -Xclang check-enum-max-value -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=gnu++14 -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../build/linux/debian_sid_amd64-sysroot -fvisibility-inlines-hidden -c gen/chromecast/common/extensions_api/generated_schemas.cc -o obj/chromecast/common/extensions_api/api/generated_schemas.o
clang++: error: no such file or directory: 'gen/chromecast/common/extensions_api/generated_schemas.cc'
clang++: error: no input files

Examples: https://ci.chromium.org/p/chromium/builders/luci.chromium.try/cast_shell_linux/71580

I suspect some dependency to some generated content is missing.
 
Cc: achaulk@chromium.org rmrossi@chromium.org
Albert or Randy can take a look at this.
Project Member

Comment 2 by bugdroid1@chromium.org, Jun 13 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2dfa922ea82356a8ac56537225ed27234d0f6df2

commit 2dfa922ea82356a8ac56537225ed27234d0f6df2
Author: Albert Chaulk <achaulk@google.com>
Date: Wed Jun 13 22:18:15 2018

Fix flaky build caused by unintentional build variable inclusion

//extensions/common/api/schema.gni defines extensions_api_uncompiled_sources
During review, this variable was added to the common build file, but the error
only occurs for clean builds, otherwise you would get a working build with flaky
runtime behaviour

The compiler attempts to find the common subdir between
chromecast/common/extensions_api and extensions/common/api and puts
the generated file in the root

Merge-With: eureka-internal/171973
Bug: 852454
Test: Local clean build works
Change-Id: Ic18a4a94c8c52b19a33750772fe855ce486eeec8
Reviewed-on: https://chromium-review.googlesource.com/1099373
Commit-Queue: Albert Chaulk <achaulk@google.com>
Reviewed-by: Luke Halliwell <halliwell@chromium.org>
Reviewed-by: Daniel Nicoara <dnicoara@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567017}
[modify] https://crrev.com/2dfa922ea82356a8ac56537225ed27234d0f6df2/chromecast/common/extensions_api/BUILD.gn

Comment 3 by mfo...@chromium.org, Jun 13 2018

Components: -Internals>Cast Chromecast

Sign in to add a comment