Things in monospace


Roundup for week ending June 2nd

Authored on 2024-06-02

GitLab CI tags

So last week I've mentioned how I broke my website. This week I've decided to fix it for good by making sure that my cloud things don't run potentially cloud-destroying things. First question I wanted to answer was "can I exclude runners" with tags in GitLab CI? The answer is a resounding "no". After crying for a bit, the solution is:

Terraform Deploy:
  stage: deploy
  extends: ".terraform:deploy"
  tags:
    - linux
    - amd64
    - selfhosted

The key part here is simply tagging all of my "safe" runners as selfhosted. Note that I have to still specify linux tag because there's not really a decent way of doing inheritance in GitLab CI and amd64 because I am using 1Password service account for populating secrets for Terraform and 1Password doesn't support AArch64 on Alpine (sad trombone noises).

Mise: first stumbling block

Got bitten by a series of weird interop bugs between Poetry, Pyenv and mise and discovered a disappointing bit of comment from Mise's creator. Now, in general I would say it doesn't matter because we can't know all the things, but it is a bit of my workflow that I need to work 100% of the time, so I might need to start looking into picking up this plugin if I can't resolve the issues soon.

Windows and Python

Ok this is a tangent, but in my attempts to "just generate some Playwright code" I thought I'd install Playwright on Windows and run the code generator. I thought I'd use choco but lo and behold it doesn't actually package playwright. "Ok", I thought, "I'll just use pipx, how hard can that be".

...

2 hours later and not a minute earlier I had successfully launched pipx run playwright codegen example.com. The pain is still tangible.

Homelabbing

Trying to get my old box with i5-6500 and 32G of RAM to turn into my NAS + "Linux ISO download" center is taking shape buuuuut the poor Ethernet controller on the motherboard is dying leaving the box running but not network accessible after unpredictable amount of time (it can be 5 minutes, it can be 2 days, but it will happen). So, PCI network adapter it is! But also a new 2.5G switch to pair with it. And you know what, since I'm splurging, it is time to finally set up some IP cameras in this house of mine (on the outside of it, I don't need cameras inside).

Yes, this will be glorious.