|
3 | 3 | Welcome to the codetracer-desktop wiki. Here you can find information on almost every topic
|
4 | 4 | regarding codetracer development and usage.
|
5 | 5 |
|
6 |
| -## What is codetracer |
7 |
| -Codetracer is a debugging environment, based on the concept of record and replay, developed as a powerful tool to easily |
8 |
| -debug complex applications. |
9 |
| - |
10 | 6 | ## Installation
|
11 | 7 | > [!CAUTION]
|
12 |
| -> Codetracer can only be installed on Linux and macOS. |
| 8 | +> Codetracer can only be installed on Linux and macOS currently. |
13 | 9 |
|
14 | 10 | ### Prerequisites
|
15 | 11 | On systems that are not NixOS, you need to install `direnv` and `nix`.
|
@@ -50,39 +46,14 @@ TODO:
|
50 | 46 | > 1. Run `direnv allow`
|
51 | 47 |
|
52 | 48 | ### Building and running the tests
|
53 |
| -To start running tests do the following: |
54 | 49 |
|
55 |
| -1. Run `tester build` - Builds tester |
56 |
| -1. Run `tester parallel` - Runs the tests |
| 50 | +Coming soon! |
57 | 51 |
|
58 | 52 | ### Enabling `cachix`
|
59 |
| -> [!NOTE] |
60 |
| -> This step is optional |
61 |
| -
|
62 |
| -<!-- TODO: Scrap or completely rewrite the cachix instructions for end users. Alternatively, make this an internal developer guide --> |
63 |
| - |
64 |
| -Cachix is a cache for nix that allows you to save time on compiling codetracer and related projects. To enable `cachix` do the following: |
65 |
| - |
66 |
| -1. Log into [cachix](https://www.cachix.org/) with your personal GitHub account |
67 |
| -1. Create an authentication token |
68 |
| -1. Run `cachix authtoken --stdin` |
69 |
| -1. Paste the token and click enter |
70 |
| -1. Press `CTRL + D` to save the token |
71 |
| -1. Run `cachix use metacraft-labs-codetracer` |
72 |
| -1. Run `direnv allow`, `nix develop`, or `just build-nix` to auto-download cached binaries if available |
73 |
| - |
74 |
| -### Explicit `cachix` setup |
75 |
| -> [!NOTE] |
76 |
| -> You have to be an admin for the private cache. Ask an administrator to get added. |
77 |
| -
|
78 |
| -Our current `cachix` setup pushes binaries from CI, but if you want to manually push to `cachix` as well, or want to know how pushing works, you can do the following: |
79 |
| - |
80 |
| -1. Go to [this page](https://app.cachix.org/organization/metacraft-labs/cache/metacraft-labs-codetracer/settings/authtokens) |
81 |
| -1. Create an auth token with `Read+Write` permissions |
82 |
| -1. Locally register it as described in the above heading |
83 | 53 |
|
84 |
| -To push the dev shell to `cachix` use either one of the following commands: |
| 54 | +<!-- TODO(alexander): I removed the detailed cachix guide, as it's sensitive, and we don't have a public codetracer cache yet --> |
| 55 | +<!-- either include it in an internal docs in the rr-backend, or re-include here when this is discussed again --> |
85 | 56 |
|
86 |
| -1. Automatically: `just cachix-push-devshell` |
87 |
| -1. Manually: `cachix push metacraft-labs-codetracer "$(nix build --print-out-paths .#devshells.x86_64-linux.default)"` |
| 57 | +Cachix is a cache for nix that allows you to save time on compiling codetracer and related projects. We'll discuss using a public codetracer cache |
| 58 | +for the open sourced parts, however this is available only internally for now. |
88 | 59 |
|
0 commit comments