Saturday, 2022-05-07

*** tpb <tpb!~supybot@underwood.mithis.com> has quit IRC01:00
*** tpb <tpb!~supybot@underwood.mithis.com> has joined #f4pga01:00
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #f4pga01:00
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC07:32
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #f4pga07:49
lkclmliberty: we (libre-soc) are entirely self-hosted [libre means libre] and use a combination of gitolite3 and gitweb. with a little bit of sponsorship from mythic-beasts, i'm paying GBP 12 a month for a VM which has 100%-guaranteed provisioning09:53
lkcl(and a 100% guaranteed peering-backed ISP provisioning)09:54
lkcla lot of co-lo / ISPs / VM-hosters will do "overprovisioning" i.e. they say "we provide a 4GB 4-core VM for only! USD! 4! a month! 1Git! unlimited!"09:55
lkcland actually they have 8,000 customers hosted on a single system with only 36 cores and only a 10 GbE backbone.09:56
lkclsuch providers are relying on *average* CPU, memory, and network usage never exceeding peak / sustained09:57
lkclso be really careful and ask the right questions of your VM/colo/hosting/ISP! or just cut out the hassle that'll be and contact mythic-beasts.09:59
lkcli also strongly recommend you don't use self-hosting gitlab unless you absolutely absolutely need it. the resource utilisation even at idle is absolutely insane. i tried: the mythic-beasts VM sat at 60% CPU utilisation with zero usage.10:02
lkclif you need bugtracking and etc. etc. then gitea looks to be extremely light-weight for what it does, and the OpenPOWER Foundation has (thanks to toshywoshy) a self-hosted gitea10:03
lkcltoshywoshy also set up a replication-system to mirror gitea-hosted repos to github which neatly solves the "isolation" problem that self-hosting causes10:04
lkclbottom line is, it depends what you want to do. are you expecting other contributors to submit patches/modifications to the fork? do you have co-developers or co-contributors? are you expecting to receive pull-requests?10:09
lkclall of these things can be done without requiring github (it just takes your time and your effort to set up)10:10
lkclor10:10
lkclyou _could_ use salsa.debian.org or savannah.nongnu.org which are quite high on the GNU Ethical Hosting Criteria and would save you a lot of hassle10:11
F4PGASlackBridge<umartinezcorral> Note in https://github.com/chipsalliance/f4pga-examples/blob/main/.github/scripts/generate_job_matrix.py#L21-L28 that 'runs_on' is set depending on argv. Precisely, the first CLI arg is used to decide which runner to use. In the workflow, the context provided by github is used (`github.repository` : https://github.com/chipsalliance/f4pga-examples/blob/main/.github/workflows/sphinx-tuttest.yml#L21. Hence,11:10
F4PGASlackBridgeit's up to you; you can modify the (python) script that read the env/args and decide when to run on self-hosted.11:10
F4PGASlackBridge<umartinezcorral> Naturally, you will not be able to upstream those tweaks to the main/master branch of the main repo. You will need to keep your own branch 1-2 commits ahead of that.11:11
F4PGASlackBridge<umartinezcorral> See, for instance, this feature branch in my fork, where I change the set of tests (I want CI in my fork to be faster than the upstream): • https://github.com/umarcor/f4pga-examples/commits/latest-arch-defshttps://github.com/umarcor/f4pga-examples/commit/4275748f06453913fd2997d92c4872e41cdc9ec311:13
F4PGASlackBridge<umartinezcorral> If you want to combine scheduled runs with your customisation, that's slightly trickier, but I believe you don't need it for now.11:14
F4PGASlackBridge<umartinezcorral> Overall, note that this is knowledge related to GitHub Actions, not specific to F4PGA and not applicable on other CI services.11:15
F4PGASlackBridge<umartinezcorral> @YCin, please provide a MWE (reproducer). The counter example for arty_35 using f4pga/symbiflow is tested in the CI of four different repositories at least. Therefore, the example itself is known to work. However, there might be issues with how you installed/setup the environment. Maybe you do need to update/recreate it. I just tried the followin on Win10: ```# git clone11:40
F4PGASlackBridgehttps://github.com/chipsalliance/f4pga-examples # cd f4pga-examples # docker run --rm -v $(pwd):/wrk -w /wrk gcr.io/hdl-containers/conda/f4pga/xc7/a50t bash -lec 'TARGET="arty_35" make -C xc7/counter_test' ... The entire flow of VPR took 18.1017 seconds. FASM extra: top_fasm_extra.fasm writing final fasm cd /wrk/xc7/counter_test/build/arty_35 && symbiflow_write_bitstream -d artix7 -f top.fasm -p xc7a35tcsg324-1 -b top.bit11:40
F4PGASlackBridgeWriting bitstream ... make: Leaving directory '/wrk/xc7/counter_test'```11:40
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC11:43
F4PGASlackBridge<umartinezcorral> @lkcl it's been some time (4-5 years) since I looked into gogs/gitea. How are you doing CI? Is it still using 'drone' as the main CI service?11:49
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #f4pga12:22
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC12:36
lkclumartinezcorral: we've a developer who has a personal machine at home, with a hell of a lot more RAM, and they've installed gitlab CI on it14:07
lkclthen it's joined via a VPN running on the mythic-beasts-hosted VM, and nginx proxy redirects make it public without being public14:08
lkclthe irony is that gitlab-CI turns out to be wholly unsuitable for FPGA-based CI, due to heavy restrictions on containers14:08
lkclwe've had to write a CI test in nmigen that performs an ssh out of the container!14:09
lkclsigh14:09
lkclotherwise you can't get access through libusb to perform the upload of the bitstream to the actual physical Arty-A7.14:09
lkclchecking that it works is done not through a camera to blinky-lights, but instead to a nmigen UART-demo:14:10
lkclhttps://git.libre-soc.org/?p=utils.git;a=blob;f=uart_demo.py;h=76a8b0900a9c80c7a8307a242414f97ed2179f1c;hb=b747e6849a82b0388f1d70345c1422a34e61aa0414:10
tpbTitle: git.libre-soc.org Git - utils.git/blob - uart_demo.py (at git.libre-soc.org)14:10
lkclthen that's dead-easy to use standard serial-console connection to check the response14:11
lkclor14:11
lkclagain14:11
lkclit _would_ be if gitlab-CI actually allowed access to USB-serial console, sigh. hence the ssh'ing out14:12
lkclthe good news is that the uart-demo compiles in seconds with nextpnr-xilinx14:12
*** jn <jn!~quassel@user/jn/x-3390946> has quit IRC15:57
*** gatecat <gatecat!sid281702@id-281702.helmsley.irccloud.com> has quit IRC15:57
*** kev009 <kev009!~quassel@69.160.37.57> has quit IRC15:57
*** jn <jn!~quassel@user/jn/x-3390946> has joined #f4pga15:57
*** gatecat <gatecat!sid281702@id-281702.helmsley.irccloud.com> has joined #f4pga15:57
*** kev009 <kev009!~quassel@69.160.37.57> has joined #f4pga15:57
*** TMM_ <TMM_!hp@amanda.tmm.cx> has quit IRC17:35
*** TMM_ <TMM_!hp@amanda.tmm.cx> has joined #f4pga17:36
*** Jumper <Jumper!~Jumper@ip70-171-35-50.ga.at.cox.net> has joined #f4pga18:20
JumperHowdy.18:49
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #f4pga19:13
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has quit IRC19:42
*** littlebobeep <littlebobeep!~alMalsamo@gateway/tor-sasl/almalsamo> has joined #f4pga19:50
*** Jumper <Jumper!~Jumper@ip70-171-35-50.ga.at.cox.net> has quit IRC23:38

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!