Commit Graph

5 Commits

Author SHA1 Message Date
Teju Nareddy 3e90a4ab3f
[espv2] Fix build failures due to OOM (#4569)
* [espv2] Fix build failures due to OOM

ESPv2 builds have been failing with OOM since we updated our envoy dependency.

Signed-off-by: Teju Nareddy <nareddyt@google.com>

* Fix ubsan and coverage builds

Only use `--copt -D__SANITIZE_ADDRESS__` for `address` builds

Signed-off-by: Teju Nareddy <nareddyt@google.com>

* Remove another copt

Signed-off-by: Teju Nareddy <nareddyt@google.com>

* Fix spawn strategy, unsure why it causes build failure

Signed-off-by: Teju Nareddy <nareddyt@google.com>
2020-10-29 07:50:50 -07:00
Teju Nareddy f8c7f158f7
[ESPv2] Attempt to fix coverage build (#4062)
Currently, coverage builds fail on step 3 with:
```
Step #3: + rsync -avLkR --include '*.h' --include '*.cc' --include '*.hpp' --include '*.cpp' --include '*.c' --include '*/' --exclude '*' /tmp /workspace/out/coverage
Step #3: sending incremental file list
Step #3: symlink has no referent: "/tmp/tmp.BOH6TAB62E/ares/include/ares_build.h"
Step #3: symlink has no referent: "/tmp/tmp.BOH6TAB62E/ares/include/ares_dns.h"
Step #3: symlink has no referent: "/tmp/tmp.BOH6TAB62E/ares/include/ares.h"
Step #3: symlink has no referent: "/tmp/tmp.BOH6TAB62E/ares/include/ares_rules.h"
Step #3: symlink has no referent: "/tmp/tmp.BOH6TAB62E/ares/include/ares_version.h"
Step #3: symlink has no referent: "/tmp/tmp.BOH6TAB62E/include/sha1.c"
Step #3: symlink has no referent: "/tmp/tmp.BOH6TAB62E/include/gcm_nohw.c"
Step #3: symlink has no referent: "/tmp/tmp.BOH6TAB62E/include/digests.c"
...
```

Just exclude these files. Doubt they matter to us.

Ref: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23621&q=esp-v2&can=2
Signed-off-by: Teju Nareddy <nareddyt@google.com>
2020-07-01 16:56:39 -07:00
Teju Nareddy f1c65bccf2
[esp-v2]: Fix broken builds by changing spawn strategy (#3485)
[Example failure](https://oss-fuzz-build-logs.storage.googleapis.com/log-8eabbac0-bb8f-4f90-a840-f23efe427e0e.txt)

This only occurs on the fuzzers for some reason, not on Travis CI. Error is similar to https://github.com/bazelbuild/bazel/issues/5640.

Change spawn strategy to `sandboxed` to work around this. Not sure why it was `local` to begin with (other than a slight performance improvement).

Tested locally to ensure this spawn strategy will work.

```
python infra/helper.py build_fuzzers --sanitizer address --engine libfuzzer --architecture x86_64 esp-v2
```

Signed-off-by: Teju Nareddy <nareddyt@google.com>
2020-03-09 16:47:57 -07:00
Abhishek Arya d444fc7c08
Fix ESPv2 build (#3461)
* Fix ESPv2 build

Don't assume correlation between file name and bazel target name.

Signed-off-by: Teju Nareddy <nareddyt@google.com>

* Fix some bash errors with splitting

Signed-off-by: Teju Nareddy <nareddyt@google.com>

* Coverage expects a path, not target

Signed-off-by: Teju Nareddy <nareddyt@google.com>
2020-03-04 17:06:06 -08:00
Teju Nareddy 87c0ba8313
Add project: ESPv2 (#3445)
* Add project: ESPv2

Copy most configs from envoy

Signed-off-by: Teju Nareddy <nareddyt@google.com>

* Fix typo

Signed-off-by: Teju Nareddy <nareddyt@google.com>

* Remove comments

Signed-off-by: Teju Nareddy <nareddyt@google.com>

* Install all requirements

Signed-off-by: Teju Nareddy <nareddyt@google.com>

* Fix format

Signed-off-by: Teju Nareddy <nareddyt@google.com>
2020-02-28 18:33:48 -08:00