lightweight com.atproto.sync.listReposByCollection
45
fork

Configure Feed

Select the types of activity you want to include in your feed.

nextest

phil c2c8b0f3 096ecf45

+28
+2
.cargo/config.toml
··· 1 + [alias] 2 + t = "nextest run"
+15
hacking.md
··· 35 35 - TODO: configure tangled CI to run these on PR 36 36 37 37 38 + #### nextest 39 + 40 + the full test suite should run in single-digit seconds on a fast machine, but you can make it go slightly faster (and with prettier output) with [`cargo-nextest`](https://nexte.st/) 41 + 42 + ```bash 43 + $ cargo install cargo-nextest --locked 44 + ``` 45 + 46 + then do `cargo nextest run`. or `cargo t` -- aliased in `./cargo/config.toml`. 47 + 48 + if your terminal makes annoying noisy output for BEL chars like mine does (which, nextest outputs many!!), there's a wrapper to strip them, `./test-quiet.sh`. 49 + 50 + the wrapper also sets the concurrency to CPUs * 3 which seems to be the fastest for this test suite for me. if you're not using the wrapper, you can do it manually like `cargo t -j 30`. 51 + 52 + 38 53 ## current implementation status 39 54 40 55 lightrail is like 4% interesting approach to `listReposByCollection` and 96% just a sync1.1 implementation.
+11
test-quiet.sh
··· 1 + #!/bin/bash 2 + 3 + # with all the db setup/teardown, this suite runs best with 3x cpu jobs for me 4 + cpus=$(sysctl -n hw.logicalcpu 2>/dev/null || nproc 2>/dev/null) 5 + jobs_arg=$( [ -n "$cpus" ] && echo "-j $(( cpus * 3 ))" ) 6 + 7 + # strip BEL chars that are noisy in some terminals, without losing everything 8 + # shellcheck disable=SC2086 # $jobs_arg intentionally unquoted 9 + cargo nextest run --color=always $jobs_arg "$@" 2>&1 | tr -d '\007' 10 + 11 + exit "${PIPESTATUS[0]}"