On Mon, Apr 19, 2021 at 4:10 PM 'Davis Goodin' via golang-dev
<
golan...@googlegroups.com> wrote:
>
> About setting up a Linux system, I'm not sure I understand. I'm running on Ubuntu, and I've also run them on a container based on golang/build env/linux-x86-stretch/Dockerfile (Debian). I also ran them on Fedora (without a Docker container). The basic tests run fine with the src/run.bash script, and I've been using "go tool dist test" with "GO_BUILDER_NAME" and other env vars set to emulate how the tests run on the builders.
>
> I've been poking around at "dashboard/builders.go" in golang/build to figure out what I need to do to run each style of tests. From what I've seen in e.g. "cmd/coordinator/coordinator.go", it appears to be tightly linked to buildlets. I haven't been able to find a way to run the "go tool dist test" commands locally rather than on a buildlet.
>
> Is there a way to run the tests without a buildlet and be sure the tests are running the same way they would in a buildlet?
Likely I don't understand what you are trying to do. I thought you
were comparing tests across different kinds of systems.
If you just want to compare your test runs against the builders on the
same kind of system, then I wouldn't bother. The builders try to
basically do the same thing as run.bash, so just running run.bash
should be fine. There are some exceptions, but those are designed to
not matter. You can remove those exceptions by setting the
environment variable GO_BUILDER_NAME to some non-empty string; it
shouldn't matter what.
Ian
> On Monday, April 19, 2021 at 5:42:41 PM UTC-5 Ian Lance Taylor wrote:
>>
>> On Mon, Apr 19, 2021 at 3:20 PM 'Davis Goodin' via golang-dev
>> <
golan...@googlegroups.com> wrote:
>> >
>> > Ah, that's unfortunate. Yeah, "dist test -v" doesn't show many skips, and that's why I modified it to pass "-v" to the subcommands--I knew there were some skips that weren't being logged. (Especially in short mode.)
>> >
>> > When I grep "SKIP" in my extra-verbose linux-amd64-longtest log, I see ~550 skips:
>> >
https://gist.github.com/dagood/2bc08e37da295c2022b9196572d378a4
>>
>> OK, that's more than I expected.
>>
>> I did a spot check of ten at random, and they were all unimportant.
>> But it would be tedious to check all of them.
>>
>>
>> > I suppose it's not necessarily impossible to review--it does look like each one has an explanation on the line above--but it's a lot. :) A baseline to get rid of some of them is what I was hoping for when I was looking around on
https://build.golang.org.
>>
>> I don't think we have that information.
>>
>>
>> > Am I overthinking the verbosity? Is "-v" on the inner test commands not necessary to do this kind of check?
>>
>> I would be surprised if it's necessary, but I can't prove that it's
>> not required.
>>
>>
>> > The next thing that comes to mind is for me to try to set up the Go buildlets/coordinator/etc. locally to try to get an extra-verbose baseline. There's still the possibility of my setup going wrong somewhere and giving me a bad baseline anyway... but it seems like it might be my best option.
>>
>> Or just set up a Linux system and run the tests. You don't need a
>> whole buildlet.
>>
>> Ian
>
> --
> You received this message because you are subscribed to the Google Groups "golang-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
golang-dev+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-dev/278ce66e-b79c-4d60-8e96-19a6269f1f81n%40googlegroups.com.