-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major overhaul on acceptance test infrastructure and ci pipeline
- Intent is to deploy this to the shared foundational infrastructure ci instance - As there is no longer a long lived bosh director, the acceptance tests now run in a bosh-lite environment directly in the CI container - CI has jobs for acceptance tests, automated weekly bumps for golang packages, automated bumps of postgres packages, and a job to cut a final release - All other CI pipelines and tasks have been removed - Acceptance tests have been updated to go mod and dependencies have been vendored - I've removed the "old" concept from the versions.yml and instead changed the helper to use the release two versions back as the old one. Not 100% sure this is correct behavior (and may cause problems due to v45 being broken), but it seems like testing n-2 to current will always catch problems caused by a major postgres bump.
- Loading branch information
Showing
1,128 changed files
with
487,853 additions
and
1,922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
dir="$(dirname "$0")" | ||
|
||
fly -t "${CONCOURSE_TARGET:-bosh}" set-pipeline -p postgres-release -c "$dir/pipeline.yml" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
jobs: | ||
- name: run-acceptance-tests | ||
serial: true | ||
plan: | ||
- in_parallel: | ||
- get: bosh-warden-cpi-registry-image | ||
- get: postgres-release | ||
trigger: true | ||
- get: stemcell | ||
resource: warden-ubuntu-jammy-stemcell | ||
trigger: true | ||
- get: bbr-github-release | ||
params: | ||
globs: | ||
- bbr-*.tar | ||
- task: run-acceptance-tests | ||
file: postgres-release/ci/tasks/run-acceptance-tests/task.yml | ||
image: bosh-warden-cpi-registry-image | ||
privileged: true | ||
|
||
- name: create-final-release | ||
serial: true | ||
plan: | ||
- in_parallel: | ||
- get: postgres-release | ||
passed: | ||
- run-acceptance-tests | ||
- get: bosh-cli-registry-image | ||
- task: create-final-release | ||
file: release-repo/ci/tasks/create-final-release/task.yml | ||
image: bosh-cli-registry-image | ||
params: | ||
RELEASE_NAME: postgres | ||
RELEASE_PRIVATE_YML: | | ||
blobstore: | ||
options: | ||
access_key_id: ((postgres-release-blobstore-user.username)) | ||
secret_access_key: ((postgres-release-blobstore-user.password)) | ||
- put: postgres-release | ||
params: | ||
repository: postgres-release | ||
tag: postgres-release/version_number | ||
tag_prefix: v | ||
|
||
- name: bump-golang-dependencies | ||
serial_groups: | ||
- dependency-bumps | ||
plan: | ||
- in_parallel: | ||
- get: postgres-release | ||
- get: golang-release | ||
- get: golang-release-registry-image | ||
- get: weekly | ||
trigger: true | ||
- task: bump-deps | ||
file: golang-release/ci/tasks/shared/bump-deps.yml | ||
image: golang-release-registry-image | ||
input_mapping: | ||
input_repo: postgres-release | ||
output_mapping: | ||
output_repo: postgres-release | ||
params: | ||
SOURCE_PATH: src/acceptance-tests | ||
- put: postgres-release | ||
params: | ||
repository: postgres-release | ||
rebase: true | ||
|
||
- name: bump-packages | ||
serial_groups: | ||
- dependency-bumps | ||
plan: | ||
- in_parallel: | ||
- get: bosh-cli-registry-image | ||
- get: postgres-release | ||
- get: postgres-11-src | ||
trigger: true | ||
- get: postgres-13-src | ||
trigger: true | ||
- get: postgres-15-src | ||
trigger: true | ||
- task: bump-postgres-11-package | ||
file: postgres-release/ci/tasks/bump-postgres-packages.yml | ||
image: bosh-cli-registry-image | ||
input_mapping: | ||
postgres-src: postgres-10-src | ||
params: | ||
MAJOR_VERSION: 11 | ||
PRIVATE_YML: | | ||
blobstore: | ||
options: | ||
credentials_source: static | ||
json_key: '((bosh_release_blobs_gcp_credentials_json))' | ||
- task: bump-postgres-13-package | ||
file: postgres-release/ci/tasks/bump-postgres-packages.yml | ||
image: bosh-cli-registry-image | ||
input_mapping: | ||
postgres-src: postgres-13-src | ||
params: | ||
MAJOR_VERSION: 13 | ||
PRIVATE_YML: | | ||
blobstore: | ||
options: | ||
credentials_source: static | ||
json_key: '((bosh_release_blobs_gcp_credentials_json))' | ||
- task: bump-postgres-15-package | ||
file: postgres-release/ci/tasks/bump-postgres-packages.yml | ||
image: bosh-cli-registry-image | ||
input_mapping: | ||
postgres-src: postgres-15-src | ||
params: | ||
MAJOR_VERSION: 15 | ||
PRIVATE_YML: | | ||
blobstore: | ||
options: | ||
credentials_source: static | ||
json_key: '((bosh_release_blobs_gcp_credentials_json))' | ||
- put: postgres-release | ||
params: | ||
repository: postgres-release | ||
rebase: true | ||
|
||
resources: | ||
- name: bbr-github-release | ||
type: github-release | ||
source: | ||
owner: cloudfoundry | ||
repository: bosh-backup-and-restore | ||
|
||
- name: bosh-cli-registry-image | ||
type: registry-image | ||
source: | ||
repository: bosh/cli2 | ||
username: ((dockerhub_username)) | ||
password: ((dockerhub_password)) | ||
|
||
- name: bosh-warden-cpi-registry-image | ||
type: registry-image | ||
source: | ||
repository: bosh/warden-cpi | ||
username: ((dockerhub_username)) | ||
password: ((dockerhub_password)) | ||
|
||
- name: golang-release | ||
type: git | ||
source: | ||
uri: https://github.com/cloudfoundry/bosh-package-golang-release.git | ||
|
||
- name: golang-release-registry-image | ||
type: registry-image | ||
source: | ||
repository: bosh/golang-release | ||
username: ((dockerhub.username)) | ||
password: ((dockerhub.password)) | ||
|
||
- name: postgres-11-src | ||
type: http-resource | ||
source: | ||
index: "https://ftp.postgresql.org/pub/source/" | ||
regex: 'href="v(?P<version>11\.[0-9.]+)/"' | ||
uri: "https://ftp.postgresql.org/pub/source/v{version}/postgresql-{version}.tar.gz" | ||
|
||
- name: postgres-13-src | ||
type: http-resource | ||
source: | ||
index: "https://ftp.postgresql.org/pub/source/" | ||
regex: 'href="v(?P<version>13\.[0-9.]+)/"' | ||
uri: "https://ftp.postgresql.org/pub/source/v{version}/postgresql-{version}.tar.gz" | ||
|
||
- name: postgres-15-src | ||
type: http-resource | ||
source: | ||
index: "https://ftp.postgresql.org/pub/source/" | ||
regex: 'href="v(?P<version>15\.[0-9.]+)/"' | ||
uri: "https://ftp.postgresql.org/pub/source/v{version}/postgresql-{version}.tar.gz" | ||
|
||
- name: postgres-release | ||
type: git | ||
source: | ||
uri: https://github.com/cloudfoundry/postgres-release.git | ||
branch: main | ||
private_key: ((github_deploy_key_postgres-release.private_key)) | ||
|
||
- name: warden-ubuntu-jammy-stemcell | ||
type: bosh-io-stemcell | ||
source: | ||
name: bosh-warden-boshlite-ubuntu-jammy-go_agent | ||
|
||
- name: weekly | ||
type: time | ||
source: | ||
start: 3:00 | ||
stop: 4:30 | ||
days: [ Saturday ] | ||
|
||
resource_types: | ||
- name: http-resource | ||
type: docker-image | ||
source: | ||
repository: aequitas/http-resource | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.