Commit Graph

721 Commits

Author SHA1 Message Date
Robert Lin
1ff9bc70eb
sg-binary-release: stamp with GitHub release name (#62176)
We have nice release names in https://github.com/sourcegraph/sg/releases, but it's not actually programmatically available - this causes a discrepancy between the `sg` version one might pull, and the version of `sg` that is known in-code, and means that we can't do something like #62134.

This change adds a `ReleaseName` variable to be stamped at build/release time, and updates a few references to `BuildCommit` where I think it might be more prudent to report `ReleaseName` instead, and also fixes some yellow squiggles in my IDE on files I visited (sorry) and some noisy `-v` output (sorry again)

## Test plan

```
$ go build -ldflags "-s -w -X main.BuildCommit=$(git rev-list -1 HEAD .) -X main.ReleaseName=hello-world" -o ./sg ./dev/sg                       
$ ./sg version
hello-world
$ ./sg -v version
Version: hello-world
Build commit: b23db0be5e
```
2024-04-25 08:10:55 -07:00
Robert Lin
7e2f77fdef
workflows: remove sg-msp variant from sg publish (#62161)
We no longer require a build variant, and MSP is now included by default since https://github.com/sourcegraph/sourcegraph/pull/59087.

Remaining reference to the variant was removed in https://github.com/sourcegraph/managed-services/pull/1288.
2024-04-24 15:29:14 -07:00
Jean-Hadrien Chabran
63a4efdadd
chore(sg): remove issue template for sg (#62083) 2024-04-22 13:25:47 +00:00
Will Dollman
370ea21eb3
Automatically check for updates to packaged dependencies (#61933)
* Add update config for universal-ctags

* Add upstream monitoring for additional packages

* Add context to disabled release checking

* Fix s3proxy upstream

* Add new wolfictl action

* Try running wolfictl update --dry-run

* Add repo

* Add env

* Use checkout

* Remove checkout as it confuses wolfictl

* Trick wolfictl

* Fix env

* path

* Tweaks for wolfictl

* Remove checkout again

* Add base branch for testing

* Remove branch now that changes are on main

* Tweak labels

* Add some extra flags

* Fix flags?

* Fix quotes

* Build and use forked wolfictl

* Fix path for checkout

* Relative checkout path

* use path under workspace

* Move binary rather than directory

* Don't pass --dry-run on main

* Remove dry-run mode

* Use patched branch

* Add yam.yaml

* Tweak comments

* Remove syntect-server

* Revert s3proxy changes

* Bump epoch to appease CI

* Revert "Bump epoch to appease CI"

This reverts commit 4e3925ccb6.

* Remove yam.yaml (added on different branch)

* Add git author information

* Give repo write permissions

* Check for all packages

* Enable cron and add personal TODO

* Reformat wolfictl command

* Remove on: push

* Add review suggestions

* Tweak workflow dispatch?

* add push ack

* Remove debugging

* Remove on: push
2024-04-18 09:53:39 +00:00
Noah S-C
3efa3c6ebc
sg: brew link postgresql@12 (#61829)
## Test plan

CI and tested commands manually
2024-04-12 14:41:47 +01:00
Anish Lakhwara
b03664e7ab
Trigger AMI Pipeline on release (#61484)
* ci: init trigger to pipeline on release

* ci: add release number as env var

* ci: testing action now that the env var is in place

* ci: more testing

* ci: add name

* ci: tested!

* ci(AMIs): pin GHA trigger BK

* ci: add workflow_dispatch

* ci: change branch to main
2024-04-09 12:12:52 -07:00
Noah S-C
1fcc1f0e32
nix: build pg-utils with nix & upload to GCS (#61658)
Lets get rid of PG_UTILS_PATH! :allthethings: 🎉 

## Test plan

CI and a _lot_ of  `nix build .#pg-utils && ldd ./result/bin/pg_dump`
also tested e2e with the following diff: 61e0eb0d55
2024-04-09 11:54:17 +01:00
Jean-Hadrien Chabran
8f9ed34868
chore/gha: remove docsite previewing (#61289) 2024-03-20 10:05:04 +00:00
Matthew Manela
02122d5f87
Update teams.yml for product platform teams (#61242)
* Update teams.yml for product platform teams

* Update .github/teams.yml

Co-authored-by: Geoffrey Gilmore <geoffrey@sourcegraph.com>

---------

Co-authored-by: Geoffrey Gilmore <geoffrey@sourcegraph.com>
2024-03-18 14:45:24 -04:00
Jean-Hadrien Chabran
f7efbcb4c2
feat/ci: ship a static variant of sg linux/amd64 on (#61191)
feat/ci: ship a static variant of sg linux/amd64
2024-03-15 11:59:30 +00:00
Vincent
1a9954fc59
Pin third-party actions (#61037)
* pin third-party actions
2024-03-12 16:32:27 +00:00
William Bezuidenhout
3b0c388a70
Github Acionts: update workflows to use go 1.22 (#60993)
update workflows to use go 1.22
2024-03-11 13:22:26 +02:00
Noah S-C
cb7034680d
bump to Go 1.22.1 (#60902)
🚀 💎 🙌 🚙 

## Test plan

CI
2024-03-06 17:38:43 -07:00
Bolaji Olajide
b6d929ab64
remove release protector (#60755) 2024-02-26 14:59:12 -06:00
Christoph Hegemann
6ac8c61294
More updates for deprecated src-cli command (#59633)
removes more deprecated uses of `src lsif`
2024-01-18 09:52:42 +00:00
Noah S-C
cf2e4bbb32
chore: fix universal-ctags darwin GHA workflow (#59477)
Fixed bad copy-paste job 🤡 

## Test plan

Manually invoked workflow https://github.com/sourcegraph/sourcegraph/actions/runs/7476990901/job/20348648403
2024-01-10 15:42:36 +00:00
Noah S-C
1cc6243434
chore: update universal-ctags GHA workflow (#59476)
Bringing in-line with versions from https://github.com/sourcegraph/p4-fusion/blob/master/.github/workflows/nix-build-and-upload.yaml

## Test plan

With `act` locally
2024-01-10 14:24:31 +00:00
Erik Seliger
5ae8cf2679
Stop tagging @mrnugget (#59184) 2023-12-21 22:04:15 +00:00
William Bezuidenhout
9d821b78b6
sentry action reporter: set the repo name in the event message (#59161)
* sentry report action: set repo name in event msg

* fail pr-auditor on purpose

* Revert "fail pr-auditor on purpose"
2023-12-21 12:17:58 +00:00
Erik Seliger
f9ac351dc3
Remove App from codebase (#59115)
Cody no longer needs it and it is obsolete now!

Since App added a non-insignificant amount of new concepts and alternative code paths, I decided to take some time and remove it from out codebase.
This PR removes ~21k lines of code. If we ever want parts of single binary (app), the redis kv alternatives, or the release pipeline for a native mac app back, we can look back at this PR and revert parts of it, but maintaining 21k lines of code and many code paths for which I had to delete a surprisingly small amount of tests justifies this move for me very well.

Technically, to some extent SG App and Cody App both still existed in the codebase, but we don't distribute either of them anymore, so IMO we shouldn't keep this weight in our code.

So.. here we go.

This should not affect any of the existing deployments, we only remove functionality that was special-cased for app.
2023-12-21 01:07:05 +01:00
William Bezuidenhout
a3143120c4
actions: create reusable workflow for sentry reports (#59098)
* actions: create reusable workflow for sentry reports
2023-12-20 17:05:03 +02:00
William Bezuidenhout
836271fddf
github-actions: report run failures to sentry (#59060)
* github-actions: report run failures to sentry

* report job name as well

* make buildchecker action consistent
2023-12-18 16:06:50 +00:00
William Bezuidenhout
d4660297f3
buildchecker: send an event to sentry if the action has failed (#59059)
* buildchecker: add step to report failures to sentry

* use dsn for sentry in action

* remove debug exit 1
2023-12-18 15:04:19 +02:00
William Bezuidenhout
c4e28460b0
license checker: update reviewers for automated update license pr (#59053) 2023-12-18 10:56:43 +02:00
Felix Kling
b8ef6d7476
Do not add code-exploration team label to PRs (#59003)
This team doesn't exist anymore
2023-12-14 16:18:53 +00:00
William Bezuidenhout
cc03635fdd
pr-auditor: use token secret (#58933) 2023-12-12 16:35:32 +00:00
Noah S-C
e821ef3c7f
bump go version in buildchecker (#58775) 2023-12-05 13:36:45 +00:00
Bolaji Olajide
568e5b2c1c
Update marketing website link in monorepo (#58449)
Co-authored-by: Alex Isken <alex.isken@sourcegraph.com>
Co-authored-by: Joe Chen <joe@sourcegraph.com>
2023-12-01 22:22:34 +00:00
Michael Lin
172d70097e
ci: bump go to 1.21 in gitub actions (#58642) 2023-11-28 21:33:58 -08:00
Bolaji Olajide
be46841014
remove CODEOWNERS (#58452) 2023-11-21 08:54:20 +01:00
Natik Gadzhi
c0550d263f
docs: Fixed a couple links in contributor docs (#58364)
- Removed a broken link in `CONTRIBUTING.md`. The handbook article must
  have been moved.
- Added the Discord link into `CONTRIBUTING.md`.
- Reworded Slack link to Discord link in the good first issue GH issue
  template.

Co-authored-by: Valery Bugakov <skymk1@gmail.com>
2023-11-16 09:59:34 +00:00
Camden Cheek
9b63655fca
Chore: remove team notification every time "batch" is mentioned (#58050) 2023-11-01 15:45:40 +00:00
Joe Chen
f145afbddd
chore: update label-notify.yml for Cody Gateway (#57968) 2023-10-30 09:32:39 +02:00
Michael Lin
c54a6a54b3
ci: fix sg msp is not release (#57955)
* ci: fix sg msp is not release

* Update sg-binary-release.yml
2023-10-27 15:48:24 -07:00
William Bezuidenhout
cf09ced6c5
license check: update versions used by workflow (#57943)
* update versions used by license check workflow

* update ruby version

* update pnpm version
2023-10-27 11:46:06 +00:00
Michael Lin
1b1bc4dadf
ci: release sg msp build (#57935) 2023-10-26 18:23:27 -07:00
Quinn Slack
b1c79d7c2e
bump pnpm version in scip-typescript workflow (#57921) 2023-10-26 05:06:42 -07:00
Camden Cheek
557b22b6c1
Chore: remove old issue templates (#57710) 2023-10-18 18:42:09 +00:00
s.shivasurya
4a296825ad
Remove Secret Scan Github Action in favour of Background Secret Scan (#57678)
remove trufflehog scan in favour of background scan
2023-10-17 18:00:13 +00:00
Ólafur Páll Geirsson
a0b711d35e
JetBrains: remove plugin (#57505)
The plugin codebase has been moved to the sourcegraph/jetbrains
repository. We keep the web assets for Code Search features inside this
repository.
2023-10-17 09:03:43 +00:00
William Bezuidenhout
5f2fbbb1a5
go: update to 1.20.10 (#57525) 2023-10-12 14:13:46 +02:00
Jean-Hadrien Chabran
e6ea7b2b9a
tracking-issue: only trigger periodically (#57538) 2023-10-11 14:20:37 +00:00
Erik Seliger
8a435278c8
source: Use automated project board workflows (#57487)
We added an [automated workflow](https://github.com/orgs/sourcegraph/projects/209/workflows/12532815) that adds team/source tickets to our triage inbox.
We will check this column regularly instead of creating massive email spam for each of us each time an issue is labeled with team/source.
This also allows us to retire some old GitHub actions workflows.
2023-10-10 18:47:51 +02:00
William Bezuidenhout
e2bcd9dccf
update go to 1.20.9 (#57483) 2023-10-09 16:16:57 +00:00
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
William Bezuidenhout
c5b31f789e
ctags: fix push branch target (#57339) 2023-10-04 15:48:26 +02:00
William Bezuidenhout
9660ae5534
ctags actions: only upload when a change to ctags nix is pushed to main (#57296)
* only upload when a change to ctags nix is pushed to main

* change to trigger workflow

* use apple specific shasum

* binaries get uploaded when branch matches

* use github.head_ref

* use ref_name for push events

* add short sha to filename
2023-10-04 14:45:34 +02:00
Erik Seliger
6567e48223
Stop pinging efritz (#57322)
Until next time, dear fella :)
2023-10-03 22:36:47 +00:00
Erik Seliger
05faad04fb
Move worker out of enterprise and combine main entrypoints (#57302)
We're not doing the enterprise split anymore, so merging the two worker cmds.
2023-10-03 14:53:04 +02:00
Joe Chen
414ce2cb3c
chore: clean up obsolete tagging of the @sourcegraph/apis (#57091) 2023-09-27 16:31:11 +00:00