Package: dgit-infrastructure
Version: 13.18
Severity: wishlist
We've just had a bug where a test failed in CI due to a race
(fixed in https://salsa.debian.org/dgit-team/dgit/-/merge_requests/353 )
I think this kind of bug is pretty mkuch inevitable with our
contraption of sockets and stuff to test oracled with a fake manager
(currently script which spawns shell scripts which act as the
manager).
This arrangement has the virtue that it can test quite a lot of the
oracled's socket and child handling arrangments. But it is quite
complicated and makes normal testing of normal interactions with the
oracled harder than it needs to be.
I think we should consider having a new test-specific invocation mode
for oracled which we would use for most of the tests.
A mode which
1. Is entirely synchronous
2. Doesn't fork worker children, but just runs one worker
3. Instead of running nc.openbsd to connect to the manager,
allows execution of an arbitrary response script
(ie, we provide the the thing currently passed to t2u-fake-manager)
4. Happily exits when it gets EOF from the "manager"
LMK what you think.
Ian.
--
Ian Jackson <[email protected]> These opinions are my own.
Pronouns: they/he. If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.