Reintroduces the same changes as
https://github.com/sourcegraph/sourcegraph/pull/51104 minus
syntax-highlighter which we're unable to compile with the right
toolchain at the moment.
Tested as a full main-dry-run, as well as running the stack with compose
and checking indexing and syntax-highlighting.
Executors are also built correctly.
## Test plan
CI + manual test via compose.
---------
Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
Build the remaining docker images with bazel
Depends on:
https://github.com/sourcegraph/sourcegraph/pull/49228
## Test plan
CI
---------
Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
This adds alerts when sourcegraph is out of date:
- Months 1 & 2 outdated only admin is notified. Focus on upgrading being for features/bug fixes.
- At 3 months, inform admin they may be missing important security bug fixes, warn them users will be notified at 4+ months.
- 4 months, continue to inform admins of security risks but only inform users of bug fixes.
- 6+ months, we additionally inform users of security risks, but we keep it just as. a warning level alert.
- At +1 year, warnings turn to errors.
See site_alerts_test.go for completes spec.
It also removes animated alerts from Sourcegraph.
Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
This helps make builds more deterministic as well as easier to link pprof to
local source files. Added in go1.13. Description of trimpath below:
remove all file system paths from the resulting executable. Instead of
absolute file system paths, the recorded file names will begin with either
"go" (for the standard library), or a module path@version (when using
modules), or a plain import path (when using GOPATH).
We use a branch of godockerize which generates a build.sh and Dockerfile instead
of directly building the docker image.
https://github.com/sourcegraph/godockerize/tree/gen-build
This was run on all main entrypoints (excluding a few which already have a
build.sh / shouldn't be docker images):
go list -f '{{ if (eq .Name "main") }}{{.ImportPath}}{{ end }}' ./... \
| grep cmd | grep -v goreman | grep -v 'schemadoc' | grep -v /server \
| while read pkg; do godockerize build $pkg; done
The build.sh should likely be refactored into using a shared shell script. But
for now this gives us a nice and easy to change replacement.
This commit also removes godockerize from CI and our go.mod.