Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
Jamal Carvalho d08dfb535a deploy: add config for unattended deploy trigger
A second yaml config for cloud build triggers will run
predeploy tests, deploy to staging, run postdeploy tests,
and deploy to production.

Change-Id: Ie52657d8735a085c38ca8417af02819382186c92
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/361934
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-11-09 17:02:06 +00:00
Jamal Carvalho bba5408ae8 gitignore: ignore cloud build artifacts
Cloud build tags all docker images with the -unclean suffix
because the _BUILD_TAG file it generates creates an untracked
file during deployments. Adding this and other artifacts will
prevent any issues when running cloud build or testing the deploy
scripts locally.

Change-Id: I66ee14169b5798f70814972dcc68b8202e6b556f
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/361936
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-11-08 22:32:18 +00:00
Jamal Carvalho 44092e5448 .gitignore: ignore nested image diff directories
Change-Id: Ie2ec82b50a2c01f81d3a59b4ca0e72b5b50bbfa3
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/338113
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-07-28 19:34:05 +00:00
Julie Qiu ea375110ee tests: move e2e/ to tests/e2e
A new tests directory is created which contains all tests that require
setup using docker and a database to be seed.

e2e/ is moved to tests/e2e.

devtools/run_e2e.sh is renamed to tests/e2e/run.sh.

A tests/README.md is added.

Change-Id: I224d71b31090ca4a9b0ff4e2adcaee8db7fa236f
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/334374
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-07-16 15:05:55 +00:00
Jamal Carvalho edde34b69d .gitignore: exclude image snapshot diffs
Change-Id: Ib37bfea8be21076dafe6fd403516b5543978ff16
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/292693
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Julie Qiu <julie@golang.org>
2021-02-16 21:18:28 +00:00
Jonathan Amsterdam 4890b3bc4f many: add node_modules directory to .gcloudignore
This directory is created by npm and is large. In fact, including
it results in too many files for `gcloud app deploy`.

Also, put .gcloudignore files under version control.

Change-Id: I6cbf1c42b312911b9b2b16215469cb027bedebe1
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/286932
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
2021-01-26 20:22:06 +00:00
Jamal Carvalho 45a7b223da devtools: add support for running prettier within docker
Creates build file for pkgsite npm container. This will enable
contributors to run prettier formatting without having npm and
node installed on their machines as long as they have docker and
docker-composed installed.

Change-Id: Ibb9ff375eabcb548d258907cf6f1111ca3654e7d
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/275447
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-12-09 01:16:26 +00:00
Julie Qiu b158f01f45 all: add tool for enabling all experiments
A script is added to create an experiment.yaml file which will enable
all experiments.

Documentation on how to enable experiments is consolidated in
experiment.md. Instructions on how to use this script is added.

Change-Id: I46dc75a5f84d3100b8ecb45453f803afab5c19af
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/264757
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-10-27 16:55:55 +00:00
Jamal Carvalho 971bb9bb51 .gitignore: add vscode debugger files to gitignore
Adds directory .vscode and file __debug_bin to the ignore file.
These files are necessary to run the the vscode debugger.

Change-Id: I23a6cf9e3846bcca160cf668a832d1289e1e0cac
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/257660
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Trust: Jamal Carvalho <jamal@golang.org>
2020-09-28 16:29:50 +00:00
Rob Findley 29472c87ad .gitignore: remove editor related section
Individuals (namely me) should just set a personal excludesfile.

Change-Id: I0417495de7a87346e61224da84c50ce70b2c3900
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/238439
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-06-17 13:36:22 +00:00
Jonathan Amsterdam 61a156840f .gitignore: do not ignore zips
We use zip files as license test data. They should not be ignored by
git.

Change-Id: I21672c4fae5b759c8a9869b63f465c8550d8b513
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/769679
CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2020-06-12 16:15:44 +00:00
Julie Qiu 14287ce18e .gitignore: remove terraform
Change-Id: I9f6dd5a8ba68ea4d9eb09b61ce664958ecb95256
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/706454
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-04-06 17:09:52 -04:00
Julie Qiu 183a903c85 .gitignore: add .yaml files
Change-Id: Ibf150de25b1906985c33c9a4b99f2ac040e91abe
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/687558
CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-04-06 15:50:52 -04:00
Rob Findley d901d01b12 internal/postgres: add a fast(er) search
A new method is added to postgres.DB, optimistically named 'FastSearch',
that implements search hedging. Each FastSearch concurrently queries
both all packages as well as popular subsets of packages, so that
results can be returned quicker when they consist entirely of popular
packages.

Additionallly SearchResult.Rank is renamed to 'Score', to differentiate
it from ts_rank.

The old 'Search' method is kept for now, although 'log' is corrected to
'ln' (this should have little effect on the ordering of results). In a
subsequent CL we will switch the default search method to FastSearch,
and implement the 'of many' qualifier in the search result summary.

Updates b/141182438

Change-Id: I73c6700e09288f3a8bfdb5fa57d0899606e452d2
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/558516
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2020-03-27 16:46:44 -04:00
Rob Findley 366285d878 internal/auth: add auth.Header
Change-Id: Ieee6bee0f2616ff7cacd813cade4d56721791270
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/550835
CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2020-03-27 16:46:43 -04:00
Rob Findley 8d037932f3 discovery: tidy go.mod and gitignore credentials.json
Change-Id: Ic80bf7b0cfc6f36262f71a4fab535d405e6ee22e
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/547470
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julieqiu@google.com>
2020-03-27 16:46:43 -04:00
Rob Findley 61455eeb4b discovery: add my environment file to .gitignore
Change-Id: I816cfd190d7ea13c1d41f1c97b05c6e2579af177
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/491877
Reviewed-by: Julie Qiu <julieqiu@google.com>
2020-03-27 16:46:38 -04:00
Rob Findley c8c0b754c5 discovery: add tags to .gitignore
Change-Id: Ia89d1ddd1b438425279c135556f5d949ddedf078
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/491259
Reviewed-by: Julie Qiu <julieqiu@google.com>
2020-03-27 16:46:38 -04:00
Julie Qiu af92eba8d4 discovery: add go.sum files for testdata to .gitignore
When IntelliJ starts up, it adds go.sum files to
internal/proxy/testdata/modproxy/modules. These are added to the
.gitignore.

Change-Id: I487973eb2f3844b29528f2d947d058c6cbd1c557
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/489913
Reviewed-by: Robert Findley <rfindley@google.com>
2020-03-27 16:46:38 -04:00
Julie Qiu 23e1fd27ba .gitignore: add GCP files to .gitignore
Change-Id: Ic5819d4dc2af207c0fcad9d038095adad71a0770
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/447918
Reviewed-by: Robert Findley <rfindley@google.com>
2020-03-27 16:46:35 -04:00
Julie Qiu effbce9ef1 discovery: add .idea directory to .gitignore
IntelliJ creates a .idea ignore in the repository root, which is now
ignored by git.

Change-Id: Ieda599bbc0865649e91bb4bee82b001d615a1026
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/447072
Reviewed-by: Robert Findley <rfindley@google.com>
2020-03-27 16:46:35 -04:00
Julie Qiu 1a323c51c5 discovery: add GCP service account JSON file to .gitignore
Change-Id: I8d7fa5e13d67af93e5ab9208ad9084598bb8a091
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/441335
Reviewed-by: Channing Kimble-Brown <ckimblebrown@google.com>
2020-03-27 16:46:34 -04:00
Julie Qiu 9a2b4c5599 internal/proxy: add zip files to .gitignore
Zip files are now ignored by git, since the binary files created are
different depending on the machine.

Change-Id: I1d21482f9d8b6cfee6c8cf60c5419da260527ba0
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/436919
Reviewed-by: Channing Kimble-Brown <ckimblebrown@google.com>
2020-03-27 16:46:34 -04:00
Julie Qiu dc7cd4ceb0 discovery: change replace directive for sos.googlesource.com/sos
The replace directive for sos.googlesource.com/sos is moved to
the root of the discovery repo to fix a build error when deploying GAE.

Fixes b/128783757.

Change-Id: I02d290f2f98e161e992b8191d9f74a8fc2d54531
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/435776
Reviewed-by: Channing Kimble-Brown <ckimblebrown@google.com>
2020-03-27 16:46:33 -04:00
Julie Qiu f0bb052bb4 discovery: create proxy for testing; add .DS_Store to .gitignore
Implemented a proxy that runs on localhost:8080 following the Module
proxy protocol.

It supports the modules and versions:

- my/module (v1.0.0, v1.1.0, v1.1.1)
- my/module/v2 (v2.0.0)

A GET request can be made to:

- GET $GOPROXY/<module>/@v/list
- GET $GOPROXY/<module>/@v/<version>.info
- GET $GOPROXY/<module>/@v/<version>.mod
- GET $GOPROXY/<module>/@v/<version>.zip

All the zip files contain only an empty README.md.

Change-Id: If7d547eb94a9a24608fafccdfd39330da9849a0e
Reviewed-on: https://team-review.git.corp.google.com/c/412883
Reviewed-by: Andrew Bonventre <andybons@google.com>
2020-03-27 16:46:33 -04:00
Julie Qiu 1514fd1542 discovery: initialize go.mod, create .gitignore, initial terraform setup
terraform main.tf creates:
- frontend (app engine standard)
- discovery database (cloud sql for postgres)
- source storage (GCS bucket)
- pub/sub

Change-Id: I5fc6d9f849a85aa281ca5bcbbc9fe32d45f8e89c
Reviewed-on: https://team-review.git.corp.google.com/c/409073
Reviewed-by: Andrew Bonventre <andybons@google.com>
2019-02-04 19:10:52 +00:00