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

Issue 607294 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

boringssl tests no longer inherit chromium test settings, so don't build

Project Member Reported by brucedaw...@chromium.org, Apr 27 2016

Issue description

crrev.com/1909363005 changed how boringssl's .gn files are created. This means that warning C4800 (int to bool conversion/performance warning) is no longer being suppressed, leading to this warning:

    third_party\boringssl\src\crypto\bytestring\bytestring_test.cc(669): warning C4800: 'int': forcing value to bool 'true' or 'false' (performance warning)

It also means that 40 boringssl_*_test.exe binaries no longer have manifests, presumably because they are no longer inheriting from the test template.

The build warning prevents full gn builds from succeeding. The missing manifests are less urgent but do need to be resolved in some way. There may be other less obvious consequences to this change.

 
Owner: davidben@chromium.org
Status: Assigned (was: Untriaged)
Yeah, the issue is I forgot to account for the no_chromium_code business in making GN build the tests. Will go sort that out.

(The boringssl_*_test.exe binaries were never inheriting from the test template. They weren't being built at all on GN. BoringSSL test setup is different from Chromium's, so those are just straight-up helper binaries. I'm in the middle of trying to get these tests to actually run regularly.)

Do we have no Windows gn try bot? I wonder why this didn't get noticed...
It is annoying that our gn CQ coverage is so light right now. That will be improved very soon.

For the manifest issue you could either ignore the problem (and I will fix it) or follow the pattern in this CL:

https://codereview.chromium.org/1925493002

Again, the manifest issue is not high priority.

I believe https://codereview.chromium.org/1917223004/ will fix the warning/error.
Er, sorry, no it won't (at least, not in a chromium build). It would fix it in a webrtc build :).

To fix it in chromium land we need either the compiler warnings to be fixed or to swap the configs used to compile the code as discussed in comment #1.

We have windows gn trybots, but they don't build 'all', so we didn't catch this. I'm working on fixing that.
Status: Started (was: Assigned)
Yeah, I already have a CL uploaded to make it so we can swap the configs. It's just waiting on review and then I'll update DEPS and BUILD.gn in src.git to use it.

https://boringssl-review.googlesource.com/#/c/7795/
Project Member

Comment 6 by bugdroid1@chromium.org, Apr 28 2016

The following revision refers to this bug:
  https://boringssl.googlesource.com/boringssl.git/+/b3be1cf97da6c0c796f0ab9aebe7232b030d32b0

commit b3be1cf97da6c0c796f0ab9aebe7232b030d32b0
Author: David Benjamin <davidben@google.com>
Date: Wed Apr 27 23:15:06 2016

Add a 'configs_exclude' option to the generated GN 'create_tests' template.

Chromium uses GN's default configs feature which makes all targets default to a
set of configs. It then expects third_party code to take one of them
(chromium_code) out and put in a different one (no_chromium_code).

Because of that, we need a way to tell the template to emit -= lines. Add a
separate option for that.

(It may be worth making us clean against the chromium_code config rather than
the no_chromium_code one, but I'll explore that separately in case making the C
code clean ends up being a rabbithole.)

BUG= chromium:607294 

Change-Id: I2aa179665ab17439cc123fc86a7af9690cd4bcd6
Reviewed-on: https://boringssl-review.googlesource.com/7795
Reviewed-by: Adam Langley <agl@google.com>

[modify] https://crrev.com/b3be1cf97da6c0c796f0ab9aebe7232b030d32b0/util/generate_build_files.py

Status: Fixed (was: Started)
This should be fixed now.

Sign in to add a comment