[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Golang design session follow-up


  • To: Nick Rosbrook <rosbrookn@xxxxxxxxx>
  • From: George Dunlap <George.Dunlap@xxxxxxxxxx>
  • Date: Mon, 31 Aug 2020 17:30:38 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xWW2mS9H6XxzctpOrRTjLv6IyOQu9xAlXX3z1zPHF64=; b=fhQ8Bq3M36wLjd0QtgL61hK4NF5Ic5mti+ka5DxwGbaWl8J1b28sn2fKYkJEumKqw4TZqLl/SH5Edud05aOdu/bgdQ73H4vFklu3OzEoHqhrYNYPWvYMTzSjh+J3u/QWZ0mzLb03YPCUHflE52oisp4NVqDZx+sHjJZc7qejHqwNJtCJ1fYlFYDVIQTQ+6vcmDcgmJpaq27mvLaErLeUlSWhNvmhI63CX+6lGZuTz3zevPYSewOn8cfV7jDjcxCeRJO5uGKZ7ga6NJcXW2GHs8PY1WWc4Fs/QHTIXdMr0CWTllCmNyUn3GUvMopRsCLOl/cM3vqeGyg2rbBUp4Nj7w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gzvuLTVEk8unGcqudJyJ7v+jfDq0NS2aCHf283uYGkgCUPiQKiX2ga0vAMTLuXObjs/ouUyw1xpbRN81BN71Wy4BfyjcnhVmMqwWLLRbkrKop7HbCfNhGh6MoMBQGwxoeSkka5d91+/6IyjSjJa39hEEtNg8huLbLQ5ZWOeOHW4OkNxWEqCXJZU4PIe2LfjQo+9wnACpN4BNIY4aefRuM1MNhMt04HXjjaC+/fSX5gnrxod79/vGftbx02j0T1anZPK2lVUQNqtTtorSqgDa/hZC/0H/P1TXmayi9An2C8AEEqyLuv3wZo7yeZEvclA3cvmJAcVJYA8Qw/RylvktUw==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: "open list:X86" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxx>, "rosbrookn@xxxxxxxxxxxx" <rosbrookn@xxxxxxxxxxxx>
  • Delivery-date: Mon, 31 Aug 2020 17:30:55 +0000
  • Ironport-sdr: pvaf1+/FkIHFfPGkDbQv/yJVttyTZTErccOOxL3DScvukcadMdi5/xxugGfhVCbAvyFIMa5TuH pqVk/gUIWcxkqhTCtwVrO2kyqR6ovCFJ+oVRa+v959iQz6dw9lMq7HkbkZHLF+M9UYFmX79yma Z+0gShqqCw55O0dZEdxkKnip8vM6mcUKmyRz6yoPDFk7jeY28BtKn8K7J14Dt+5ehFXD4yjJuJ yx94U2j3J6QNOOOOtkiDiSomer4zVptNx39U3Bwd1Q4uxP2DNSb16H4WzmWxhZjd2iay5H0ae8 6yc=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWXvbkqZX3isiLZUWTcowoxjQWaKlN6fcAgAA0ZICABGBsAIAAPCoA
  • Thread-topic: Golang design session follow-up


> On Aug 31, 2020, at 2:55 PM, Nick Rosbrook <rosbrookn@xxxxxxxxx> wrote:
> 
> On Fri, Aug 28, 2020 at 07:05:08PM +0000, George Dunlap wrote:
>> 
>> 
>>> On Aug 28, 2020, at 4:57 PM, George Dunlap <george.dunlap@xxxxxxxxxx> wrote:
>>> 
>>> 
>>> 
>>>> On Jul 21, 2020, at 1:35 AM, Nick Rosbrook <rosbrookn@xxxxxxxxx> wrote:
>>>> 
>>>> # Long-term home of the package
>>>> 
>>>>  Ian: Autogenerated stuff is becoming more annoying.
>>>> 
>>>>  Delete all the libxl auto-generated stuff from staging & master, and have 
>>>> "output branch".
>>>> 
>>>>  The reason we have these in-tree is that otherwise you can't build *from 
>>>> git* if you don't 
>>>>  have new enough versions of the right tools.
>>>> 
>>>>  Distribution: Make a repo on xenbits!
>>> 
>>> So thinking about this: 
>>> 
>>> The first plan I had was to have a script in tools/golang/xenlight (and/or 
>>> the Makefile), which would be handed a directory, and would then:
>>> 
>>> 1. Sync static files from tools/golang/xenlight into that directory
>>> 
>>> 2. Run gengotypes.py, having the resulting generated files put into that 
>>> directory
>>> 
>>> 3. Run `git diff` in the target directory; if there are any changes, then 
>>> automatically run `git commit` to check in the changes.
>>> 
>>> That way you could just set up a cron job to sync things over on a regular 
>>> basis.
>>> 
>>> Thinking about GPL considerations, however, you’d also want to include 
>>> libxl_types.idl and idl.py.  And then of course, you should also include a 
>>> way to build the generated code from those two.
>>> 
>>> At which point… would it make sense to just move the package out to its 
>>> separate repo entirely?  I.e., have actual development happen in the repo 
>>> which ends up being cloned in the end?
>>> 
>>> Obviously there are nice things about having the code in the same repo; but 
>>> there’s also something satisfying about being a full downstream.
>>> 
>>> I was actually thinking it might make sense to put the repo at 
>>> https://gitlab.com/xen-project/go-xenlight , to try out that as a 
>>> development model.
> Would that mean completely moving off of xen-devel for development? I can't 
> think of a huge reason why we wouldn't be able to do this if we wanted.

I mean obviously the changes to libxl_types.idl and idl.py would have to happen 
on xen-devel; but yeah, changes to the external repo would happen within gitlab.

>> 
>> I’ve put a sort of draft module up at https://gitlab.com/martyros/go-xen ; 
>> you can test it by adding the "gitlab.com/xen-project/go-xen/xenlight” 
>> package, but adding the following line to the go.mod of the test program:
> I have a couple of patches I was going to send out on xen-devel today. I 
> could PR them to this repo instead (or in addition) if you want to try out 
> the gitlab workflow. 

Yeah, we could give that a try.

 -George

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.