Commit Graph

2698 Commits

Author SHA1 Message Date
Robert Lin
7b72d3a872
opentelemetry: upgrade all packages to v1.16/v0.81 (#54969)
OpenTelemetry versioning scheme is a bit convoluted but this upgrades
all OpenTelemetry-related packages together to around v1.16 (for Go SDK
packages) and v0.81 (for Collector packages, and the Collector itself) -
thankfully there were fewer breaking changes this time around. Big diff
is almost entirely `deps.bzl`

One of the more significant changes is we now have access to the
[finalized OpenTelemetry Metrics
API](https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.16.0),
which will come in handy for
https://github.com/sourcegraph/sourcegraph/issues/53775, as well as
various Collector improvements from recent releases:
https://github.com/open-telemetry/opentelemetry-collector-contrib/releases
I skimmed through the recent breaking changes and I don't think there's
anything that affects us

Update:
https://github.com/sourcegraph/sourcegraph/pull/54969#issuecomment-1638557302

## Test plan

```
sg run otel-collector jaeger
sg start
```

See v0.81 collector running:

```
[ otel-collector] 2023-07-14T21:37:54.709Z      info    jaegerexporter@v0.81.0/exporter.go:173  State of the connection with the Jaeger Collector backend{"kind": "exporter", "data_type": "traces", "name": "jaeger", "state": "READY"}
```

Do a trace, get a result from multiple services:


![image](https://github.com/sourcegraph/sourcegraph/assets/23356519/38129cea-f2df-472e-99cc-9b928cf3b086)

---------

Co-authored-by: Will Dollman <will.dollman@sourcegraph.com>
Co-authored-by: davejrt <davetry@gmail.com>
2023-07-17 10:48:19 -07:00
Camden Cheek
0e9756000c
Release: activate 5.1.4 release (#55023) 2023-07-17 16:57:35 +00:00
Keegan Carruthers-Smith
766a8e13cb
gomod: update zoekt to include ngram sort optimization (#54999)
Main motivation is to see the effect on performance for attribution
search.

Note that this included a bump in the otel version used since zoekt is
using a new version. This had a bit of a cascading effect on our third
party deps since they removed a package. So this bumps most 3rd party
packages that directly interacted with otel.

The changed commits are
7643f3b313...45f608ff95

- a176bde1a3 go get -u -t ./...
- e2e8aede00 Fix template documentation comments
- 25c1ea5177 all: observe missing Stats RegexpsConsidered and FlushReason
- 9abbb8b0d3 zoekt-indexserver: Prevent invalid config from causing an NPE
- 008a775ba8 zoekt-indexserver: use value format directive for bad conf warning
- f9d3a0e2e4 zoekt: add fgprof for full profiling
- 3d0bdd5c9c remove ngram offset code
- 45f608ff95 sort ngrams before looking them up

Test Plan: tested in the zoekt repo. Our CI will handle the dep updates.
I eyeballed them and they all look low risk.

Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
2023-07-17 15:34:20 +02:00
Jean-Hadrien Chabran
0e9c422c0d
ci: remove dead Go scripts/code (#54992)
Dropping unused files / code. 

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI
2023-07-15 17:41:45 +00:00
Kalan
4c8de33809
fix: remove build files and fix all working dirs (#54980)
gave up compiling the build, just using `ts-node` to run the script now


## Test plan
N/A

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-07-14 15:01:18 -07:00
Kalan
5205e3f468
fix: wrong execution dir (#54976)
add README and fix the github actions working dir


## Test plan
N/A
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-07-14 20:48:38 +00:00
Jean-Hadrien Chabran
7b1849a732
bzl: update to Go 1.20.5 (#54962)
- bumps `rules_go` to `0.40.1` (didn't go for `0.41.0` yet, the breaking
change with google apis is a bit messy to deal with, can be handled in a
second time).
- Because of an update to the crypto libs, we can't compare
authenticators directly anymore. Instead I updated the test code to
compare their `.Hash()`, which is semantically equivalent.
- Added that particular test to the flakes, to green the back compat
tests.
- Big thanks to @camdencheek for fixing the issues with the Go compiler
and the `execabs` mess which requires absolute paths, which needed to be
fixed, as Go 1.20.X doesn't ship with precompiled code for the stdlib
anymore.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI

---------

Co-authored-by: Camden Cheek <camden@ccheek.com>
2023-07-14 17:27:46 +02:00
Erik Seliger
efa72abfef
Merge enterprise and oss repo-updater (#54939)
This combines enterprise and oss repo-updater into a single package,
removing the enterprise setup hook.

## Test plan

Starts up locally, also CI tests.
2023-07-14 15:05:13 +02:00
Erik Seliger
4cee2a0fb5
Move precise-code-intel-worker out of enterprise (#54926)
Not required anymore, just a git mv and some path changes.

## Test plan

CI.
2023-07-13 20:09:16 +02:00
Bolaji Olajide
732a4072c0
release: deactivate 5.1.3 release (#54930) 2023-07-13 15:35:53 +00:00
Bolaji Olajide
64d09f315e
release: update sourcegraph release instance (#54913) 2023-07-13 09:41:46 +00:00
Camden Cheek
1e877f4b58
Release: update release config for 5.1.3 (#54896) 2023-07-12 17:15:49 -05:00
Camden Cheek
3ff5ad2839
Backend: remove enterprise/internal (#54872) 2023-07-12 22:51:02 +02:00
William Bezuidenhout
8d557a2525
sg: fix small typo in pending message (#54861)
`--excluded` flag doesn't exist, but `--except` does
## Test plan
```
sourcegraph on  wb/sg/typo [$?] via 🐹 v1.19.8 took 10s 
❯ go run ./dev/sg start --except symbols
ℹ️ We found some changes in dev-private that you're missing out on! If you want the new changes, 'cd ../dev-private' and then do a 'git stash' and a 'git pull'!
 Done checking dev-private changes
💡 Running 4 checks...
 Check "docker" success!
 Check "redis" success!
 Check "postgres" success!
 Check "git" success!
Skipping command symbols since it's in --except.
```
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-07-12 16:42:40 +00:00
Dave Try
0544394118
wolfi: cadvisor entrypoint (#54809)
Fixes the cadvisor entry point, which was being split onto new lines,
meaning we were dropping some metrics like memory as reported by
@michaellzc.

As part of the testing I tried just downloading the binary from github,
rather than building it from scratch. That didn't turn out to the final
solution so that's an OPTIONAL leave in, but to me seems like an easier
approach than compiling ourselves.

With a rebuild of the base image we're also now running cadvisor 0.47.3

Old (working):
```
            "Entrypoint": [
                ....
                "-enable_metrics=cpu,diskIO,memory,network",
                ....
            ],
```            

New (broken):
```
 "Entrypoint": [
                "/usr/bin/cadvisor",
                ....
                "-enable_metrics=cpu",
                "diskIO",
                "memory",
                "network",
                ....
```                


## Test plan

Tested on scaletesting.sgdev.org

<img width="1121" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/2067825/bedfbe7e-b83c-4a09-8527-5143412cb533">

vs sourcegraph.com

<img width="692" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/2067825/0b221909-8c80-4665-9e28-59ba6e6a4722">
2023-07-12 15:16:31 +00:00
Erik Seliger
b221988816
Move enterprise/internal/batches package to internal/batches (#54855)
This moves another heavy enterprise component out to the regular
directory. Feelsgoodman.

## Test plan

Just file renames, CI should find issues.
2023-07-12 08:42:35 -06:00
Keegan Carruthers-Smith
daef362b7c
backcompat: use keyword args to format and generate build commands seds (#54814)
Minor improvements I noticed while updating this file. Not sure if this
is in good style for bazel files, so interested in feedback.

Test Plan: rely on CI, didn't test locally.
2023-07-12 13:09:57 +02:00
Jean-Hadrien Chabran
16d7702bdc
sg: print jobs output even if all done before exit (#54818)
https://github.com/sourcegraph/devx-support/issues/83 reported that the
update mechanism appeared to be broken. After digging around, if `sg`
completes after the jobs are done, which is where the auto-update is
happening, the error was not displayed.

So we don't know why it didn't work, but at least the next time, we'll
see what error we encountered.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI + local tests
2023-07-12 10:23:27 +00:00
Thorsten Ball
5d00edb9a2
sg: add --except/--only to sg start (#54787)
This allows you to run `sg start` but exclude commands, one off, without
having to modify `sg.config.yaml`. Helpful when debugging or when trying
to get something working while a single command is not compiling.

Usage:

- `sg start --only frontend,worker`
- `sg start --except worker,gitserver-0`

## Test plan

1. Create `sg.config.overwrite.yaml`:
```yaml
defaultCommandset: testing
commandsets:
  testing:
    commands:
      - frontend
      - worker
      - repo-updater
      - gitserver-0
      - gitserver-1
```
2. Run `go run ./dev/sg start --only frontend,worker`
3. Run `go run ./dev/sg start --except repo-updater,gitserver-1`

---------

Co-authored-by: Dave Try <davetry@gmail.com>
2023-07-12 08:08:21 +00:00
Erik Seliger
788e6feb57
Move cody-gateway out of enterprise (#54802)
Everything is enterprise licensed now, so this doesn't change anything
license-wise. Just a small step towards getting rid of the enterprise
directory.

## Test plan

CI.
2023-07-12 00:36:45 +02:00
Keegan Carruthers-Smith
c390e4bacb
graphqlbackend: update throttled to use Ctx stores (#54748)
It seems we were using a weird version of throttled which I don't think
was actually based on the v2 series correctly. This updates us to the
latest version and moves us away from the removed struct GCRARateLimiter
and the deprecated interface GCRAStore.

I came across this while attempting to update deps and getting failing
compiles.

Test Plan: we have unit tests for this, so CI.
2023-07-11 15:59:22 +00:00
Dave Try
0923cde46d
wolfi: build prometheus-gcp image (#54752)
Ports our build of prometheus-gcp to wolfi inline with our other images.


## Test plan

Built previously and has been tested on a clouddev instance with help
from @danieldides with no issues.
2023-07-10 11:47:08 -05:00
Jean-Hadrien Chabran
c9ab4562c9
bzl: enable go_test to turn off race detector (#54747)
We might need to turn off the race detector for a target, see
https://sourcegraph.slack.com/archives/C04MYFW01NV/p1688741821325559

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI
2023-07-10 15:16:43 +00:00
William Bezuidenhout
88495e2279
sg: add runtype manually triggered (#54717)
this also fixes the command so that we can push builds for external
contributors

## Test plan
1. Created a fork
2. Made a [PR](https://github.com/sourcegraph/sourcegraph/pull/54711)
3. Submitted a
[build](https://buildkite.com/sourcegraph/sourcegraph/builds/233315#0189308e-0634-465e-9d0d-47f73f164139)
```
go run ./dev/sg ci build --commit da6c539fd8
️ Commit "da6c539fd866d01cac56ab736091b7bb6c5acb7b" not found in in local 'origin/' branches - you might be triggering a build for a fork. Make sure all code has been reviewed before continuing.
Continue? (yes/no) yes
Pushing da6c539fd8 to _manually_triggered_external/ext_da6c539fd866d01cac56ab736091b7bb6c5acb7b...
 remote: 
 remote: Create a pull request for '_manually_triggered_external/ext_da6c539fd866d01cac56ab736091b7bb6c5acb7b' on GitHub by visiting:        
 remote:      https://github.com/sourcegraph/sourcegraph/pull/new/_manually_triggered_external/ext_da6c539fd866d01cac56ab736091b7bb6c5acb7b        
 remote: 
 remote: GitHub found 17 vulnerabilities on sourcegraph/sourcegraph's default branch (5 high, 8 moderate, 4 low). To find out more, visit:        
 remote:      https://github.com/sourcegraph/sourcegraph/security/dependabot        
 remote: 
 To github.com:sourcegraph/sourcegraph
  * [new branch]            da6c539fd8 -> _manually_triggered_external/ext_da6c539fd866d01cac56ab736091b7bb6c5acb7b
 
Polling for build for branch _manually_triggered_external/ext_da6c539fd866d01cac56ab736091b7bb6c5acb7b at da6c539fd866d01cac56ab736091b7bb6c5acb7b...
 Created build: https://buildkite.com/sourcegraph/sourcegraph/builds/233315
```
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-07-10 13:16:25 +00:00
Jean-Hadrien Chabran
97ef0539ad
bzl: migrate genqlient go:generate to Bazel (#54685)
This PR migrates the two go generate directives that generate some GQL
client to Bazel.

Because it was a good example on how to convert a `go:generate`
directive, I also wrote a how-to to explain the migration process.


<img width="1260" alt="CleanShot 2023-07-06 at 18 04 24@2x"
src="https://github.com/sourcegraph/sourcegraph/assets/10151/61ac3ccc-21c4-4a35-a278-21d53be8da51">

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI + local

---------

Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
2023-07-10 14:51:03 +02:00
Quinn Slack
006bd2fea3
remove cody code that was moved to separate cody repo (#54729)
Cody code is being moved to https://github.com/sourcegraph/cody. This PR
removes the moved code and configures this repository to use the
`@sourcegraph/cody-{shared,ui}` packages published by the new separate
Cody repository.

## Test plan

Ensure that the new separate Cody repository tests pass. Ensure that
this repository's tests pass now that it uses 2 npm packages published
by the new separate Cody repository.
2023-07-10 00:31:47 -10:00
Nelson Araujo
7589921b07
Implements sg rfc [--private] create <rfc title> (#54644)
1. Determines the next available RFC ID
2. Creates the RFC document from the template
3. Updates the content of the RFC document to match the RFC title
4. Remove the reminder to update the titles (as we just did it)
    
If private:
    
5. Creates a breadcrumb file in the public RFC pointing to the private
RFC.
    
> TODO(nelsona): Add --type <type> and support other kinds of RFC
formats (right now, it only supports the problem solution)

## Test plan

(as it requires Google Drive credentials) Execute manually:

1. `sg rfc create "<some public RFC title>"`. Observe that a new doc was
created in the public RFC folder
2. `sg rfc --private create "<some private RFC title>"`. Observe that:
  * A new RFC doc is created in the private RFC folder
* A breadcrumb document pointing to the private RFC is created in the
public RFC folder

Resolves #25440

Companion handbook change
https://github.com/sourcegraph/handbook/pull/7288

---------

Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
2023-07-09 23:09:31 -07:00
Bolaji Olajide
ab07fe0cbd
release: make release event attendees optional (#54725)
This marks everyone as optional when sending calendar events related to the release.

## Test plan

<!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles -->

Run `pnpm run release tracking:timeline ` with `{dryRun.calendar}` set to `true` and the events generated should have an extra field of `optional: true`
2023-07-08 10:21:17 +01:00
Chris Warwick
71ad9ce934
App - add sg app reset command to clear local app dev data (#54722)
Adds a `sg app reset` command that removes all dev app data and clears
the web cache
2023-07-07 14:21:45 -04:00
Jean-Hadrien Chabran
dd6a30389b
bzl: convert go generate + stringer to bazel (#54619)
Replaces an explicit `go:generate` call to `stringer` by its Bazel
counterpart.

This is a part of the effort to remove all `go:generate` statements and
to have them handled by Bazel. See tracked issue for more details.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI
2023-07-07 17:31:46 +02:00
Joe Chen
6586b5df8f
release: improve minor release template (#54649)
Things I found missing or can be improved during the 5.1.0 release.

## Test plan

n/a
2023-07-07 10:43:04 -04:00
Thorsten Ball
0777e77c20
sg generate: fix typo and add missing newline (#54707)
Title says it: when running `sg generate` the early-exit message didn't
contain the newline at the end that every other `report.Output` has. I
figured it's easier and more consistent to add it here now instead of
checking whether `report.Output` has a trailing newline etc.

Also fixes a typo. Two P.

## Before

![before](https://github.com/sourcegraph/sourcegraph/assets/1185253/8c819055-8403-47df-bab8-1bb420f27be9)

## After


![after](https://github.com/sourcegraph/sourcegraph/assets/1185253/7cfe6972-1d96-41f1-a3ce-0a414dcb5973)


## Test plan

Tested manually, see screenshots
2023-07-07 12:11:00 +02:00
Jean-Hadrien Chabran
bb340fb196
sg: add --legacy to run command (#54690)
@efritz noticed that `sg run frontend` always pick the Bazel variant,
which at the moment triggers a bundle build, which is really really
slow.

This was not how it was when we first introduced the Bazel variants of
the commands, but I missed the consequences of refactoring how we handle
the assets a while ago, which created this situation.

This PR provides a bandage, which I hope will be ok with you @efritz
while we fix the root cause for this.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI + locally tested.
2023-07-06 18:18:32 +00:00
Noah S-C
9333f8f283
codeintel: consolidate enterprise & oss codeintel packages (#54431)
Movin enterprise codeintel stuff (and ~two others that had to be dragged
along) out of `enterprise/internal` and into `internal` as part of the
shift towards enterprise-only

## Test plan

Successfully built frontend with bazel, CI will check the rest
😎 no logic changed, just shufflin things around
2023-07-05 14:58:41 +01:00
Jean-Hadrien Chabran
d459b85b8c
sg: add ci bazel helper command to run bazel commands in CI (#54593)
This is the companion PR to
https://github.com/sourcegraph/sourcegraph/pull/54576 that streamline
working with the `bazel-do/...` branches.

It creates a new branch, with a unique name, adds an empty commit with
the bazel command in the commit messages and pushes it.

It support the `--wait` and `--web` flags, as usual. 

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI +
https://buildkite.com/sourcegraph/sourcegraph/builds/232650#0189219a-4365-43eb-8035-6bce05d087b2

---------

Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
2023-07-05 14:24:45 +02:00
Jean-Hadrien Chabran
ef9cf14359
ci: introduce a bazel-do runtype to run user given bazel commands only (#54576)
This introduces the `bazel-do` runtype, which provides a
`bazel-do/[name]` branch scheme, where you can pass in the commit
description a bazel command to be run.

Diagnosing flaky tests, or simply testing something in CI can a bit
cumbersome if you don't know your way around the pipeline. This PR fixes
that by providing a way to set-up a build for your branch that will run
a single bazel command and nothing else.

Classic use cases can be: 

- diagnosing a flaky test
- just testing something and you want the faster builds from the CI 
- ensuring that your new code builds remotely without having to wait for
the whole build.

How to use: create a `bazel-do/my-thing` branch and put `!bazel test
//something` in the last commit description.

I plan to follow up with a `bazel ci bazel test //foobar` that will
create the branch and the commit for you, as a convenience.

Security: only Sourcegraph teammates can build this, and it only
triggers on branch named `bazel-do`.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

Did a few manual tests in CI, they worked perfectly.

---------

Co-authored-by: Will Dollman <will.dollman@sourcegraph.com>
2023-07-04 17:22:00 +02:00
Bolaji Olajide
c26ef5ab22
update release config (#54574) 2023-07-04 11:19:47 +01:00
Bolaji Olajide
f9126fc0e3
release: update SRC endpoint for release Batch Change (#54562)
Update SRC endpoint for release Batch Change.

## Test plan

<!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles -->
* Create a batch change with the release tool, the batch change should be created on `sourcegraph.sourcegraph.com`
2023-07-04 11:19:29 +01:00
Indradhanush Gupta
c3e2e4e1ec
dev/gqltest: Unskip bitbucket project perms tests (#54477)
Let's see how CI behaves here.

Originally skipped in #52057. 

Closes #54475.

## Test plan

CI and main-dry-run.

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-07-04 11:24:25 +02:00
Camden Cheek
98d7f936c8
sg: remove extra semaphore release (#54561)
This removes an extra `semaphore.Release` (it's already deferred in that
function) that was causing a panic locally in `sg` and misleading me on
the underlying cause.
2023-07-03 20:20:07 +00:00
Jean-Hadrien Chabran
588463afbb
bzl: bazelify docsite and doc/cli/reference generation (#54538)
This PR is on top of #54517 

---

This PR rework how we handle the docsite and some of its related tasks: 

- While we _could_ avoid committing the generated files to disk, the way
that docsite currently works, requires to have all files available in
git, so the docsite can serve various versions.
- `bazel run //doc/cli/references:write_doc_files` handles this (and
it's umbreall `//dev:write_all_generated`.
- Its generation is now handled by `//doc/cli/references:generate_doc`
and its associated test.
- `sg run docsite` now calls `bazel run //doc:serve`, we don't need to
install the docsite directly anymore (but it's available under `bazel
run //dev/tools:docsite` if needed).

As a byproduct, we can now run `src-cli` with `bazel run
//dev/tools:src-cli` which will pick the correct binary for your machine
transparently.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

Locally tested + CI
2023-07-03 16:12:44 +02:00
Jean-Hadrien Chabran
a0bcbc4986
bzl: bazlify lsif/protocol stringer uses (#54517)
Creates a `go_stringer` macro and replace lsif code that used a
`go:generate` + stringer. Because this generates Go code, it's still
better to have the generated code versioned, as it doesn't require
everyone to configure `gopls` so it plays nicely with Bazel.

This also introduces a `//dev:write_all` target that calls all known
targets that write back to the source tree.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI
2023-07-03 15:01:17 +02:00
Will Dollman
dc267b0dca
Update prometheus tools (#54533)
Update postgres-exporter and node-exporter to latest versions.

The current version of postgres-exporter seems to cause a [non-critical
error](https://sourcegraph.slack.com/archives/C02E4HE42BX/p1688168678260469?thread_ts=1688063676.565389&cid=C02E4HE42BX)
which is fixed in 0.12.1, so also backporting.

TODO:
- [x] Update deps_oci with new image hashes once CI runs.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

- CI
- Testing on S2
2023-07-03 11:43:01 +00:00
Bolaji Olajide
9b27000ae9
update release config (#54535)
Release config update 

## Test plan

<!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles -->
N/A
2023-07-03 11:32:33 +00:00
Jean-Hadrien Chabran
f4572445a7
sg: remove custom docker linting rules (#54365)
As we transitioned to rules_oci + wolfi, the custom dockerfile checks
are not necessary anymore. Hadolint is still there, will address it in
another PR that introduces pre-commit.


## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI
2023-06-30 09:24:29 -05:00
Jean-Hadrien Chabran
32a7fbfdd6
bzl: avoid ui/assets/* dep on CHANGELOG.md (#54486)
Because we at least need one file to be present or the embed won't work,
this replaces CHANGELOG.md by CONTRIBUTING.md as a placeholder. This
will prevent PRs updating the changelog from invalidating the cache for
nothing for these slow targets.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI
2023-06-30 09:11:27 -05:00
Jean-Hadrien Chabran
55b1d125a7
bzl: port go compiler directives linter from sg lint to nogo (#54485)
This removes the linter that checks for incorrectly formatted
`go:generate` directives from `sg lint` and replace it with a proper
linter handled by `nogo`.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

Locally tested + CI
2023-06-30 14:31:15 +02:00
coury-clark
ccab767e10
5.1.1 release config (#54456)
5.1.1 release config

## Test plan

N/A
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-06-29 21:17:47 +00:00
Keegan Carruthers-Smith
49aff3d61c
search: update zoekt with removal of RepositoryRankRequest (#54394)
This endpoint was unused which was why it was removed in Zoekt. The
changes from Zoekt included in this dep bump:

- 1686b50d50 indexserver: remove unused GetRepoRank
- 7078a585a9 shards: populate RepoList.Stats.Repos
- b9e6d9433e zoekt-indexserver: Check stderr for git fetch
- 93f7b0c983 matchtree: capture Stats before pruning
- 7643f3b313 matchiter: capture metric NgramLookups

Test Plan: CI
2023-06-29 19:17:13 +02:00
Jean-Hadrien Chabran
2ec4a57ff4
bzl: bump backcompat to target 5.1.0 (#54438)
This PR moves the target release for back compat tests to 5.1 and fixes
the various issues that arose.

- We don't need to handle otel breaking updates, as 5.1 and HEAD are on
the same version
- We now need to explicitly remove `/client/*` as we're properly
targeting the `v5.1.0` tag and it doesn't contain my crude patches
anymore
- Bumped pinned back compat scip deps, as it frequently breaks due to
having a lot of API changes across time
- Added a new patch, to handle the consequences of having removed the
client tree: previous release didn't have the refactored ui/assets
explicit oss/enterprise targets and thus didn't explicitly depend on the
client. Now we do, so it needed some patching to make the build working.
- The buildkite command itself now substracts a few steps that are not
playing very well with the backcompat approach, I'm not sure to
understand why, the the `//cmd/migrator:schema_descriptions` `genrule`
doesn't like very much being built in a different place. I suspect
that's because the tree is one folder below, but it's harder to patch
this than it is to simply remove it from the test targets entirely.
- And finally, the buildkite command also filters things to only run go
tests.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI + local fun
2023-06-29 17:59:49 +02:00