Skip to content
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

Fixes and improvements #109

Merged
merged 9 commits into from
Apr 7, 2020
Merged

Fixes and improvements #109

merged 9 commits into from
Apr 7, 2020

Conversation

titpetric
Copy link
Contributor

No description provided.

titpetric and others added 9 commits April 3, 2020 11:42
When running `go test -race ./...`, a race condition is reported for a fake
implementation of a filesystem for TestCheckAndStore. A mutex lock has been
added into the structure functions and test to avoid the error report.

Fixes sourcegraph#107
A special checker has been implemented that runs external commands via os.Exec.
This opens up the possibility of implementing more complex, protocol-aware checks,
without necessarily implementing a custom checker in Go code.
With the upgrade to a recent go version, we're upgrading to use go modules.
Makefile was added to provide the proper build commands, test commands and
disable cached test output with -count=1.
In order to support building with CGO_ENABLED=0, build tags were added to the
sql filesystem implementation. Sqlite requires cgo, and it now needs to be
explicitly enabled with `-tags sql` option at build time.

Fixes sourcegraph#102
Tcpchecker tests were failing due to expired self signed certificates. This commit
adds new certificates, a Makefile for regenerating them, and adds test output in case
of similar certificate errors.

Fixes sourcegraph#108
@beyang
Copy link
Member

beyang commented Apr 3, 2020

LGTM

@beyang beyang merged commit 8ffb973 into sourcegraph:master Apr 7, 2020
This was referenced Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants