~sircmpwn/builds.sr.ht#58: Implement build caches

We should implement some kind of ring buffer of build caches on the build runners. If the runner has a cache, it uses it; if not, oh well.

Status
REPORTED
Submitter
~sircmpwn
Assigned to
No-one
Submitted
1 year, 10 months ago
Updated
6 months ago
Labels
No labels applied.

~tristan957 7 months ago

This is going to be a great feature. I am currently building a Go project and my dependencies get downloaded for each task. Temporarily there could be some sort of before_tasks key in the manifest, that is run at the same level as the distro package installation. I could then run go get on all my dependencies. Thoughts?

~sircmpwn 7 months ago

What advantage would that provide over just running go get in a normal task?

~tristan957 7 months ago

Referring to this build: https://builds.sr.ht/~tristan957/job/11249.

My dependencies are fetched once per task. Am I doing something wrong?

~tristan957 7 months ago

https://git.sr.ht/%7Etristan957/goofy/tree/builds-ci/.build.yml

~sircmpwn 7 months ago

That entire page represents a job and each log represents a taskin that job. So far as I can tell the only time your (go) dependencies are fetched is in the build task, right?

~tristan957 7 months ago

and the test task

~tristan957 7 months ago

I'll pull a different build. One sec. That on efailed due to docker for some reason

~tristan957 7 months ago

Wait no. I am stupid. Never mind my comments :)

~sircmpwn 7 months ago

Ah, docker hangs on builds.sr.ht for unknown reasons, I'm afraid.

https://github.com/moby/moby/issues/37575

I don't really know what to do about this.

~tristan957 7 months ago

Yeah that is interesting to say the least. And I thought Docker within Docker was funky. I'll follow the issue for fun though

~andrewrk 6 months ago

What's the sr.ht way to say I am also interested in this feature ?

~sircmpwn 6 months ago

There isn't, by design. You could mention it in IRC, though.