Commit Graph

12 Commits

Author SHA1 Message Date
Erik Seliger
58fe87f6b5
enterprise: Move last directory out (#57392)
This is the end of the PR train to remove the enterprise directory from out repo since we have consolidated to use a single license.

Bye rough code split :)
2023-10-05 20:15:40 +00:00
Randell Callahan
5a3fda4bd6
executors: Provide more context when the semantic version is invalid (#55024)
The annoying error of `Invalid Semantic Version` tells us nothing and
makes troubleshooting the issue difficult with lots of churn.

I have update Executor usage of `semvar.NewVersion` to wrap the error
with a message that include the actual version that causes the error.
This will help us understand the specific version string that is causing
the error and more quickly determine _why_ the version is getting
injected.

## Test plan

Update/add Go tests.
2023-07-17 13:59:46 -06:00
Jean-Hadrien Chabran
3d36d34b3d
ci: re-enable race detection (#52776)
The previous approach to enable race detection was too radical and
accidently led to build our binaries with the race flage enabled, which
caused issues when building images down the line.

This happened because putting a `test --something` in bazelrc also sets
it on `build` which is absolutely not what we wanted. Usually folks get
this one working by having a `--stamp` config setting that fixes this
when releasing binaries, which we don't at this stage, as we're still
learning Bazel.

Luckily, this was caught swiftly. The current approach insteads takes a
more granular approach, which makes the `go_test` rule uses our own
variant, which injects the `race = "on"` attribute, but only on
`go_test`.


## Test plan

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

CI, being a main-dry-run, this will cover the container building jobs,
which were the ones failing.

---------

Co-authored-by: Alex Ostrikov <alex.ostrikov@sourcegraph.com>
2023-06-05 20:41:47 +02:00
Dave Try
2b8fa079f0
bazel: fix buf files (#49444)
fix protoc-gen-go version
2023-03-15 20:21:38 +00:00
Dave Try
293385d5dd
bazel: update timeouts to suppress warnings (#49399)
Updates all of the BUILD fields with timeouts to suppress warnings and
reduce log spam.


## Test plan

Green CI
2023-03-15 15:04:16 +02:00
Randell Callahan
a82a602b67
Executor Job Specific Tokens (#46792) 2023-02-28 18:40:22 +00:00
Eric Fritz
5f95386378
ci: Add latest tagged release to continuous build version (#48050) 2023-02-22 18:39:26 -06:00
Jean-Hadrien Chabran
bc5490c4bb
bazel: introduce build files for Go (#46770) 2023-01-23 14:00:01 +01:00
Erik Seliger
ffbc31b185
Reinstate executors e2e (#45699)
* Revert "Revert "Add executors E2E pipeline (#44795)" (#45693)"

This reverts commit 10942dd8d3.

* Fixup test assertion
2022-12-15 11:55:31 +00:00
Indradhanush Gupta
10942dd8d3
Revert "Add executors E2E pipeline (#44795)" (#45693)
This reverts commit 9361967fae.
2022-12-15 12:12:40 +05:30
Jean-Hadrien Chabran
9361967fae
Add executors E2E pipeline (#44795)
This PR adds the infrastructure to run and an initial test for server-side batch changes with executors.

I've implemented a basic testing framework so that we can in the future stuff in a few more tests here to test all the features of batch changes in this pipeline, this will become increasingly useful as we will want to transition to full native execution.

Big thanks to @jhchabran for all the help getting this pipeline to work!
2022-12-15 01:53:09 +01:00
Erik Seliger
2804729b06
Support binary patches (#44779)
Patches can contain non UTF-8 characters (who knew). Since we JSON-encode the patch as a string field, we lose that encoding over the wire to Sourcegraph from src-cli and also when we interact with executors. This PR adds support for a byte slice encoded (so base64 over the wire) mode from Sourcegraph 4.4 onwards, which retains original encoding.
Executors also now support binary files for VirtualMachineFiles. The most of this diff is restoring backwards compatibility with old src-cli and executors, the main change is string -> []byte.

Closes #44743
2022-11-29 03:22:01 +01:00