Commit Graph

2221 Commits

Author SHA1 Message Date
Noah S-C
07a0a59b6a
observability: build+propagate hierarchical observation contexts for telemetry provenance (#42765) 2022-12-05 21:52:30 +00:00
Juliana Peña
52a00af4da
search contexts: fix backend integration test (#45221)
* search contexts: fix backend integration test

* more fix
2022-12-05 13:25:25 -08:00
leo
9c041c8193
insights: saving a new view of a scoped insight does not trigger recalculation (#44679)
Co-authored-by: vovakulikov <vovakulikov@icloud.com>
2022-12-05 11:40:22 -05:00
leo
72ef1785f3
insights: chore: remove deprecated insights settings from dev config (#45194) 2022-12-05 11:23:39 -05:00
Stefan Hengl
e14b9c8204
graphqlbackend: add mutation to reindex repository (#45056)
This adds a new mutation that lets us trigger a reindex from frontend.
The goal is to add a reindex button, calling this mutation, to the index
status page.
2022-12-05 09:13:47 +01:00
Quinn Slack
2ceb3d9f5a
remove unused dev/config.json (default site config) (#45116)
The equivalent file dev/site-config.json is used, but this one isn't used or mentioned anywhere.
2022-12-04 22:26:19 -08:00
coury-clark
ef1a2d5a73
moving release date to 15th (#45099) 2022-12-02 19:41:12 +00:00
Eric Fritz
ba779e9b26
codeintel-qa: Fix working directory in scripts (#45093) 2022-12-02 13:12:26 -06:00
Stefan Hengl
8305be2e66
zoekt: set -indexserver_proxy for webserver (#44995)
Relates to https://github.com/sourcegraph/zoekt/pull/487

We set the new flag for local dev and server.
2022-12-02 08:38:44 +01:00
Sander Ginn
aaf696d2f8
Add flakefile for v4.2.0 (#44934)
* Ignores tests blocking build

* Disables one more test

* Re-enables tests

* Add flakefile for `v4.2.0`

* Add another entry to flakefile

* And another flake added

* Add remaining flakes

* Additional migration failure added

* Disable `TestSyncerRun` (#44939)

Disables `TestSyncerRun`

* Add new flake for strange failure

Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
2022-11-30 14:54:35 +00:00
coury-clark
3e026821e8
4.3.0 release config (#44923)
config
2022-11-29 23:10:04 +00:00
William Bezuidenhout
fea1398e26
ci: use 1.19.3 docker image for building (#44895)
use 1.19.3 docker image for go building
2022-11-29 14:31:25 +00:00
Bolaji Olajide
77fbb0014d
batches: add unique constraint {batch, changeset}_spec rand ids (#44601) 2022-11-28 20:15:34 +01:00
leo
c608aa0ded
insights: updating capture group insights metadata does not trigger recalculation (#44797) 2022-11-28 06:45:43 -08:00
Robert Lin
417dc18619
lib/cliutil: create package for exporting urfave/cli utilities (#44826)
Move sg's docgen code into lib/cliutil/docgen for sharing with the mi CLI. In the future we can move other useful utilities for urfave/cli and CLIs in general into this set of subpackages for use in mi.
2022-11-25 21:15:19 +00:00
William Bezuidenhout
81082be686
build-tracker: better handling of large job failures (#44825)
* build-tracker: better handling of large job failures

* Update dev/build-tracker/slack_test.go
2022-11-25 19:38:22 +02:00
leo
5612fe1a80
insights: improve update insight flow (#44769) 2022-11-24 11:20:21 +00:00
Jean-Hadrien Chabran
c514c53b73
sct: allow invalid certs on bulkrepocreate (#43744) 2022-11-24 10:52:00 +01:00
Noah S-C
f8d96a83d9
nix: add p4-fusion building (#44588) 2022-11-23 16:06:28 +00:00
Erik Seliger
a58360b45e
Always disable user external service mode in UI (#44721)
In a following PR, I want to fix a double fetch error which will be easier to fix if this is already in place. Since we don't intend to use this, it feels safe to me to remove.
2022-11-23 14:49:03 +01:00
Alex Ostrikov
9b839f22b9
webhooks: add name column to webhooks table. (#44756)
This commit doesn't include changes in GraphQL layer, these will follow in the next one for the sake of keeping the commits smaller.

Test plan:
`sg migration` up-down-up, updated tests.

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
2022-11-23 17:17:14 +04:00
Thorsten Ball
0a09e1a0a0
Restore #44549 by making test more resilient and using context.Background (#44704) 2022-11-22 15:28:06 +01:00
coury-clark
96d84844c2
chore: flakefile for EnqueueWebhookBuildJob (#44610) 2022-11-18 09:43:20 -07:00
coury-clark
220fb43bb8
sg: adds cve-check command to check a release build for approved cves (#44585) 2022-11-18 08:10:36 -07:00
Bolaji Olajide
66e8c47820
update downto instruction for sg migration --help (#44605) 2022-11-18 16:02:36 +01:00
Ryan Slade
e47a9331a4
gqltest: Ensure fusion test is actually cloning depot (#44539)
The previous tests we not testing cloning via p4-fusion, the following was happening:

git p4 test runs, completes and deletes external service which then soft
deletes repo. p4-fusion can't find repo to delete since it's name has changed
so does nothing. Repo is still on disk so we end up fetching rather than
cloning. Even if that fails, we still find the repo on disk and mark the test
as passed.

To fix this we now:

* Delete the repo on disk before deleting the service. (Confirmed locally that the repo is removed on disk)
* Clone a different repo in each test
The tests were also refactored to make things a little more explicit.
2022-11-17 17:45:54 +01:00
William Bezuidenhout
cc7bd7396a
scaletesting: bulkreposettings - allow repos to be incrementally fetched and updated (#44203)
* allow repos to be incrementally fetched and updated

* check errors and print first 5

* move log line

* check result errrors

* move around next page logic

Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
2022-11-17 15:12:30 +02:00
William Bezuidenhout
c2e54793b8
build-tracker: fix duplicate jobs being printed for failures (#44472)
* build-tracker: fix bug of duplicate jobs in failed section

* add test case for dup build-tracker jobs
2022-11-16 16:52:44 +02:00
Jean-Hadrien Chabran
6334795565
sg: ci build: forcefully set a branch for external commits (#44484)
Using `sg ci build -c $commit` when you're on the main branch, like when
you're requesting a build for a PR from an external contributor, would
previously end up on the `main` branch in Buildkite, even though it's
actually not on the `main` branch in the repository.

This is quite scary for the random bystander and in the end, very
confusing and wrong.

This change merely hotfixes the problem and the `sg ci build` command
should be rewritten as we also discovered other issues such as
`sg ci build main-dry-run -c $commit` will actually push the current
commit and not $commit on `main-dry-run/main`, which also quite
confusing.
2022-11-16 15:08:43 +01:00
Ryan Slade
e728a2d3d6
gqltest: Remove repo before attempting fresh clone (#44352)
To ensure that a previous test didn't cause the repo to already exist on
disk.
2022-11-15 11:17:01 +01:00
Ryan Slade
6421b2890d
Revert "gqltest: Add a test that uses p4-fusion (#44346)" (#44370)
This reverts commit 9333d30c63.
2022-11-14 16:57:37 +00:00
William Bezuidenhout
443a720b5d
ci/prettier: update prettier, and fix single target lint (#44341)
* update prettier and fix yarn script

* fake change

* ensure format lint always runs unless specified otherwise

* remove formatting from default if specified

* do not add format if the target is format

* fix subcommand output

* restore original code

* ensure formatting is run when specified and not specified

* fix page format lint said is wrong

* Update package.json

* rename no-format-check flag

* update reference doc
2022-11-14 16:46:31 +02:00
Joe Chen
855100cdcd
auth: load SOAP config from SRC_CLOUD_SITE_CONFIG (#43987)
Co-authored-by: Michael Lin <mlzc@hey.com>
2022-11-14 22:08:19 +08:00
Ryan Slade
9333d30c63
gqltest: Add a test that uses p4-fusion (#44346) 2022-11-14 13:29:46 +01:00
Eric Fritz
dc448224ca
chore: Update go-mockgen (#44305) 2022-11-11 19:24:00 +00:00
William Bezuidenhout
d78b157f2e
observability: remove grafana link gen from build-tracker (#44212)
remove grafana link gen from build-tracker
2022-11-10 22:32:01 +02:00
William Bezuidenhout
1b664211f8
scaletesting: Allow transfering of repos with ssh (#44059)
* add ssh key handling to codehostcopy

* add some comments

* fix import

* Update dev/scaletesting/codehostcopy/github.go

* Update dev/scaletesting/codehostcopy/runner.go

Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>

* fix var name for destOpts

Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
2022-11-10 14:12:47 +00:00
coury-clark
53c394b9a8
release: update release config for 4.2 (#44177)
update release config
2022-11-09 22:58:17 +00:00
Philipp Spiess
2a468da8a7
Prepare for 4.2 release (#44162) 2022-11-09 16:36:37 +00:00
Jean-Hadrien Chabran
5590193a91
dx: create a cli similar to sg (playground for DX) (#44066)
Creates an additional command, `dx` which the DevX team uses as a
playground to script and add commands without having to think too much
about design and can host crude hacks before merging those in `sg`.
2022-11-08 13:34:13 +01:00
Philipp Spiess
d4cd076d0e
Update config for patch release 4.1.3 (#44073) 2022-11-08 11:36:55 +00:00
Molly Weitzel
20b05e35f6
skip flaky tests (#44038) 2022-11-07 10:38:20 -07:00
Anatoli Babenia
65a6d0552d
sg: do not ask for ppa confirmation in setup (#43939) 2022-11-06 10:21:39 +02:00
coury-clark
463eb25b93
Revert "Revert "Fix flaky Perforce integration tests"" (#43966)
Revert "Revert "Fix flaky Perforce integration tests" (#43964)"

This reverts commit d72c7eb7fa.
2022-11-04 18:31:45 +00:00
coury-clark
d72c7eb7fa
Revert "Fix flaky Perforce integration tests" (#43964)
Revert "Fix flaky Perforce integration tests (#43696)"

This reverts commit deda28d5ec.
2022-11-04 17:49:01 +00:00
Jean-Hadrien Chabran
18474e84e4
sct: enable to copy user repos instead of just orgs (#43739)
Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
2022-11-04 17:01:39 +00:00
Molly Weitzel
deda28d5ec
Fix flaky Perforce integration tests (#43696)
* unskip flaky tests, add extra check for Perforce authz provider

* address PR comments

* make authzProviderTypes query admin only, add unit tests
2022-11-04 09:31:44 -06:00
Eric Fritz
87f6043410
drift: Refactor expected schema factory to provide better output on error (#43820) 2022-11-03 07:35:12 -05:00
Idan Varsano
c7b81c164a
Upgrade git version to 2.38.1 in Gitserver and Server Docker Images (#43615)
* Upgrade git version to 2.38.1
2022-11-02 15:11:25 +00:00
William Bezuidenhout
736a5626cd
go + golangci: update to go to 1.19.3 and golanci to 1.50.1 (#43747)
* upgrade to go 1.19.3

* upgrade golangci-lint 1.50.1

* disable unused and unparam lints

* Fix all the lint errors

Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
Co-authored-by: Keegan Carruthers-Smith <keegan.csmith@gmail.com>
2022-11-02 15:08:25 +02:00