this post was submitted on 19 Jul 2023
6 points (100.0% liked)
Go programming language discussion
1545 readers
2 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Thanks, glad you checked them out! Don't worry about triggering jobs, it's a demo instance, doesn't hurt if you do some builds. There's a rate limit of 8 jobs concurrently and the build artifacts are cleaned up pretty frequently.
If you wanted to use it as a local build manager thingie, it would be pretty easy to set up in a container (ugh) or locally and just point at localhost: ... with your web browser. But go stuff is usually so easy to build it might not be worth it :)
Unsure what you mean about the recent job status idea -- can you elucidate more? I'm open to cool ideas...
I meant kinda like what GitHub and GitLab have in its UI, showing the job status from the most recent commit:
Though it doesn't even have to be a part of the git repo UI. You can link an image badge in the projects README markdown that fetches the status of the most recent job.
Almost every Big™ Modern™ project on GitHub/GitLab has something like this. For example, bubbletea has a "build passing" badge that is linked with its most recent job from GitHub CI. shields.io has them too.
Hmm! OK I'll think about how to do that, might be a nice addition. Thanks.
BTW please have a barf bucket beside you if you examine the source code for bacillus ... it's all inline, raw ad-hoc HTML and javascript to build the UI :). I was thinking of redoing it someday with htmx, without getting too fancy (I am not a web developer and loathe JS in general), but it might add some graceful degradation for non-javascript use of the CI interface (though I don't know if live updates of build status would even be possible/practical without at least some JS).
Update: done! I added two endpoints that a page (like a github repo's README.md) can fetch to get a simple text/plain "lastStatus:n" or image/jpeg pass/fail icon.
README.md update
I find my browser doesn't always show the newest CI status right away though, even though the server sends the JPG with an HTTP Cache-Control: no-cache. Hmmm.
It's primitive and doesn't give all the nice status in your screenshot above like build time, branch name... I should think about it more I suppose.
Thanks for the idea!
That's actually so awesome! I noticed you're already using it in your other projects that use bacillus.
I hope one day I may use bacillus myself. Keep on with its development!