· entry 4 of A software factory builds a media server

A Windows build, and more hardware than I planned

So far: 129 messages from me · about 11 h of my time · 160 agent-hours · about 37 € · 15,000 SLOC*

I originally planned this software for Mac and Linux. Yesterday I asked how much extra work a Windows version would be, and gave the factory a Windows computer to find out. Today I approved the port.

The first Windows build stopped at 235 compiler errors. Nearly all came from code that assumed Unix ways of opening files, starting programs and measuring time. With those parts fenced off, all 262 tests passed. The pictures and the record of what the server did matched Linux byte for byte on the first try.

I was wondering if a Windows build could improve the code itself. The answer was yes. Mac and Linux are close relatives, so code can look portable by accident. Windows is not. It refuses to delete a file that is still open, and it has no Unix-style signals for stopping programs. A test that leaves a file open fails now and then on Linux and every time on Windows, so it has to be fixed. The first find was small. Nothing stopped a checkout from quietly changing the line endings of the files the tests compare against byte for byte.

That turns the usual thinking around. More platforms normally means more work and less stable software. With agents doing the work, the extra platform is mostly a stricter test.

The test bench grew too. Until now the server ran on a Linux workstation with only built-in graphics and an 8 GB Mac mini. Now the factory also has a gaming laptop with an NVIDIA graphics card, a Fujitsu workstation with an NVIDIA Quadro card on a 4K monitor, two Windows computers, and my MacBook Pro at night. The Fujitsu also has two HDMI capture inputs, and I connected two of its graphics outputs to them. A test no longer has to trust what the server says it drew. It can record what actually left the card.

Windows was not the only work. The biggest other piece is a trial for the editor, the program the show is built in. The same small piece of it will be built twice, once with Qt, a long-established toolkit for desktop programs, and once entirely in Rust, and programs will score the two on Linux and on a Mac. Its harness is in place. Godot scenes can now describe themselves to the server, and the Godot add-on is packaged for Windows. Show control is specified too. The server will take commands over OSC, Art-Net and sACN. It answers over OSC from the start. Sending Art-Net and sACN out comes later.

Still nothing fancy to show as an image. All of this lives in tests and measurements, and the results come from the factory’s own checks, not mine.

* SLOC: source lines of code. The server’s own code only; tests, comments and blank lines are not counted.