build: remove unused, outdated cloudbuild config

The config predates kokoro CI.
The GitHub-based test workflow is not accessible
by external, unapproved contributors.

Remove the docs/testing.md that mostly talks about
these outdated workflows.

Change-Id: Ie7502067d53494f9b28bc807313b35885e066cb3
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/506655
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Hana (Hyang-Ah) Kim 2023-06-22 18:52:47 -04:00 коммит произвёл Hyang-Ah Hana Kim
Родитель 3b2da9a164
Коммит 0de0e1131c
4 изменённых файлов: 0 добавлений и 63 удалений

Просмотреть файл

@ -1 +0,0 @@
# See the [testing documentation](../docs/testing.md)

Просмотреть файл

@ -1,5 +0,0 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/vscode-test-env', '-f', 'build/Dockerfile', '.']
images:
- 'gcr.io/$PROJECT_ID/vscode-test-env'

Просмотреть файл

@ -1,9 +0,0 @@
steps:
- name: 'gcr.io/$PROJECT_ID/vscode-test-env'
entrypoint: "./build/all.bash"
args: ['ci']
env:
- 'BUILD=$BUILD_ID'
- 'PROJECT=$PROJECT_ID'
- 'REV=$REVISION_ID'
timeout: 600s

Просмотреть файл

@ -1,48 +0,0 @@
# Testing
We currently use two separate continuous integration (CI) systems to test all changes and pushed commits:
* [Tests running in Google Cloud Build (GCB)](#testing-via-gcb), and
* [Tests running with GitHub Actions](#testing-via-github-actions)
This is a temporary setup; once GCB fully supports our desired workflow, we plan to use only the GCB-based setup for CI.
The [release of the Go Nightly](#nightly-release) extension is automated using GitHub Actions.
## Testing via GCB
This workflow is triggered for Gerrit CLs and for all commits merged into the master branch. Note that our main repository is [go.googlesource.com/vscode-go](https://go.googlesource.com/vscode-go), and
[github.com/golang/vscode-go](https://github.com/golang/vscode-go) is a mirror of the Go Git repository. All PRs sent to the GitHub repository will be converted to Gerrit CLs.
Currently, the results of the CI run are visible only to GCB project members. We are working on improving this workflow and making the results visible to the public and easily accessible through our Gerrit review UI.
The GCB workflow is defined in [`build/cloudbuild.yaml`](../build/cloudbuild.yaml) and [`build/all.bash`](../build/all.bash).
The Docker container used for testing is defined in [`build/cloudbuild.container.yaml`](../build/cloudbuild.container.yaml) and [`build/Dockerfile`](../build/Dockerfile).
GCB project members can manually trigger a build and test their local changes. Follow the [GCB instructions](https://cloud.google.com/cloud-build/docs/running-builds/start-build-manually) to set up the environment and tools, and then run:
```bash
gcloud config set project vscode-go # this assumes access to vscode-go GCB project. If you encounter an access related error, please file an issue.
gcloud builds submit --config=build/cloudbuild.yaml
```
To modify and rebuild the Docker container image, run:
```bash
gcloud builds submit --config=build/cloudbuild.container.yaml
```
## Testing via GitHub Actions
This is the workflow triggered for every PR and commit made to our mirror repository on GitHub, [github.com/golang/vscode-go](https://github.com/golang/vscode-go). We use this CI system to run tests on platforms that GCB does not yet support. This workflow is not triggered by CLs sent via Gerrit yet.
[`.github/workflows/test-long.yml`](../.github/workflows/test-long.yml) and
[`.github/workflows/test-smoke.yml`](../.github/workflows/test-smoke.yml)
define the GitHub Actions-based CI workflow.
### [Nightly Release](nightly.md)
A new version of the [Go Nightly](nightly.md) extension, based on the current `master` branch, is released at least once a day between Monday and Thursday. Learn more in the [Go Nightly documentation](nightly.md).
The daily release process is automated via a GitHub Action. See [`.github/workflows/release.yml`](../.github/workflows/release.yml) and [`build/all.bash`](../build/all.bash).