Page MenuHomePhabricator

[analyzer] SATest: Add initial docker infrastructure

Authored by vsavchenko on Jun 10 2020, 6:30 AM.



Static analysis is very sensitive to environment.
OS and libraries installed can affect the results. This fact makes
it extremely hard to have a regression testing system that will
produce stable results.

For this very reason, this commit introduces a new dockerized testing
environment, so that every analyzer developer can check their changes
against previous analysis results.

Diff Detail

Event Timeline

vsavchenko created this revision.Jun 10 2020, 6:30 AM
NoQ added inline comments.Jun 18 2020, 7:17 AM

Ouch. I'm pretty bad with docker but is it possible to simply take a newer ubuntu?


Maybe put apt-get update on a separate line?

Also i think you mentioned offline that you want to freeze package versions here, can you add a FIXME?




I think this one's on by default but i guess it wouldn't hurt^^

NoQ added inline comments.Jun 18 2020, 7:27 AM

can you add a FIXME?

Wait, you already did that in D81600, nvm.

vsavchenko marked 5 inline comments as done.Jun 18 2020, 7:50 AM
vsavchenko added inline comments.

This is the latest LTS version of Ubuntu. And actually that was one of the reasons I migrated to Fedora in my later pre-macOS years, Ubuntu is pretty bad with maintaining newer versions of packages.


It is actually one of the good practices for writing Docker files and related to the Docker's build cache.

It is even recommended to do every apt-related stuff on the same line. I went with one decision in between:


I was thinking about adding a separate list of options specifically for building. Assertions can significantly affect performance and I don't know if that should be a default.

NoQ accepted this revision.Jun 19 2020, 7:50 AM

Ok then!


I still think assertions should be on by default; it's much worse when somebody accidentally tests a logic-related patch without assertions than when somebody tests a performance-related patch with assertions.

This revision is now accepted and ready to land.Jun 19 2020, 7:50 AM
This revision was automatically updated to reflect the committed changes.