[go-nuts] Re: [golang-dev] Re: All the Go project history, live in RAM

2017-05-18 Thread Brad Fitzpatrick
On Thu, May 18, 2017 at 1:38 PM, Dmitri Shuralyov 
wrote:

> Another small question.
>
> https://godoc.org/golang.org/x/build/maintner#GerritProject.Server says:
>
> > Server returns the Gerrit server, such as "go.googlesource.com".
>
> I thought that go.googlesource.com was a Gitiles server, and
> go-review.googlesource.com is where the Gerrit server is (according to
> what it says on the footer). I just want to understand better, but what
> kind of server is go.googlesource.com then? Or is it multiple
> servers/protocols at same URL?
>

They're a mix and there are HTTP load balancing rules making some
go.googlesource.com endpoints go to Gerrit, so we just canonicalize them
all down to the shorter form (without "-review").


> Thinking more about it, is it Gerrit that's doing the actual git
> repository hosting, and reviews at go-review.googlesource.com, but
> Gitilies is just an HTTP frontend to display (read-only) the underlying
> Gerrit git repo?
>
> (I ask because the two may have different APIs, so I want to better
> understand what's available/possible.)
>

Ignore their underlying APIs. We should have all the data in the
maintner.Corpus data structure. If we're missing something, we can add it,
but I'm not aware of anything.

We're definitely missing some accessor methods. They're being added as
needed.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: [golang-dev] Re: All the Go project history, live in RAM

2017-05-18 Thread Brad Fitzpatrick
On Thu, May 18, 2017 at 12:57 PM, Dmitri Shuralyov 
wrote:

> The data is generally under 1 second behind reality, thanks to the
>> webhook+incoming-SMTP server we run now at https://pubsubhelper.golang.
>> org/ to get updates from GitHub & Gerrit.
>>
>
> Just a quick implementation question related to that. I understand you use
> Webhooks to get data from GitHub, and incoming-SMTP server to get updates
> from Gerrit, is that right?
>
> Are you aware of/have you considered/is it possible to use Gerrit's hooks
> to get updates from Gerrit? I.e., https://review.
> openstack.org/Documentation/config-hooks.html.
>
> I'm not proposing/suggesting anything at this time, just inquiring.
>

Gerrit's hooks only work for single-process non-load balanced installs.
They don't work for *.googlesource.com instances (Google's hosted versions
backed by Bigtable/Spanner etc)

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.