tvl-depot/ops
Vincent Ambo 623805cecd feat(ops/gerrit-autosubmit): init simple gerrit autosubmitter
Adds a small Rust program that connects to the Gerrit API and uses a
simple algorithm to figure out which changes should be submitted, and
submits them:

* it fetches all changes the Gerrit query API considers
  submittable (i.e. all requirements fulfilled), and that have the
  `Autosubmit` label set

* it filters these changes down to those that are _actually_
  submittable (in Gerrit API terms: that have an active Submit button)

* it filters out those that would submit ancestors that are *not*
  marked with the `Autosubmit` label

* it submits the longest chain

After that it just loops.

There is no rebasing logic yet for when it "runs out" of submittable
changes, but it will not be difficult to add.

Relates to b/333.

Change-Id: Ib91ecf2c45b178e8c64ff7b2174d617d4c45efe2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10131
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: ezemtsov <eugene.zemtsov@gmail.com>
Autosubmit: tazjin <tazjin@tvl.su>
2023-11-27 21:50:37 +00:00
..
besadii fix(ops/besadii) test trigger.ref against configured branch 2022-06-09 15:26:25 +00:00
buildkite fix(ops/buildkite): set default_branch explicitly 2023-02-01 17:25:06 +00:00
deploy-whitby refactor(deploy-whitby): use nvd instead of nix-diff 2022-01-13 08:14:00 +00:00
dns chore(3p/sources): Bump channels & overlays 2022-09-28 08:02:31 +00:00
gerrit-autosubmit feat(ops/gerrit-autosubmit): init simple gerrit autosubmitter 2023-11-27 21:50:37 +00:00
gerrit-tvl fix(gerrit-tvl): Use only one build filter 2022-05-28 13:39:58 +00:00
glesys chore(ops/glesys): point nixery.dev to nixery-01.tvl.fyi 2023-09-22 17:52:23 +00:00
journaldriver chore(ops/journaldriver): bump cargo dependencies 2023-11-12 22:52:12 +00:00
keycloak chore(ops/keycloak): drop oauth2-proxy client 2023-07-01 23:35:13 +00:00
kontemplate style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
machines fix(whitby): disable gerrit-queue due to b/333 2023-11-25 15:45:46 +00:00
modules fix(ops/modules/irccat): recursively merge config attribute set 2023-11-26 22:16:16 +00:00
mq_cli style(rust): Format all Rust code with rustfmt 2022-02-08 12:06:39 +00:00
pipelines feat(tools/git-r): git subcommand to display r/numbers for commits 2023-07-05 12:37:09 +00:00
posix_mq.rs style(rust): Format all Rust code with rustfmt 2022-02-08 12:06:39 +00:00
secrets chore(ops/secrets): drop oauth2_proxy.age 2023-07-01 23:35:14 +00:00
terraform feat(ops/terraform/deploy-nixos): make target_user_ssh_key optional 2023-05-16 09:55:23 +00:00
users feat(ops/users): add totikom to users 2023-09-12 22:11:57 +00:00
yandex-base-image chore(ops): move yandex-base-image to //ops and bake in keys 2023-10-08 18:13:49 +00:00
yandex-cloud-rs chore(ops/yandex-cloud-rs): bump API definitions to 2023-09-04 2023-09-12 12:57:15 +00:00
nixos.nix feat(ops): add nixery-01 instance for hosting nixery.dev 2023-09-22 17:52:23 +00:00