[Libre-soc-bugs] [Bug 190] Setup Gitlab CI Runner for Kazan on a computer
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Tue Mar 29 12:14:58 BST 2022
https://bugs.libre-soc.org/show_bug.cgi?id=190
Jacob Lifshay <programmerjake at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.libre-soc.org/
| |show_bug.cgi?id=793
--- Comment #36 from Jacob Lifshay <programmerjake at gmail.com> ---
started working on this again after some prompting:
https://libre-soc.org/irclog/%23libre-soc.2022-03-29.log.html#t2022-03-29T08:46:00
The old script I wrote to do git mirroring didn't work very well -- the Salsa
admins told me to turn it off because it was abusing their server by pushing
nothing every 1 or 5min (icr which).
In order to fix that, I modified the code from
https://git.sr.ht/~janbaudisch/git-mirror
to only push to the target repo if there were changes.
I also added debian packaging and modified it to use more standard directories
for debian. it runs from a systemd timer. I also added tests.
Modified repo:
https://salsa.debian.org/Kazan-team/git-mirror
git has no good mechanism that I could find to tell you if `git fetch` did
anything, so I just set it to create 2 local repos and push from one to the
other (using the ext protocol to call git-receive-pack -- avoiding needing to
go through ssh or some other internet thing). The target repo has a
post-receive hook that pushes to the final remote repo, since post-receive is
only called when things change.
(all of this would be avoided if luke would just install a post-receive hook on
git.libre-soc.org, but he said no iirc)
I'll install it on the build server after getting some sleep.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list