Fork 0
Commit Graph

67 Commits (master)

Author SHA1 Message Date
radex f5844311eb */kube: Add kube.SimpleIngress
Change-Id: Iddcac629b9938f228dd93b32e58bb14606d5c6e5
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1745
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-10-28 17:55:48 +00:00
q3k 28b5260753 gerrit: use profile.hackerspace.pl avatars
Change-Id: I44d1ff32843d6239e9728427d479208d853a06d2
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1743
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-10-27 19:42:30 +00:00
q3k 6e10e46f96 gerrit-qa: deploy
A little QA environment, currently without any data populated.

Change-Id: Ifbe5e97f312376ca64222a3754fe6fa29d7fda79
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1643
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-10-09 19:11:02 +00:00
q3k 2ceb69f30b gerrit: bump to 3.7.5
This involved messing with both of our source-built plugins (owners and

The main issue seems to have been the desync between Jackson as
requested by different plugins. Jackson is split into multiple Maven
packages, and they all have to be the same version to work together. The
oauth plugin was requesting only part of it, and these parts were
incompatible with the parts that the owners plugin requested.

In addition, we have to make the owners plugin include more bits of

Without these changes, we would get runtime
`java.lang.NoClassDefFoundError: com/fasterxml/jackson/...` errors,
which were a symptom of Jackson either not being included fully into the
plugin's JAR, or a mixup between Jackson component/package versions.

While we're at it, we remove the broken theming attempt.

Change-Id: I26531818a395de2a8bb6054d2583881fd1d5b806
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1642
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-10-09 19:11:02 +00:00
q3k 7f5f2099c5 gerrit: add ref-updated hook to poke forgejo
This has been deployed already.

Technically depends on I26531818a395de2a8bb6054d2583881fd1d5b806 as this
has been deployed on top of that.

Change-Id: I1b8d453d04f3a9a5435ae0dd6575f82d9ca10db7
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1681
Reviewed-by: informatic <informatic@hackerspace.pl>
2023-10-08 20:08:50 +00:00
q3k c68343caad gerrit: use Forgejo for viewing repo state
Already deployed.

Change-Id: I3a82e99f22e66676d79baafac85e7263ca140014
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1661
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-10-08 20:08:50 +00:00
informatic 69957c346f devtools/gerrit: add simple healthcheck
This should somewhat temporarily fix gerrit outright dying (ie. refusing
to accept any new http connections) for no reason once in a while.

Change-Id: Ie0dfcab020945d17010c012ecfae19f4c8c5c374
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1601
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-09-24 13:42:48 +00:00
q3k 97b5cd7b58 go: re-do the entire thing
This is a mega-change, but attempting to split this up further is
probably not worth the effort.


1. Bump up bazel, rules_go, and others.
2. Switch to new go target naming (bye bye go_default_library)
3. Move go deps to go.mod/go.sum, use make gazelle generate from that
4. Bump up Python deps a bit

And also whatever was required to actually get things to work - loads of
small useless changes.

Tested to work on NixOS and Ubuntu 20.04:

   $ bazel build //...
   $ bazel test //...

Change-Id: I8364bdaa1406b9ae4d0385a6b607f3e7989f98a9
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1583
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-09-22 21:50:19 +00:00
q3k b6504238e7 *: add gomod placeholders for generated files
Change-Id: I8a4824ff31590185cd45fd43cc065bb8e2fa7bb2
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1580
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-09-01 16:50:48 +00:00
informatic 7e841065b0 *: post-certmanager manifests update
Change-Id: I745c850268c31777c5722a9833c8152a55615aed
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1512
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-06-19 21:20:44 +00:00
q3k a63c315f7d prodimage: bump to focal
Change-Id: I502ef4bbc593dae4db900eb10dc4ad93daad3985
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1382
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-08-30 17:30:50 +00:00
informatic 94b080d375 devtools/hackdoc: fixup rendering on mobile
Change-Id: If587defdc0bf1d7c5491c328803289b9e75ba918
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1148
Reviewed-by: q3k <q3k@hackerspace.pl>
2021-09-18 20:23:34 +00:00
q3k 8a572cd36a Merge "devtools/ci/remote-cache: init" 2021-05-12 21:09:00 +00:00
q3k 56c262f2b6 devtools/hackdoc: serve JS with correct mimetype
This allows us to serve rich content from hackdoc, eg. hbj11's

Change-Id: Ife83888d864db0b2eddf3a50b0129be0172aad8a
2021-03-23 15:50:51 +00:00
q3k 5de0b32e3b devtools/ci/remote-cache: init
This is a first pass at a Bazel remote cache. It notably does not yet do
any authentication, upload limits or garbage collection.

We won't be deploying it to prod until these are done.

Change-Id: I70a89dbe8b3ec933b2ce82e234a969e8337ba1d9
2021-03-20 13:15:18 +00:00
q3k 146c99e58e devtools/gerrit: backport reviewiers column fix to 3.3.2
Gerrit 3.3.1 seems to have introduced a bug which makes the reviewers
column in the dashboard entry: https://bugs.chromium.org/p/gerrit/issues/detail?id=13899

This adds an override of gerrit.war to our Docker containers. The .war
is pulled over HTTP. It has been manually built by q3k from a source
checkout. The details on how this was done are in the WORKSPACE
http_file archive.

Once 3.3.3 lands we should get rid of it.

Change-Id: I8b64103cb87d8b185ff35165695a18cb19fea523
2021-03-18 19:51:33 +00:00
q3k 408d544898 devtools/gerrit: attempt to deploy theme
This doesn't entirely work, as we need to use PolyGerrit 3 compatible
theme injection.

Change-Id: I13305a4774028bdb92c1449ddb461b59ce8ae82f
2021-03-17 21:17:04 +00:00
q3k dd692217c1 gerrit: bump to 3.3.2
Deployed to prod.

Change-Id: Iac1fdee4ec22e6a6d92ff31ab5535a43cfbcffb1
2021-03-11 23:31:28 +00:00
q3k 3ba5c1b591 *: docs pass
Change-Id: I87ca80d3f7728ed407071468ac233e6ad4574929
2021-03-06 22:21:28 +00:00
q3k c0d9ea081f hackdoc: deploy
Change-Id: I2d1661212f906cc431a47a372b2e52a6be2e07f4
2021-03-06 22:21:28 +00:00
q3k bc0d3cb227 hackdoc: link to cs instead of gitweb
Change-Id: Ifca7a63517bceffe7ccc0452474d9d16626486de
2021-03-06 22:16:54 +00:00
q3k 81262ff202 hackdoc: when redirecting, skip ref if default
Change-Id: Ie1680500ede673c407c9c8f4bbbe6b7f6a41b422
2021-03-06 22:16:54 +00:00
q3k 2df7685b46 devtools/gerrit: remove tools/eclipse, which breaks global build
Change-Id: Ie7e8faa6c80a0a4b75bd0bae7da225c4f607ce18
2021-02-14 14:45:37 +00:00
q3k 6e71f8a889 devtools: remove unused bazel-cache
Change-Id: I843ba2b20446aba6d8e0b23bb3f494a62e1c0ade
2021-02-14 14:44:47 +00:00
informatic 5c08bb9197 Merge "devtools/issues: add mailing support" 2021-02-09 19:38:53 +00:00
informatic 054c5b47d6 devtools/issues: add mailing support
Resolves b/15

Change-Id: I53a4057ff428219ae1d4928db74eaa2e8bda6651
2021-02-09 09:59:59 +00:00
q3k c9f48fee70 gerrit: integrate with b.hackerspace.pl
Already deployed on prod. Example: b/1337

Change-Id: Ia1bd038a0fc65ad9ddba74e515c113b5421bdfff
2021-02-08 15:10:14 +00:00
q3k 877cf0af26 🅱️
Fixes b/8

Change-Id: I5a5779c3688451d89c0601dc913143d75048c9f6
2021-02-08 15:10:11 +00:00
informatic 0572fff9a4 devtools/issues: redmine deployment
Change-Id: I71956c4132bf2063e9fc41eb24c4f37657b8fd9d
2021-02-06 22:23:53 +01:00
q3k adbf560851 devtools: bump up depotview mem limit
It used to be at 128Mi, which is a bit small considering this clones
hscloud into memory.

This is a quick fix, a better thing to do would be to have some storage
for depotview to clone into, instead of serving fully from RAM.

Change-Id: I619d39a0d61f5de9bdeef1f46262c78ea33a19fc
2021-01-22 18:38:43 +01:00
q3k 61f978a0a0 *: tear down ceph-waw2
It reached the stage of being crapped out so much that the OSDs spurious
IOPS killed the performance of disks colocated on the same M610 RAID
controllers. This made etcd _very_ slow, to the point of churning
through re-elections due to timeouts.

etcd/apiserver latencies, observe the difference at ~15:38:


I moved gerrit/* and matrix/appservice-irc-freenode PVCs to ceph-waw3 by
hand. The rest were non-critical so I removed them, they can be
recovered from benji backups if needed.

Change-Id: Iffbe87aefc06d8324a82b958a579143b7dd9914c
2021-01-22 16:26:09 +01:00
q3k ee2f8a37d5 gerrit: deploy 3.3.0
Change-Id: Ib48f2df4b7fd424a6a33d928d60a1a4c92c43c30
2020-12-17 23:32:30 +01:00
q3k 70c60feea6 gerrit-oauth-provider: port Warsaw Hackerspace plugin to new API
Change-Id: Ia1260e3ebf14e410ffd94c0e74113a5bae568157
2020-12-17 23:06:02 +01:00
q3k bfa4a65f76 gerrit-oauth-provider: bump
This now tracks upstream's master at 296a0051e1692da91a9b0d3c9b878ac571dc9819

Change-Id: Id08e3a43bcabc3bc4f6341dd5973025e53e02e84
2020-12-17 20:55:28 +01:00
q3k fb8a5ce6f8 devtools: bump to Go 1.15.5
Change-Id: Ib6d60478a49776c719ab3f05aa43c497be82d5f2
2020-11-27 09:37:49 +00:00
q3k 94a1af8714 hackdoc: add table css, make it colorful
Change-Id: Idab1f911c10832ef4cfcf7073f77577d1b8673ff
2020-10-24 20:20:18 +02:00
q3k 0dd5195766 hackdoc: bump
Change-Id: I027a7d8f30d55773ec0e2ec7700bd780e417cb19
2020-09-23 18:31:35 +00:00
q3k 0a2f413b4c hackdoc: render TOC inline
Change-Id: Ib91e4d3b73354e7e19095ea62eed70a23ef96512
2020-09-23 18:13:20 +00:00
q3k 80380f4444 hackdoc: fix pub_listen flag in readme
Change-Id: I5d41fa12f29ec5cff9251bb0ad77fc5fdafef786
2020-09-23 18:13:20 +00:00
q3k 26f44da5f1 hackdoc: do not add ?ref= to intra-links unless necessary
Change-Id: I839863a8c10c54fae11100b885c972bed348eba6
2020-09-23 18:13:20 +00:00
q3k b7898a8038 devtools: fix sourcegraph
Permissions get mangled on container restart. This adds an init
container to fix them.

Change-Id: I37c44e23a75b8ec41e6aba2ed38eee223496b8b9
2020-08-23 11:05:57 +00:00
q3k 15db04c705 hackdoc: deploy
There's an issue with the registry that forbids me from pushing into
anything but my personal namespace - might have been introduced by
0697e01144 . For now, I move the hackdoc
image to my personal namespace, as at some point in the future I want to
revamp the registry system, anyway.

We also drive-by fix a mirko.libsonnet typo that, for some reason,
hasn't manifested itself yet.

Change-Id: I8544e4a52610fb84c5c9d8b0de449f785248f60f
2020-08-10 18:57:26 +02:00
q3k d701c4ebc6 hackdoc: do not render links to pages that wouldn't serve anything
This gets rid of annoying clickable 404 links.

Change-Id: Ibf767875af29f4571e7f935d494b44dde002fac6
2020-08-10 18:01:13 +02:00
q3k 91e1a8c9c5 devtools: add sourcegraph
Change-Id: Ic3c40768c761e598e0f42b17a4b9f0d4ebcb2bb2
2020-06-25 12:27:34 +02:00
q3k e9f4b77bf8 Merge "doc: add getting-started/your-first-change" 2020-04-22 12:11:03 +00:00
q3k ac1163d67a devtools/gerrit: disable owners-autoassign
This plugin sounds good in practice, but has a flaw: it assigns _all_
owners automatically, even if a change is already submitted by one of
the other owners.

We might come back to it later - or implement something of our own.

Change-Id: Iff179ea623c1371c2c861b6d7ec2e7749c940369
2020-04-13 12:26:00 +02:00
q3k 7b1d137d50 doc: add getting-started/your-first-change
Change-Id: Ib3d3805507e2cb5ef0194605f081c74719f3b1a3
2020-04-13 10:19:38 +00:00
q3k ee0fc59685 Merge "devtools: deploy hackdoc&depotview" 2020-04-13 09:03:46 +00:00
q3k 7480879222 devtools: deploy hackdoc&depotview
Change-Id: If7ee65a99fae29f5015bb8ee8bb23e83c0f7dd3a
2020-04-13 01:39:33 +02:00
q3k 4b4a33a693 devtools/hackdoc: propagate ref in imgs and redirects
Change-Id: Ideb2a8f10f8193cd782b0e1d913e7aa99bbfa52f
2020-04-13 01:35:33 +02:00