Closed at-wat closed 4 years ago
We might be able to cover all repos now! https://stackoverflow.com/a/54919732 it looks like having to fetch Go just for WASM might not be true (just misconfigured path)
If we can setup a build matrix to do i386 + ARM + x64 for test (but x64 only for lint) I think that should cover everything.
We might not need to split for lint+test! If we can get everything standardized long term I think we will be in a much better spot.
I will see if I can pion/webrtc
to not need its customization. It is the only repo I am aware of that does extra stuff.
Sounds great! A few repos are also excluded temporary.
.travis.yml
..golangci.yml
per repository until the repository addresses them..travis.yml
contains test on the latest two Go versions.Feel free to add commits to this branch.
turn: golang-ci version is 1.19.1 which has some extra linter which fails on some other repos
It might be better to just move to 1.19 and disable new linters by .golangci.yml
per repository until the repository addresses them.
Fixing wasm test at https://github.com/pion/quic/pull/16
webrtc
pkg requires wrtc
package.
Need to setup hook in go_js_wasm_exec
.
I tried to use wasmbrowsertest and Chrome to remove test dependency to wrtc
.
Test works fine, but browser can't output coverage report.
https://github.com/pion/webrtc/pull/973
Running tests for WASM on all repos looks messy as WASM is still in Minimum Viable Product stage.
e.g. IP socket is not yet supported and net_fake.go
is used in Go1.13. A lot of the tests using net.Conn
fail to be built, deadlock, or cause runtime error due to a bug in net_fake.go
.
panic: interface conversion: net.sockaddr is *net.UDPAddr, not *net.TCPAddr
(dtls, ice, sctp, transport, turn, webrtc fail)
It should be ready after merging WASM fix PRs.
I've gone ahead and approved them all, since they were just a build tag.
commit from github web ui looks using CR+LF.
Merging now. Will try syncing to the repos.
Common CI setting for the latest ~one~ two Go versions.