Skip to content

Commit

Permalink
document crater
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoIeni committed Sep 27, 2024
1 parent 8654b29 commit c6032bc
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions service-catalog/crater/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Crater

`Crater` is a tool to run experiments across parts of the Rust ecosystem.

The `crater` service is managed in the [terraform/crater] module, while the app is in the [rust-lang/crater] repository.

You can find the detailed `crater` docs
[here](https://github.com/rust-lang/crater/tree/master/docs).

## Architecture

The crater project contains the following components:
- `crater`: server that assigns experiments (tasks) to agents
- `agent`: worker that runs experiments and reports back to the server

```mermaid
graph LR
crater["Crater"]
agent1["Agent 1"]
agent2["Agent 2"]
agent1 --> crater
agent2 --> crater
```

The agents and crater communicate over HTTP.

The agents communicate to crater their capabilities
(e.g. "windows" or "hard-drive-bigger-than-1TB") and crater assigns experiments
based on these capabilities.

## Bot

Crater can be controlled in the `rust-lang/rust` repo thanks to the GitHub bot
[@craterbot](https://github.com/craterbot). The bot replies to every command in
the comments of issues and pull requests, if the command is in its own line and
is prefixed with the bot's username.

For example, to check if the bot is alive you can write this comment:

```
@craterbot ping
```

And the bot will reply to you.

## Versions

These are the versions we need to keep up-to-date:

- Ubuntu version specified in the [Dockerfile]
- Cargo dependencies: specified in the [Cargo.lock]
- GitHub Actions: specified in the [workflows] directory

[Dockerfile]: https://github.com/rust-lang/crater/blob/master/Dockerfile
[Cargo.lock]: https://github.com/rust-lang/crater/blob/master/Cargo.lock
[workflows]: https://github.com/rust-lang/crater/tree/master/.github/workflows
[rust-lang/crater]: https://github.com/rust-lang/crater
[terraform/crater]: https://github.com/rust-lang/simpleinfra/tree/master/terraform/crater

0 comments on commit c6032bc

Please sign in to comment.