Commit Graph

6323 Commits

Author SHA1 Message Date
jonathanmetzman 71a9130e3e
[Ubuntu upgrade] Copy files from base-builder/ to base-builder-new/ (#6322)
Two of these changes that are important for the Ubuntu upgrade are
the changes to "compile" and write_labels.py"
2021-08-26 14:17:55 -07:00
Caolán McNamara 00af9cfba1
libreoffice: default Ubuntu 20.04 gperf is new enough to use (#6321) 2021-08-26 13:16:40 -07:00
DavidKorczynski 5fa56976f4
apache-httpd: fix patch for hitting assert. (#6320) 2021-08-26 20:03:14 +00:00
DavidKorczynski 1fdbe5ebf7
libigl: fix build. (#6319) 2021-08-26 19:20:31 +00:00
Nikita Mikhaylov 4d63aa0efa
Updated a list of maintainers and enable all the sanitizers (#6299)
* first

* Update project.yaml

* Enable all sanitizers

* Enable coverage with sanitizers

* Update project.yaml

* Update build.sh
2021-08-26 20:20:04 +01:00
Catena cyber d5bc81af43
Fix gnupg patch (#6316)
* Fix gnupg patch

* Moved from xenial to focal
2021-08-26 19:17:18 +00:00
jonathanmetzman 8d90359bd9
[cifuzz] Fix bug caused by Ubuntu upgrade. (#6318)
* [cifuzz] Fix bug caused by Ubuntu upgrade.
systemd-detect-virt isn't being found.

* fix
2021-08-26 11:22:24 -07:00
Caolán McNamara 9d19fe950a
libreoffice: update builds deps (#6315) 2021-08-26 10:02:48 -07:00
jonathanmetzman b30e4f4727
[cifuzz] Handle upgrade to Ubuntu 20.04 (#6249)
Handle upgrade to Ubuntu 20.04

1. Don't do any special handling for MSAN anymore. It isn't needed.
2. Don't do any special handling for msan-libs-builder it doesn't
exist anymore.

Related: https://github.com/google/oss-fuzz/issues/6180
2021-08-26 10:02:19 -07:00
jonathanmetzman 03d18372d5
Reland [Ubuntu upgrade] Fix projects so they don't break with upgrade (#6313)
This reverts commit 878c32419c.

Related: #6180
2021-08-26 09:53:49 -07:00
jonathanmetzman 7ca003732d
[Ubuntu upgrade] Upgrade images to Ubuntu 20.04 (#6305)
Related: #6180.
2021-08-26 09:53:40 -07:00
Bhargava Shastry b3630abd46
Solidity: Upgrade evmone from 0.4.0 to v0.8.2 (#6207) 2021-08-26 12:17:39 -04:00
jonathanmetzman 6fc72b3a17
[Ubuntu upgrade][infra] Remove deploy for msan-build (#6314)
Related: #6180
2021-08-26 08:38:52 -07:00
Catena cyber 9cf30622eb
Do not use ld for coverage for thrift (#6310) 2021-08-26 14:56:08 +01:00
Catena cyber 8bb97d4a89
Do not let freeradius reset CFLAGS (#6311)
so as to get coverage
2021-08-26 14:55:38 +01:00
Catena cyber 72aec4861a
Specify cargo build target for ecc-diff-fuzzer (#6308)
cf https://github.com/google/oss-fuzz/issues/3469#issuecomment-630854977
2021-08-26 11:29:49 +01:00
Oliver Chang 878c32419c
Revert "[Ubuntu upgrade] Fix projects so they don't break with upgrade. (#6304)" (#6306)
This reverts commit 5549d804b3.
2021-08-26 15:42:34 +10:00
jonathanmetzman 5549d804b3
[Ubuntu upgrade] Fix projects so they don't break with upgrade. (#6304)
Fix projects so they don't break with upgrade.
These fixes are likely not backwards compatible and will fail on
Ubuntu 16.04.
Related: #6180
2021-08-25 22:14:52 -07:00
jonathanmetzman 390c200c1e
[Ubuntu upgrade] Disable MSAN in projects that will have false positives. (#6303)
Do this based mostly on instrumented_libraries and more tests.

Related: #6180
2021-08-25 22:14:20 -07:00
jonathanmetzman 370fb73473
[build][infra] Improve build functions. (#6296)
Important functional changes involve mostly improvements to
the command line scripts (this doesn't affect the build infra, only
local use):

1. Make sure scripts use the same builder as builds requested by infra, otherwise builds
will be very slow and will fail for larger projects.
2. Allow users to specify --test-images to use base images with suffix "-testing"
3. Allow script users to specify --parallel for parallel builds.
4. Allow script users to specify --testing so that builds are uploaded to testing buckets.
5. Allow script users to specify --branch so that builds use specified branch instead of master.
6. Clone oss-fuzz with depth 1 for improved speed and space usage.
7. Use logging instead of writing to stderr or print.
8. Allow scripts to accept multiple projects.
9. Allow script to keep executing after failure to get build steps.
10. Change scripts to use python3.
11. Tag more so builds are easier to query.
12. Log the gcb page for each build.

Other changes include major refactoring:

1. Don't construct image names from scratch using format strings each time they are used.
Provide a helper function for this.
2. Provide a helper function,  get_env instead of constructing the env from scratch each time.
3. Move compile step into its own function: get_compile_step.
4. Move upload steps into their own helper function get_upload_steps.
5. Don't misuse the name image_project when we really mean cloud project.
6. Move cleanup step into its own helper function: get_cleanup_step.
7. Exit with returncode of main function from build_project.
8. Add unittests for build_project.
9. Make request_build share run_build code with build_project.
10. Use proper spacing in comments.
11. Test builds other than libfuzzer-ASAN-x86_64. Test other sanitizers, fuzzers and architectures
12. Make build_and_run_coverage share more code with build_project.
13. Move tests for build_and_run_coverage_test.py out of requst_coverage_test.py into their own file.
14. Use single quotes for strings.
15. Store state for a build in Build object instead of passing it everywhere.
16. Don't abuse project_yaml dict for storing project state. Use a Project object instead.
17. Better variable naming.
18. Use more classes instead of passing around arguments.
19. Use more f-strings.
20. Make scripts share main function.
21. Begin comments with uppercase and end with period.
22. Don't import functions or classes as dictated by style guide.
23. Share more test code in test_utils

Related: #6180.
2021-08-25 11:44:52 -07:00
jonathanmetzman 0378a92819
[Ubuntu upgrade] Pin projects that fail on coverage (#6300)
Some of these seem to timeout, unclear if this is a fluke.
Can upgrade these later.

Related #6180
2021-08-25 09:13:32 -07:00
jonathanmetzman 3a4e6e4484
[Ubuntu upgrade] Remove support for prebuilt MSAN libraries. (#6280)
This is done in anticipation of the upgrade to Ubuntu 20.04 which wont support this.
We'll do this first so we can handle any breakages caused by this step before needing to handle breakages
caused by the upgrade. However, there shouldn't be any breakages due to #6281, but there may be some projects
we overlooked.
The only exception to this is libcxx.
Related: #6180.
2021-08-25 15:36:05 +00:00
jonathanmetzman ffe20d3857
[Ubuntu upgrade][NFC] Improve message for swift projects. (#6292)
Related: #6180.
2021-08-24 15:25:34 -07:00
jonathanmetzman 806d1a0620
[Ubuntu upgrade] Disable MSAN where it doesn't support on Ubuntu 20.04 (#6281)
These projects were tested and it was found that their use
of MSAN does not work on Ubuntu 20.04. Therefore their use of
MSAN is being disabled.

Related: #6180
2021-08-24 15:24:47 -07:00
jonathanmetzman bf1275f005
[Ubuntu upgrade] Pin projects to Xenial where fuzzer build fails. (#6293)
This does not include coverage build failures.
Related: #6180.
2021-08-24 15:24:25 -07:00
Evan Miller ae42b1fd00
mdbtools: Disable silent rules when configuring (#6295) 2021-08-24 13:22:20 -07:00
jonathanmetzman 28bb6a3bd1
[Ubuntu upgrade][infra] Fix issue with write_labels.py (#6290)
/usr/bin/python3 doesn't exist and isn't pythonic. Change shebang
to "/usr/bin/env python3"

Related: #6180
2021-08-24 17:57:01 +00:00
jonathanmetzman b678e07170
[Ubuntu upgade][lldb-eval] Install python to partially fix build (#6289)
There are still other issues preventing lldb-eval from building.
Related: #6180
2021-08-24 10:08:09 -07:00
Nikita Mikhaylov 86acdb4560
Enable ClickHouse (#6255)
* done

* Fix build

* Fix build

* Fix build

* fix build

* Fix build

* Disable undefined sanitizer
2021-08-24 15:53:55 +01:00
DavidKorczynski dbf359cf9f
apache-httpd: add preq parser fuzzer. (#6287)
* apache-httpd: preq parser fuzzer.

* apache-httpd: fix styling.
2021-08-24 14:27:56 +00:00
DavidKorczynski e70a8c42a4
docs: remove minijail doc. (#6285) 2021-08-24 07:14:37 -07:00
DavidKorczynski cc9e3fa64c
apache-httpd: add request fuzzer. (#6282) 2021-08-23 20:05:34 +00:00
jonathanmetzman 59c3cc0664
[Ubuntu upgrade][rnp] Make build work on Ubuntu 20.04. (#6278)
Copy all versions of the libjson shared object and install python
instead of python-minimal.

Related #6180.
2021-08-23 17:11:11 +00:00
jonathanmetzman e4dc604c59
[Ubuntu upgrade][glib] Make build work after 20.04 upgrade. (#6275)
Related: #6180.
2021-08-23 16:56:47 +00:00
jonathanmetzman 422ffb1792
[Ubuntu upgrade][myanmar-tools] Explicitly link against libunwind. (#6277)
This prevent build from breaking when builder is upgraded to
Ubuntu 20.04.

Related: #6180.
2021-08-23 16:54:19 +00:00
jonathanmetzman e0b87b477f
[Ubuntu upgrade][libspectre] Disable dataflow builds. (#6274)
They aren't really supported anymore and they break in
Ubuntu 20.04.
Related: #6180.
2021-08-23 16:51:42 +00:00
jonathanmetzman dfbb678c93
[Ubuntu Upgrade] Raise threshold MSAN calls in for bad build check. (#6272)
Raise the threshold as honggfuzz builds in focal seem to have more
calls.
Related: #6180.
2021-08-23 16:48:38 +00:00
jonathanmetzman 1ae1df8e35
[Ubuntu upgrade][cairo] Install libtool and autotools-dev (#6273)
Do this explicitly to prevent breakage when builder is upgraded
to Ubuntu 20.04.

Related: #6180
2021-08-23 09:48:09 -07:00
asraa 9de43be271
add swift (#6270)
Signed-off-by: Asra Ali <asraa@google.com>
2021-08-23 16:47:54 +00:00
Jonathan Metzman bcfac67d6d [Ubuntu Upgrade] Pin swift projects to specific image.
This will prevent the builds from breaking when we do the upgrade.
Some of the issues I encountered were:
1. Installing no longer existing packages libstdc++-5-dev
2. Patch failing when I upgraded swift version (I think old version
doesn't work on focal).

Related: https://github.com/google/oss-fuzz/issues/6180

Right now this change is an NFC because base-builder-swift isn't
even being updated at the moment (see #6269)
2021-08-23 09:01:57 -07:00
Robert Löhning b2f8091f62
[qt] Use own README as help_url (#6267)
It includes a link to the default page so no information will be lost.
2021-08-23 11:56:38 +00:00
Caolán McNamara 8851460f3d
libreoffice: enable msan experimentally (#6266) 2021-08-22 20:17:32 -07:00
jonathanmetzman a3f8ac1403
Fix coverage command and misc fixes (#6262) 2021-08-23 10:18:11 +10:00
apascovici 1c24bea3eb
Update with actual repository (#6265)
The old repository is not there anymore (or not publically accessible)
2021-08-22 20:20:32 +01:00
John Stiles ea4d271dcb
Enable SK_DEBUG when fuzzing SkSL. (#6263)
* Enable assertions for SkSL testing.

* Enable assertions for SkSL testing.
2021-08-21 07:41:23 +00:00
jonathanmetzman 447a717de5
[Ubuntu upgrade] Install python in projects that need it: oak, cel-cpp (#6261)
When base-builder upgrades to 20.04, python wont be in and
base-builder these projects will fail unless they install it.
Until then, this change should be a noop.

Related: #6180
2021-08-20 09:08:43 -07:00
DavidKorczynski 111e379157
clib: fix build and avoid detecting leaks (#6260) 2021-08-20 16:16:50 +01:00
DavidKorczynski c1b71d9304
libusb: fix build and fuzzer. (#6259) 2021-08-20 15:49:49 +01:00
DavidKorczynski 628264df27
hyperium: fix build. (#6257) 2021-08-20 11:59:45 +00:00
DavidKorczynski 7cb51f8a0a
linkerd2-proxy: fix build. (#6254) 2021-08-20 10:40:07 +00:00