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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>