I've been working on setting up Travis CI in some of my repositories to do automatic test builds. I found that verifying sketches and some other actions using Arduino IDE 1.8.2 or the hourly build causes Travis CI to generate many warnings:
$ arduino --verify --board arduino:avr:uno /usr/local/share/arduino/examples/01.Basics/Blink/Blink.ino
Picked up JAVA_TOOL_OPTIONS:
Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
[SocketListener(testing-gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-travis-ci-prod-5-internal.local.)] WARN javax.jmdns.impl.DNSIncoming$MessageInputStream - bad domain name: possible circular name detected. Bad offset: 0x3fff at 0x72
[SocketListener(testing-gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-travis-ci-prod-5-internal.local.)] WARN javax.jmdns.impl.constants.DNSRecordType - Could not find record type for index: 65535
[SocketListener(testing-gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-travis-ci-prod-5-internal.local.)] WARN javax.jmdns.impl.DNSIncoming - Could not find record type: dns[query,10.10.8.142:5353, length=116, id=0x0]
0: 0000000000010000 000100004c746573 74696e672d676365 2d33613461336135 ........ ....Ltes ting-gce -3a4a3a5
20: 362d363663652d34 6261652d61333363 2d30653366343562 35353535652d632d 6-66ce-4 bae-a33c -0e3f45b 5555e-c-
40: 7472617669732d63 692d70726f642d35 2d696e7465726e61 6c056c6f63616c00 travis-c i-prod-5 -interna l.local.
60: 00ff0001c00c0001 000100000e100004 0a0a088e ........ ........ ....
[SocketListener(testing-gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-travis-ci-prod-5-internal.local.)] WARN javax.jmdns.impl.constants.DNSRecordClass - Could not find record class for index: 65535
[SocketListener(testing-gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-travis-ci-prod-5-internal.local.)] WARN javax.jmdns.impl.DNSIncoming$MessageInputStream - bad domain name: possible circular name detected. Bad offset: 0x3fff at 0x72
[SocketListener(testing-gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-travis-ci-prod-5-internal.local.)] WARN javax.jmdns.impl.constants.DNSRecordType - Could not find record type for index: 65535
[SocketListener(testing-gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-travis-ci-prod-5-internal.local.)] WARN javax.jmdns.impl.DNSIncoming - Could not find record type. domain:
dns[query,10.10.8.142:5353, length=116, id=0x0, questions=1
questions:
[DNSQuestion@1606642947 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-tr.ci-prod-5-internallocalϰ
ï.]]
question: [DNSQuestion@1606642947 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-tr.ci-prod-5-internallocalϰ
ï.]
0: 0000000000010000 000100004c746573 74696e672d676365 2d33613461336135 ........ ....Ltes ting-gce -3a4a3a5
20: 362d363663652d34 6261652d61333363 2d30653366343562 35353535652d632d 6-66ce-4 bae-a33c -0e3f45b 5555e-c-
40: 7472617669732d63 692d70726f642d35 2d696e7465726e61 6c056c6f63616c00 travis-c i-prod-5 -interna l.local.
60: 00ff0001c00c0001 000100000e100004 0a0a088e ........ ........ ....
[SocketListener(testing-gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-travis-ci-prod-5-internal.local.)] WARN javax.jmdns.impl.constants.DNSRecordClass - Could not find record class for index: 65535
[SocketListener(testing-gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-travis-ci-prod-5-internal.local.)] WARN javax.jmdns.impl.DNSIncoming - Could not find record class. domain: type: TYPE_IGNORE index 0
dns[query,10.10.8.142:5353, length=116, id=0x0, questions=1
questions:
[DNSQuestion@1606642947 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-tr.ci-prod-5-internallocalϰ
ï.]]
question: [DNSQuestion@1606642947 type: TYPE_IGNORE index 0, class: CLASS_UNKNOWN index 0, name: gce-3a4a3a56-66ce-4bae-a33c-0e3f45b5555e-c-tr.ci-prod-5-internallocalϰ
ï.]
0: 0000000000010000 000100004c746573 74696e672d676365 2d33613461336135 ........ ....Ltes ting-gce -3a4a3a5
20: 362d363663652d34 6261652d61333363 2d30653366343562 35353535652d632d 6-66ce-4 bae-a33c -0e3f45b 5555e-c-
40: 7472617669732d63 692d70726f642d35 2d696e7465726e61 6c056c6f63616c00 travis-c i-prod-5 -interna l.local.
60: 00ff0001c00c0001 000100000e100004 0a0a088e ........ ........ ....
Sketch uses 928 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
Minimal test build with Arduino IDE 1.8.2:
Minimal test build with hourly build of the Arduino IDE:
Note that I'm not referring to the usual warnings output by the compiler during compilation. I don't see any problems when I run the equivalent commands from the command line using these IDE versions on my Windows machine.
arduino --install-boards actions cause the same sort of warnings in Travis CI builds, even when installing the official Arduino packages such as Arduino SAM Boards, Arduino SAMD Boards, etc. arduino --pref and arduino --get-pref do not cause the warnings.
Using Arduino IDE 1.8.1 or older there are no warnings:
It doesn't cause the build to fail but it makes it very difficult to read the output, especially for a more complex build. I have no prior experience with Travis CI.
Is this caused by a bug in the Arduino IDE? Are there any changes I can make to my .travis.yml file to fix or at least hide these warnings?
Related issue report: SocketListener warnings in Travis log when using Arduino IDE 1.8.2 · Issue #1 · per1234/arduino-ci-script · GitHub