gknauth
2021-7-26 13:40:26

Is there a way to set the background color of a message%, or of the label of a choice% ?


djholtby
2021-7-26 13:40:59

I’m continuing to poke dynamic-rerequire and notice it doesn’t respect the use-compiled-file-check parameter, because get-module-code prefers .zo only when newer regardless of that parameter (unless you override the default choice using #:choose ). Should the get-module-code default be changed, or should dynamic-rerequire override the default?


samth
2021-7-26 13:55:33

I think having get-module-code respect that parameter when choosing the default seems sensible, although there might be something that breaks when you try it.


samth
2021-7-26 13:56:41

@greg the tests for http are failing regularly with an error about http://httpwatch.com\|httpwatch.com that I can’t replicate locally: http://drdr.racket-lang.org/57893/racket/share/pkgs/http/http/request.rkt


greg
2021-7-26 14:07:04

That’s strange because about 4 years ago I added a commit not to run the tests that do I/O on the package build server: https://github.com/greghendershott/http/commit/31382e11c8ebcb99d094f85d831a192d87cfc597


greg
2021-7-26 14:07:32

Is it possible that the environment variable PLT_PKG_BUILD_SERVICE is no longer defined there? Did that change recently??


samth
2021-7-26 14:07:45
  1. That error is on DrDr, not the pkg build service.

samth
2021-7-26 14:08:02
  1. DrDr has full internet access, so that shouldn’t be a problem

samth
2021-7-26 14:08:13
  1. This error was somewhat intermittent.

greg
2021-7-26 14:09:49

IIRC, sometimes things wouldn’t work due to (maybe) Travis CI or GitHub Actions being on white lists that maybe the package build server (or DrDr?) would not be. At least that was my working theory. Anyway things would work pretty consistently on Travis/GHA, and get tested that way, at least.


greg
2021-7-26 14:09:55

So the exclusion seemed to make sense.


greg
2021-7-26 14:10:09

Maybe I should do a similar exclusion for DrDr.


greg
2021-7-26 14:11:30

I think it’s the pragmatic thing to do, probably, at least for today.


greg
2021-7-26 14:12:18

I can root around the docs but do you happen to know some magic env var, for “I am running under DrDr”? (similar to PLT_PKG_BUILD_SERVICE)


samth
2021-7-26 14:12:49

the pkg build server has no internet access


samth
2021-7-26 14:12:52

so that’s different


greg
2021-7-26 14:21:21

OK I guess I don’t remember the history of that on the pkg build server, and the rationale for that commit.


greg
2021-7-26 14:21:48

All the tests including http://www.httpwatch.com\|www.httpwatch.com pass for me, locally, just like you reported. I’m not immediately sure what’s up between DrDr and http://httpwatch.com\|httpwatch.com.


samth
2021-7-26 14:22:03

There is an env var for DrDr (I think it’s DRDR)


samth
2021-7-26 15:02:33

If there’s something you can add to make it print more information that would be useful.


samdphillips
2021-7-26 16:16:03

Does DRDR have good DNS? Can you run nslookup or dig or host and resolve the name? tcp-connect: connection failed; host not found address: <http://www.httpwatch.com\|www.httpwatch.com>


samth
2021-7-26 16:18:00

the server is using 8.8.8.8 and gets good results from dig but failures with host, so maybe that’s what’s going on


samth
2021-7-26 16:18:27

nslookup also works correctly and uses 8.8.8.8


samth
2021-7-26 16:23:44

actually I have no idea what’s going on


samth
2021-7-26 16:24:23

dig <http://www.httpwatch.com\|www.httpwatch.com> fails, saying it used 8.8.8.8. But dig @8.8.8.8 <http://www.httpwatch.com\|www.httpwatch.com> succeeds. That’s on the drdr machine.


samth
2021-7-26 16:24:59

On my local machine some things work and some things don’t, with no pattern at all


samdphillips
2021-7-26 16:28:44

Hmm, is it only using 8.8.8.8 or is there another resolver?


samdphillips
2021-7-26 16:34:22

Sounds like <hand-wavy> caches and networks :ghost:


samth
2021-7-26 16:35:01

As far as I can tell, the drdr machine (which is called hurin) only uses 8.8.8.8


samth
2021-7-26 16:35:21

my local machine has a different dns server by default


samth
2021-7-26 16:35:29

which I think is my router


samth
2021-7-26 16:36:37

looking at 1.1.1.1, it gives the same answer everywhere


samth
2021-7-26 16:38:22

[samth@hurin:~ ] host -v <http://www.httpwatch.com\|www.httpwatch.com> Trying "<http://www.httpwatch.com\|www.httpwatch.com>" Host <http://www.httpwatch.com\|www.httpwatch.com> not found: 2(SERVFAIL) Received 35 bytes from 8.8.8.8#53 in 2021 ms [samth@hurin:~ ] host <http://www.httpwatch.com\|www.httpwatch.com> Host <http://www.httpwatch.com\|www.httpwatch.com> not found: 2(SERVFAIL) [samth@hurin:~ ] host <http://www.httpwatch.com\|www.httpwatch.com> <http://www.httpwatch.com\|www.httpwatch.com> is an alias for <http://httpwatch.azurewebsites.net\|httpwatch.azurewebsites.net>. <http://httpwatch.azurewebsites.net\|httpwatch.azurewebsites.net> is an alias for <http://waws-prod-blu-015.vip.azurewebsites.windows.net\|waws-prod-blu-015.vip.azurewebsites.windows.net>. <http://waws-prod-blu-015.vip.azurewebsites.windows.net\|waws-prod-blu-015.vip.azurewebsites.windows.net> is an alias for <http://waws-prod-blu-015.cloudapp.net\|waws-prod-blu-015.cloudapp.net>. <http://waws-prod-blu-015.cloudapp.net\|waws-prod-blu-015.cloudapp.net> has address 191.236.16.12


samth
2021-7-26 16:38:29

I have no explanation


samth
2021-7-26 16:38:35

that’s running in quick succession


samdphillips
2021-7-26 16:40:57

I tested with a ubuntu docker image configured to 8.8.8.8 and wasn’t able to reproduce.


samdphillips
2021-7-26 16:46:23

Host <http://www.httpwatch.com\|www.httpwatch.com> not found: 2(SERVFAIL) This makes me wonder if perhaps the resolver isn’t receiving an answer from 8.8.8.8 before a timeout. This assumes that it’s using UDP for DNS. And the system should be exhibiting the same behavior for other names.


djholtby
2021-7-26 17:55:11

greg
2021-7-26 18:52:34

From looking at the DrDr source I’m not confident DRDR is in the env for the program being tested. In good-init.sh it is defined — but not export ed. (Admittedly my shell script skills aren’t great.)


greg
2021-7-26 18:52:48

At http://drdr.racket-lang.org/help I do see this advice:

> What should I do if I know there is a problem but can’t fix it now? > > Have the program output raco test: @(test-random #t) to standard output. I wonder if I should do that??


greg
2021-7-26 18:53:09

That seems maybe orthogonal but idk.


samth
2021-7-26 18:53:12

That reduces the amount of email that some people get but not much


samth
2021-7-26 18:54:25

This isn’t really what random is intended for


greg
2021-7-26 18:55:59

Maybe I should check for the existence of /opt/svn/drdr (the value that good-init.sh sets its DRDR shell var to. That seems unlikely to exist in non-DRDR systems?


greg
2021-7-26 18:56:43

Something like (or (getenv "DRDR") (file-exists? "/opt/svn/drdr")).


greg
2021-7-26 18:57:47

Oops I meant directory-exists?.


greg
2021-7-26 18:58:29

(or (getenv "DRDR") (directory-exists? "/opt/svn/drdr")) is the least-worst test for running on DRDR, and therefore skipping the I/O tests, that I can think of, for now.


greg
2021-7-26 18:59:34

It’s a hack and it might break someday, but I could re-fix it, then.


greg
2021-7-26 18:59:49

I know @jeapostrophe is rarely on Slack but will ping anyway.


samth
2021-7-26 19:03:04

I would prefer not to skip this but instead to figure out what’s going on


samth
2021-7-26 19:07:27

and also if the environment variable is not set correctly we should fix that


samth
2021-7-26 19:49:11

In particular it seems like the problem is dns configuration on the machine and that should just be fixed


samth
2021-7-26 23:47:02

Ive changed the dns config which should help


greg
2021-7-27 01:01:37

10–4. I wonder if it’s relevant that http://drdr.racket-lang.org/57903/ for example shows <http://drdr.racket-lang.org/57903/pkgs/net-test/tests/net/dns.rkt> failing. Maybe the DNS config change you made will address that as well as the http package intermittent failures.


samth
2021-7-27 01:05:26

Unfortunately I now worry that I introduced that failure. I’ll have to check.


greg
2021-7-27 01:20:40

Well in that build there was no http package request failure, so I’m happy! Seriously — thanks for looking at this; let me know if there’s anything else I can do on my end.


samth
2021-7-27 01:49:21

I think that test will pass on the next run


samth
2021-7-27 01:49:38

or at least, I ran the binary currently under test on that file and it worked