about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorFilesLines
2020-06-17 r/1009 docs(REVIEWS): Update account creation note for new user listVincent Ambo1-4/+4
Change-Id: If657f4b49d16260b35f13a4124caa336bbe3124b Reviewed-on: https://cl.tvl.fyi/c/depot/+/449 Reviewed-by: riking <rikingcoding@gmail.com>
2020-06-17 r/1008 fix(monorepo-gerrit): Use displayName attribute as accountFullNameVincent Ambo1-1/+1
This attribute makes much more sense in this position semantically. Change-Id: I16cc6304f42c577a2368bd7c9573fcb7dd276a9d Reviewed-on: https://cl.tvl.fyi/c/depot/+/448 Reviewed-by: riking <rikingcoding@gmail.com>
2020-06-17 r/1007 refactor(tvl-slapd): Move user definitions into Nix codeVincent Ambo2-125/+107
Implements a function that generates the LDIF record for each user and templates it into the configuration. This is slightly more user-friendly and less error-prone (people kept getting the DNs wrong) than editing the contents manually. Change-Id: Ic419d2ef464f9a94be5d54b666f7d53134b53eed Reviewed-on: https://cl.tvl.fyi/c/depot/+/447 Reviewed-by: riking <rikingcoding@gmail.com>
2020-06-17 r/1006 docs(REVIEWS): Add documentation for code reviews in GerritVincent Ambo2-11/+133
Adds a document with information about the review process, how to get an account, how to submit patches via email and so on. Change-Id: I7c266e063ef53ab6aa79dd2582bc0e4fa8dcf5c0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/446 Reviewed-by: riking <rikingcoding@gmail.com>
2020-06-17 r/1005 refactor(cheddar): Switch to clap-rs for command line argumentsVincent Ambo3-30/+29
The complexity of the arg parsing is increasing somewhat because we're adding more features to cheddar, so to set us up for that this switches the arg parsing to the somewhat more flexible clap. Change-Id: I187bc0c1b6c6bd596fa0f6bb494b04e335262ba9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/445 Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/1004 chore(cheddar): Bump all dependenciesVincent Ambo2-215/+106
Manual updates: comrak 0.6 -> 0.7 syntect 3.3 -> 4.2.0 Leading to these automatic updates: Updating crates.io index Updating adler32 v1.0.4 -> v1.1.0 Adding autocfg v1.0.0 Updating base64 v0.10.1 -> v0.12.2 Removing bindgen v0.53.3 Removing cexpr v0.4.0 Adding chrono v0.4.11 Removing clang-sys v0.29.3 Updating comrak v0.6.2 -> v0.7.0 Removing env_logger v0.7.1 Removing glob v0.3.0 Updating hermit-abi v0.1.13 -> v0.1.14 Removing humantime v1.3.0 Adding indexmap v1.4.0 Updating itoa v0.4.5 -> v0.4.6 Updating libc v0.2.70 -> v0.2.71 Removing libloading v0.5.2 Removing log v0.4.8 Updating miniz_oxide v0.3.6 -> v0.3.7 Removing nom v5.1.1 Adding num-integer v0.1.43 Adding num-traits v0.2.12 Updating onig v5.0.0 -> v6.0.0 Removing peeking_take_while v0.1.2 Updating plist v0.4.2 -> v1.0.0 Updating proc-macro2 v1.0.17 -> v1.0.18 Removing quick-error v1.2.3 Updating quote v1.0.6 -> v1.0.7 Updating regex v1.3.7 -> v1.3.9 Updating regex-syntax v0.6.17 -> v0.6.18 Removing rustc-hash v1.1.0 Updating ryu v1.0.4 -> v1.0.5 Updating serde v1.0.110 -> v1.0.112 Updating serde_derive v1.0.110 -> v1.0.112 Updating serde_json v1.0.53 -> v1.0.55 Removing shlex v0.1.1 Updating syn v1.0.25 -> v1.0.31 Updating syntect v3.3.0 -> v4.2.0 Removing termcolor v1.1.0 Removing version_check v0.9.2 Removing which v3.1.1 Updating yaml-rust v0.4.3 -> v0.4.4 Change-Id: I2c2ee6a45bf7a5286fe30d61de52d7993871e7e1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/444 Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-16 r/1003 feat(3p/typedGo): Add derivation for the Go alpha with a type systemVincent Ambo1-0/+30
The Go language authors have released an experimental version of Go that has a type system: https://blog.golang.org/generics-next-step This overrides the existing Go derivation to build the typed Go. The next step is a buildTypedGo set of functions that wrap buildGo. Change-Id: Idb8a4868bca003d821ed5cb324af633398faf002 Reviewed-on: https://cl.tvl.fyi/c/depot/+/443 Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-16 r/1002 chore: Remove traces of HoundVincent Ambo5-83/+0
We can always revert this if we want it back. Change-Id: I1332b6dd541199584b7b5b94a8651172d79e53a9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/442 Reviewed-by: glittershark <grfn@gws.fyi> Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-16 r/1001 fix(clbot): actually display people's usernames properlyLuke Granger-Brown1-1/+2
Change-Id: Idcbb6ffbb3127520141596cea7883cd137a1ea56 Reviewed-on: https://cl.tvl.fyi/c/depot/+/441 Reviewed-by: eta <eta@theta.eu.org> Reviewed-by: riking <rikingcoding@gmail.com>
2020-06-16 r/1000 fix(monorepo-gerrit): Don't expire sessions unreasonably quicklyVincent Ambo1-0/+1
Changes the default session timeout to 3 months, which is a lot more reasonable than the default of 12 hours. See https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#cache.name.maxAge Change-Id: I33bce8b072d64ab07f1b954c11068595dca5def7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/431 Reviewed-by: riking <rikingcoding@gmail.com>
2020-06-16 r/999 fix(tools/gerrit-cli): Don't wrap ssh sniffing in a subshellGriffin Smith1-1/+1
This was actually executing ssh, which was kinda silly - we really just want to check the return code of the `which` invocation Change-Id: I8a4b277a2be3b0c6a43d2da830cb82a32f9ee51e Reviewed-on: https://cl.tvl.fyi/c/depot/+/428 Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/998 fix(gws.fyi): fix typo in soundcloud linkGriffin Smith1-1/+1
don't know how *this* got in there Change-Id: I73102136d90127a40697ae5c39382c6739a76091 Reviewed-on: https://cl.tvl.fyi/c/depot/+/430 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/997 feat(gws.fyi): link to last.fmGriffin Smith1-1/+2
Change-Id: I12397453b25b40a0283254ee1da9541c3512d8ac Reviewed-on: https://cl.tvl.fyi/c/depot/+/429 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/996 feat(gws.fyi): link to my monorepo dirGriffin Smith1-3/+6
If my work is going here anyway, might as well link to it alongside github Change-Id: Ib686f14c16180d24fe9b8647b2297f6a1a569760 Reviewed-on: https://cl.tvl.fyi/c/depot/+/427 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/995 feat(nixos/sourcegraph): Add a module for running SourceGraphVincent Ambo2-2/+36
This module spins up the Sourcegraph container. Builds: Note that this is contrary to how our other deployments work, but packaging Sourcegraph is quite difficult (it's a Gitlab style deployment with a lot of moving parts and third-party things that it bundles). If we decide to keep it around, we will want to look at packaging it in Nix in the future. Deployment: The deployment is a hack. Sourcegraph does not support public instances, but we want it to be public. To work around this we have configured HTTP-proxy based authentication (i.e. auth via a header) and hardcoded a static header. This works, but lets anonymous users change the "Anonymous" user's settings. We can expect this to get defaced (profile picture, name etc), until we figure out how to write some nginx configuration to drop those requests. See git-bug for details. The Sourcegraph configuration is also not checked in to the repository. It's unclear where in the data directory it is stored. Change-Id: I414ff11c3b49989b6792d697bffc8a0edf96c9cb Reviewed-on: https://cl.tvl.fyi/c/depot/+/425 Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-16 r/994 chore(camden): Disable HoundVincent Ambo1-21/+0
Change-Id: Id732f7e2dbc43b2c530a9475499b0dfebff9b273 Reviewed-on: https://cl.tvl.fyi/c/depot/+/424 Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/993 feat(tvldb): Import the tvldb/paroxysm source, add a Nix derivationeta17-0/+2315
- This imports the tvldb (actually a thing called 'paroxysm') code from https://git.theta.eu.org/eta/paroxysm into the monorepo. - Additionally, I did a nix thing, yay! \o/ (well, with tazjin's help) - 3p/default.nix needed modifying to whitelist pgsql. Change-Id: Icdf13ca221650dde376f632bd2dd8a087af451bf Reviewed-on: https://cl.tvl.fyi/c/depot/+/389 Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/992 feat(clbot): insert Unicode ZWS to avoid pinging userseta1-4/+12
Change-Id: I732bf6daa01f5b2099c4f4cbdd21a2ceedc79cb1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/385 Reviewed-by: q3k <q3k@q3k.org> Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-16 r/991 fix(gws.fyi): Gitignore letsencrypt dirGriffin Smith1-0/+1
Change-Id: Ife765377a8a8facd59a391a9c3e3e328f2f5e041 Reviewed-on: https://cl.tvl.fyi/c/depot/+/426 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/990 feat(clbot): Add IRC support to the IRC bot.Luke Granger-Brown5-26/+170
Change-Id: I183488824882750c46e7216b98ab48e1d8f48096 Reviewed-on: https://cl.tvl.fyi/c/depot/+/343 Reviewed-by: eta <eta@theta.eu.org> Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/989 feat(gws.fyi): Make title work properly in indexGriffin Smith4-8/+32
This is remarkably silly, but it gets the job done Change-Id: Ifbc57988a59c4f51a3bba0ed8ad397cb9855d8ab Reviewed-on: https://cl.tvl.fyi/c/depot/+/423 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/988 feat(gws.fyi): add org config fileGriffin Smith1-0/+3
Change-Id: Ie4c7f3648cb2ee5150d8bcab8f8ebcd51c851869 Reviewed-on: https://cl.tvl.fyi/c/depot/+/422 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/987 chore(users/ericvolp12): Create ericvolp12 user directory and OWNERS fileEric Volpert1-0/+3
This change creates a ericvolp12 user directory and an OWNERS file because I am new to the monorepo and need a home. Change-Id: Ie800ec8d9c405fbabbc7c488b6a3c2884a28f34c Reviewed-on: https://cl.tvl.fyi/c/depot/+/421 Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/986 feat(gws.fyi): Build from org + integrate with readTreeGriffin Smith6-34/+75
Build from org via emacs --batch, and update all the top-level definitions to make things work nicely with readTree. Change-Id: If0ac49c1d264856392e29b9e7b155641d865525b Reviewed-on: https://cl.tvl.fyi/c/depot/+/400 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/985 feat(third_party): Add awscliGriffin Smith1-0/+1
I need it to deploy my website Change-Id: I5df8d76d6e0a3d8892ae8bc69d2b46b310f147a5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/399 Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/984 feat(tvl-slapd): Enable ericvolp12 user in LDAPEric Volpert1-0/+9
Thanks. Change-Id: I5df1e5075b2e056ebde3e66e1cf17b220d650977 Reviewed-on: https://cl.tvl.fyi/c/depot/+/398 Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/983 feat(gerrit-cli): Add gerrit CLI scriptGriffin Smith3-0/+17
Add a script to run gerrit commands on the depot host, which reads the gerrit username from the TVL_USERNAME env var or $(whoami) by default. At some point this may want to solve the configuration problem in a more general fashion, but for now this seems relatively obvious. Change-Id: Ied91c1d26daf4770aef74b2e755d1760c486bb7b Reviewed-on: https://cl.tvl.fyi/c/depot/+/396 Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/982 feat(tazjin/camden): Regularly back up Gerrit to GCSVincent Ambo1-1/+27
This configures a timer that will push hourly, incremental backups of Gerrit's state (including repositories) to GCS. The GCS bucket tvl-fyi-backups is an Archive-class bucket in the tazjins-infrastructure project. Change-Id: I3bb5b084d8dd929bc4c3e51ddfb524b78d9445cb Reviewed-on: https://cl.tvl.fyi/c/depot/+/397 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/981 feat(gws.fyi): add current source of gws.fyiGriffin Smith6-0/+80
This will soon be replaced with a pile of org, but for now- HTML! Change-Id: I54c15d5734fd3662ea4916553e0cd1b32cc0681f Reviewed-on: https://cl.tvl.fyi/c/depot/+/395 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/980 fix(g/xanthous): Make xanthous readTree-compatibleGriffin Smith1-0/+2
readTree passes in some extra args that we can generally just ignore Change-Id: I2607421da086cfef0502695bcf5658f6d4dbb44d Reviewed-on: https://cl.tvl.fyi/c/depot/+/394 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-16 r/979 Add 'users/glittershark/emacs.d/' from commit ↵Vincent Ambo74-0/+5656
'69ee53bffaf145eb86dd39a6cdc0ae4d9d3de45c' git-subtree-dir: users/glittershark/emacs.d git-subtree-mainline: 2edb963b97867b27f68efac8d05bf966077b0b01 git-subtree-split: 69ee53bffaf145eb86dd39a6cdc0ae4d9d3de45c
2020-06-16 r/978 Add 'users/glittershark/xanthous/' from commit ↵Vincent Ambo96-0/+10030
'53b56744f4335c038724a1bcffc27a7eb8cf6a6d' git-subtree-dir: users/glittershark/xanthous git-subtree-mainline: 91f53f02d8479303910abfd3f3690d3ef27e6c4b git-subtree-split: 53b56744f4335c038724a1bcffc27a7eb8cf6a6d
2020-06-16 r/977 Add 'users/glittershark/keyboard/' from commit ↵Vincent Ambo6-0/+261
'eb211c2701ad6437bbe5c846823b17acb1dcb1c7' git-subtree-dir: users/glittershark/keyboard git-subtree-mainline: 04d3fb675b6a0f395b9470662511b48f2b02b82a git-subtree-split: eb211c2701ad6437bbe5c846823b17acb1dcb1c7
2020-06-16 r/976 Add 'users/glittershark/org-clubhouse/' from commit ↵Vincent Ambo5-0/+1494
'8838454236cd448afa2c752c4a6dc6f4bb7a3bf4' git-subtree-dir: users/glittershark/org-clubhouse git-subtree-mainline: 81564185e951f69d490be8f5ad76e8ea642b5dde git-subtree-split: 8838454236cd448afa2c752c4a6dc6f4bb7a3bf4
2020-06-16 r/975 Add 'users/glittershark/system/' from commit ↵Vincent Ambo49-0/+3802
'3b174300ae60f63f50427cde3bfd680fd3043c3a' git-subtree-dir: users/glittershark/system git-subtree-mainline: 85d82a9dc262bffa87423f595f7e957c42713798 git-subtree-split: 3b174300ae60f63f50427cde3bfd680fd3043c3a
2020-06-15 r/974 chore(users/glittershark): init glittershark home dirGriffin Smith1-0/+3
Change-Id: I2d9d344be8c448c9cd1ef8555cf7123054e8b567 Reviewed-on: https://cl.tvl.fyi/c/depot/+/392 Reviewed-by: tazjin <mail@tazj.in>
2020-06-15 r/973 feat(users/cynthia): Add cynthia's directoryCynthia Revström1-0/+3
Meow: 3 Change-Id: I7e898528c110e6cf2ec254f08d265dac8ed85e1b Reviewed-on: https://cl.tvl.fyi/c/depot/+/393 Reviewed-by: tazjin <mail@tazj.in>
2020-06-15 r/972 fix(ops/nixos/tvl-slapd): Sort users & fix glittershark's DNVincent Ambo1-9/+9
Change-Id: I33feedacfadaae53da000aff7d42fa06d2189f52 Reviewed-on: https://cl.tvl.fyi/c/depot/+/391 Reviewed-by: tazjin <mail@tazj.in>
2020-06-15 r/971 chore(ops/nixos/tvl-slapd): add glittersharkGriffin Smith1-0/+9
Change-Id: I2e537079b88a3857964c6b7c66cd9221ca580958 Reviewed-on: https://cl.tvl.fyi/c/depot/+/390 Reviewed-by: tazjin <mail@tazj.in>
2020-06-15 r/970 feat(depot-build): Add a tool to build at arbitrary tree locationsVincent Ambo3-0/+12
Assuming you're in `/depot/fun/clbot`, you can do this: tazjin@frog /d/f/clbot (master)> depot-build Building //fun/clbot /nix/store/i1zc6g58wa4819kyhaqi12zsh3hr31ph-clbot It is automatically added to the $PATH using direnv, too. Change-Id: Ia3341704e6317c2b8de40a3fa1be3b680d21a42d Reviewed-on: https://cl.tvl.fyi/c/depot/+/388 Reviewed-by: eta <eta@theta.eu.org>
2020-06-15 r/969 feat(fun/uggc): Install desktop handler in Nix derivationVincent Ambo3-14/+20
This actually registers the desktop entry, so xdg-open etc. start working: tazjin@frog /depot> xdg-open 'uggcf://gjvggre.pbz/alnabgrpu/fgnghf/1272363652679524352' Opening in existing browser session. Change-Id: Ia754cb87470fce2f8d3340d1147f3f01b9914858 Reviewed-on: https://cl.tvl.fyi/c/depot/+/387 Reviewed-by: riking <rikingcoding@gmail.com>
2020-06-15 r/968 feat(fun/uggc): create a rot13 url handlerKane York5-0/+94
Example usage: $ /nix/store/9kgpv4n62vhxs971jkvwvvl3msm4wpm8-uggc/bin/uggc 'uggcf://gjvggre.pbz/alnabgrpu/fgnghf/1272363652679524352' Change-Id: I8fd5f77416116ce1a6ab7f96d3f2c726ef663677 Reviewed-on: https://cl.tvl.fyi/c/depot/+/386 Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: eta <eta@theta.eu.org>
2020-06-15 r/967 feat(cheddar): Override syntax highlighting for 'rules.pl' to PrologVincent Ambo2-17/+34
Adds a mechanism for per-filename overrides of the chosen language syntax and configures it for Gerrit's submit rule file. This also switches the syntax set used to the one from //third_party/bat_syntaxes, which contains custom additions such as Prolog support. Change-Id: I2023dbad5b326305ef2ef0ecf34ef66a3f7575ab Reviewed-on: https://cl.tvl.fyi/c/depot/+/349 Reviewed-by: riking <rikingcoding@gmail.com> Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-15 r/966 feat(3p/bat_syntaxes): Add a derivation to extend bat syntaxesVincent Ambo2-0/+1336
This derivation can add arbitrary new Sublime syntaxes to bat's syntax file, which is used by cheddar. Included is a Prolog syntax. It is kind of mediocre, but better than nothing. Change-Id: I6ceecbc86a5dfba5886cd27bd5114721845446a7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/348 Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-15 r/965 fix(nix/buildGo): Fix import of buildGo in example fileVincent Ambo1-1/+1
Change-Id: I56b4d19f24c5d8ec45254b7b05c9e49002d2ef85 Reviewed-on: https://cl.tvl.fyi/c/depot/+/382 Reviewed-by: edef <edef@edef.eu>
2020-06-15 r/964 chore: Unfuck NIX_PATH in the .envrcVincent Ambo1-1/+0
`nixpkgs` shouldn't be set to the depot root, it is almost never useful and breaks some tooling expectations. Change-Id: I32e46a8f514eb31d1aa81f0af32cf871d1572a96 Reviewed-on: https://cl.tvl.fyi/c/depot/+/381 Reviewed-by: edef <edef@edef.eu>
2020-06-15 r/963 chore(clbot): Refactor backoff utility into a separate package.Luke Granger-Brown4-28/+60
It'll be reused by the IRC side of things too. Change-Id: I3d84f3fd5fca6a6d948f331143b14f096d10675d Reviewed-on: https://cl.tvl.fyi/c/depot/+/342 Reviewed-by: tazjin <mail@tazj.in>
2020-06-15 r/962 chore(clbot): Add signal handler to make clbot shutdown cleanly on SIGINT.Luke Granger-Brown1-1/+24
Change-Id: I3c6eeeb99f9d81cdbcb10880c9075ac94c4f5d19 Reviewed-on: https://cl.tvl.fyi/c/depot/+/341 Reviewed-by: tazjin <mail@tazj.in>
2020-06-15 projectile+grid integrationGriffin Smith2-0/+111
2020-06-15 sync gcal events -> org-mode fileGriffin Smith3-0/+174