facebookexperimental / hermit

Hermit launches linux x86_64 programs in a special, hermetically isolated sandbox to control their execution. Hermit translates normal, nondeterministic behavior, into deterministic, repeatable behavior. This can be used for various applications, including replay-debugging, reproducible artifacts, chaos mode concurrency testing and bug analysis.
Other
1.17k stars 31 forks source link

[hermit][open-source] Add an extremely basic test script #25

Open rrnewton opened 1 year ago

rrnewton commented 1 year ago

Summary: While we wait to port our full buck testing setup to the OSS build, it's best to get at least a few integration tests running.

This diff uses a bash script for the purpose, though the next step would be to replace it with Rust code, possibly using libtest directly.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

VladimirMakaev commented 1 year ago

Looks like perf counters are not enabled on the hosted Github Actions Runners. There is a way we can host our own or can try checking out Circle Ci too

rrnewton commented 1 year ago

Well, that sounds more involved. In the short term we could just disable RCB counters for these basic "hermit strict" tests. I don't think any require them.

facebook-github-bot commented 1 year ago

@rrnewton has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

@rrnewton has updated the pull request. You must reimport the pull request before landing.