-
Notifications
You must be signed in to change notification settings - Fork 17
#117 - fix data races #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mkenney
wants to merge
22
commits into
master
Choose a base branch
from
117/data-race
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
620b9fc
create a net/http/httptest based websocket service
mkenney 2465670
add additional mutexes
mkenney 1f85aa0
use mock websocket service for tests
mkenney 8ba547a
PR feedback, add 1.11 to build
mkenney 37a83af
add useful docker-compose
mkenney 78ec326
cleanup
mkenney ec6159e
cleanup connection handling
mkenney 7ab2e1d
cleanup connection handling
mkenney 5bd3a54
update deps
mkenney 6d6c23a
update remaining tests
mkenney 4c6c8c4
extend test timeout
mkenney 3bde253
debugging
mkenney 5bb23f8
data race issue
mkenney 49087f7
remove unused return values
mkenney d975969
cleanup interface usage
mkenney b1b038f
ci feedback
mkenney f1393c4
restore socketer interface, cleanup mutexes
mkenney 9ae5f2d
ci feedback
mkenney d45115c
update missed test
mkenney 8945eda
fix zombie goroutines
mkenney 5de2a4b
mux update
mkenney 9388e35
save
mkenney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,40 @@ | ||
#!/bin/sh | ||
set -e | ||
docker pull golang:1.10-alpine | ||
docker run \ | ||
--rm \ | ||
-v $(pwd):/go/src/github.com/mkenney/go-chrome \ | ||
--entrypoint="/go/src/github.com/mkenney/go-chrome/.travis.entrypoint.sh" \ | ||
golang:1.10-alpine | ||
|
||
exit_code=0 | ||
|
||
go get -v github.com/golang/lint/golint | ||
[ "0" = "$?" ] || exit 1 | ||
|
||
go get -u github.com/golang/dep/cmd/dep | ||
[ "0" = "$?" ] || exit 2 | ||
|
||
dep ensure | ||
[ "0" = "$?" ] || exit 3 | ||
|
||
for dir in $(go list ./... | grep -v vendor); do | ||
echo "golint $dir" | ||
result=$(golint $dir) | ||
if [ "" != "$result" ]; then | ||
echo $result | ||
exit_code=5 | ||
fi | ||
if [ "0" != "$exit_code" ]; then | ||
exit $exit_code | ||
fi | ||
done | ||
|
||
rm -f coverage.txt | ||
for dir in $(go list ./... | grep -v vendor); do | ||
GOCACHE=off go test -race -timeout 300s -coverprofile=profile.out $dir | ||
exit_code=$? | ||
if [ "0" != "$exit_code" ]; then | ||
exit $exit_code | ||
fi | ||
if [ -f profile.out ]; then | ||
cat profile.out >> coverage.txt | ||
rm profile.out | ||
fi | ||
done | ||
|
||
exit $exit_code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3.5' | ||
services: | ||
chrome: | ||
container_name: chrome | ||
hostname: chrome | ||
image: mkenney/chromium-headless:latest | ||
ports: | ||
- 9222:9222 | ||
entrypoint: sh | ||
command: | ||
- "-cexu" | ||
- "/usr/bin/google-chrome --addr=localhost --port=9222 --remote-debugging-port=9222 --remote-debugging-address=0.0.0.0 --disable-extensions --disable-gpu --headless --hide-scrollbars --no-first-run --no-sandbox" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.