← Back to context

Comment by embedding-shape

10 hours ago

The best CI platforms let you "Rebuild with SSH" or something similar, and instead of having the cycle of "change > commit > push > wait > see results" (when you're testing CI specific stuff, not iterating on Makefiles or whatever, assuming most of it is scripts you can run both locally and in CI), you get a URL to connect to while the job is running, so you can effectively ensure manually it works, then just copy-paste whatever you did to your local sources.

I use that a lot with SourceHut: after a build fails, you have 10 minutes to SSH into the machine and debug from there. Also they have a very nice "edit manifest and run" feature that makes it easy to quickly test a change while debugging.

Are there other platforms allowing that? Genuinely interested.

  • > after a build fails, you have 10 minutes to SSH into the machine and debug from there.

    Ah, that's like 90% of the way there, just need to enable so the SSH endpoint is created at the beginning, rather than the end, so you could for example watch memory usage and stuff while the "real" job is running in the same instance.

    But great to hear they let you have access to the runner at all, only that fact makes it a lot better than most CI services out there, creds to SourceHut.

    • > just need to enable so the SSH endpoint is created at the beginning

      Maybe it is, I've never tried :-). I don't see a reason why not, probably it is.

There are a couple of GitHub actions that let you do this.