Opened 7 years ago
Last modified 4 years ago
#3785 assigned task
Setup a Bot to run OSS FUZZ tests
Reported by: | robe | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | Website Management, Bots |
Component: | QA/buildbots | Version: | master |
Keywords: | Cc: |
Description
strk,
I've created a separate ticket to setup OSS Fuzz testing on our own bots. While we are at it, maybe we can figure out Even's issue with having the make run from main folder so that we can eventually test more than liblwgeom.
and address kcc's comment here:
https://github.com/google/oss-fuzz/pull/709
projects/postgis/build.sh +make -j$(nproc) -s +cd .. + +./fuzzers/build_google_oss_fuzzers.sh @kcc kcc 5 hours ago Contributor This should work as is, but it's preferable to have the fuzz targets built as part of the regular developer build (make). Otherwise the risk is that the fuzz targets will often bit rot and we will see failures only on oss-fuzz
I think you have more mojo to handle this than I do so I'm assigning this to you
Change History (9)
comment:1 by , 7 years ago
Component: | postgis → buildbots |
---|
comment:2 by , 7 years ago
comment:3 by , 7 years ago
duh should have read the instructions. I got it running on my windows box by changing my command to:
docker run --cap-add SYS_PTRACE -ti postgis-fuzz
So now I get same output as debbie, but I'm lost with docker not sure how to see outputs.
comment:4 by , 7 years ago
Outputs should be on stdout from docker run.
Or I think you can add a --name good-name
switch
and then docker logs good-name
to see the output.
Not passing --name
assigns a random (but mnemonic) name,
you can find out the names of runnign dockers via docker ps
comment:5 by , 7 years ago
ah thanks strk I was wondering how to name it what I wanted.
Unfortunately docker logs just shows me what I already so in interactive mode.
comment:6 by , 7 years ago
Milestone: | PostGIS 2.4.0 → PostGIS 2.5.0 |
---|
comment:7 by , 6 years ago
Milestone: | PostGIS 2.5.0 → Management 2.0 |
---|
comment:8 by , 5 years ago
This going to happen? Give yourself a break, close the tasks you aren't going to get to, it's alright.
I was able to get this to run on Debbie with following command (I was running under root, I know a no no, but I couldn't access docker from postgis-git-sync account I had created earlier.
Basic steps
I'm not sure how to see fuzz errors though. Didn't get that far in my learning.
Output shows:
I was hoping I could do this on my windows 7 docker install, but sadly I got stuck a little stuck:
I got as far as building the docker image, but when I go to run, the output looks like this: I had to dos2unix the files cause they came down with windows line breaks, but after that got stuck.