Re: [go-nuts] Re: Changing PWD ruins test caching

2024-02-08 Thread Kevin Burke
8671bffc7a3ec5201bb26a0eccecb5599259f0d0e63624375378b61cc00a0733 > => 516ef3f5e0d83ea893583f43f60e654775b3769b5f99f2de7b99487eae637298 > ok example (cached) > > > - sean > > On Thu, Feb 8, 2024 at 12:13 AM Kevin Burke wrote: > > > > Sorry for slow reply.

Re: [go-nuts] Re: Changing PWD ruins test caching

2024-02-07 Thread Kevin Burke
result in a spurious > dependency on the PWD variable: > > https://cs.opensource.google/go/go/+/master:src/os/file.go;l=340-345;drc=d961b12be9001cf8dbf8f52847607dbf84d94f8d > > On Thursday, November 23, 2023 at 1:50:04 PM UTC-5 Kevin Burke wrote: > >> We have some tests t

[go-nuts] Changing PWD ruins test caching

2023-11-23 Thread Kevin Burke
We have some tests that are pretty slow. I would like to use Go's test caching to skip them in our CI environment, if nothing in the code or the environment has changed. Our CI environment has a set of _agents_, each of which can run multiple jobs simultaneously. As a result, they check out

Re: [go-nuts] Help with sync.Cond failing to signal

2022-06-14 Thread Kevin Burke
;>> >>> See also: https://github.com/golang/go/issues/21165 >>> > On top of that, condition variables are fiendishly difficult to use: >>> they are prone to either missed or spurious signals [citation needed] >>> >>> - sean >>> >>

Re: [go-nuts] Help with sync.Cond failing to signal

2022-06-11 Thread Kevin Burke
eEvent, > essentially a proper serialization of events > > See also: https://github.com/golang/go/issues/21165 > > On top of that, condition variables are fiendishly difficult to use: > they are prone to either missed or spurious signals [citation needed] > > - sean > > &

[go-nuts] Help with sync.Cond failing to signal

2022-06-11 Thread Kevin Burke
Hi, Recently I inherited some code in production that was hitting an error case that I didn't think should be possible to hit. I reduced it down to this test case. To be clear, there are several different ways to improve the code here, but I'd like to understand why it's behaving the way it

Re: [go-nuts] Convert a go.mod file into checked out dependencies

2022-01-12 Thread Kevin Burke
Ah, yes, that would work but wouldn't include the git history... On Wednesday, January 12, 2022 at 12:28:49 PM UTC-8 robert...@gmail.com wrote: > https://go.dev/ref/mod#go-mod-vendor > > On Wed, Jan 12, 2022 at 10:58 AM Kevin Burke wrote: > >> Hi, >> Sometimes I ju

[go-nuts] Convert a go.mod file into checked out dependencies

2022-01-12 Thread Kevin Burke
Hi, Sometimes I just want to inspect third party code for a library, and/or edit it. I'm looking for a tool that will read all of the dependencies in a go.mod file and then check out all of the right versions of all of the source code into the right places in a $GOPATH. Does that exist?

[go-nuts] Avoiding duplication in parallel tests

2018-01-17 Thread Kevin Burke
I have a bunch of tests I would like to run in parallel; I think this is a common situation for database backed tests where you might need to establish a connection or a transaction, run a bunch of queries, and then truncate the database. Right now I have something like this: func testA(t

[go-nuts] Donating to Go/Go-adjacent causes

2017-12-21 Thread Kevin Burke
Hi, I asked about this last year, and thought I would post again, as it's the holiday season. I started a software consultancy last year, and I made a fair amount of money this year. A lot of my success was due to the Go programming language/community and I'd like to

[go-nuts] Starting an HTTP server and logging about it

2017-11-09 Thread Kevin Burke
I want to start an HTTP server, and then once it's started, log a message that the server has started. Here are the options for doing that: - log ahead of time. The message gets logged before the server starts listening on a socket, which means you might get the message and then an error

[go-nuts] Donating to Go/related causes

2016-12-24 Thread Kevin Burke
Hi, I started a software consultancy in July and I made a fair amount of money this year. A lot of my success was due to the Go programming language/community and I'd like to give back somehow. As far as I understand, the core Go team and the build environments etc.