Development - GoogleCloudPlatform/anthos-appconfig GitHub Wiki

Development

Use Branch off Master

  • Prefix with "dev-", to avoid automatic build on push
  • Create Pull Request ** Loop
    • Merge with latest from master
    • Submit Build Job with PR/Branch
    • PR Updated with Build and Test Results
  • Approval
  • Merge PR (trigger master build) git fetch origin pull/33/head:pr-33 && git checkout pr-33 Warning: Master Build Fails - All Hands on Deck.

Release

Review latest SHA's for master

PARM_SUBS=''
PARM_SUBS="${PARM_SUBS}_BUILDER_VERSION=v2.0.1"
PARM_SUBS="${PARM_SUBS},_BRANCH_NAME=master"
PARM_SUBS="${PARM_SUBS},_REF_PATH=BRANCH_VERSION"
PARM_SUBS="${PARM_SUBS},_POTENTIAL_VERSION=v0.6.1"
PARM_SUBS="${PARM_SUBS},_GS_PROJECT_ID=anthos-appconfig"
gcloud builds submit --config=builder/appconfig-crd/cloudbuild.yaml  \
   builder/appconfig-crd  --project appconfig-crd-env-bld  --async \
   --substitutions="${PARM_SUBS}"

Dev Branch


PARM_SUBS=''
PARM_SUBS="${PARM_SUBS}_BUILDER_VERSION=v2.0.1"
PARM_SUBS="${PARM_SUBS},_BRANCH_NAME=master"
PARM_SUBS="${PARM_SUBS},_REF_PATH=BRANCH_MANUAL"
PARM_SUBS="${PARM_SUBS},_POTENTIAL_VERSION=NOTUSED"
gcloud builds submit --config=builder/appconfig-crd/cloudbuild.yaml  --machine-type=n1-highcpu-8 \
   builder/appconfig-crd  --project anthos-appconfig --async \
   --substitutions="${PARM_SUBS}"

PARM_SUBS=''
PARM_SUBS="${PARM_SUBS}_BRANCH_NAME=master"
PARM_SUBS="${PARM_SUBS},_STEPS_X="
PARM_SUBS="${PARM_SUBS},_REF_PATH=SHA_MANUAL_RELEASE"
PARM_SUBS="${PARM_SUBS},_POTENTIAL_VERSION=v0.6.1"
#PARM_SUBS="${PARM_SUBS},_INPUT_SHA_LONG=$(git rev-parse --verify HEAD)"
PARM_SUBS="${PARM_SUBS},_INPUT_SHA_LONG=6f861327203c81a7626c83f4ed398539a1121000"
PARM_SUBS="${PARM_SUBS},_GS_PROJECT_ID=anthos-appconfig"
gcloud builds submit --config=tests/setup/cloudbuild.yaml  \
   tests/setup/jobtemp  --project appconfig-crd-env-bld --async  \
   --substitutions="${PARM_SUBS}"
PARM_SUBS=''
PARM_SUBS="${PARM_SUBS}_BRANCH_NAME=secrets-variations-139416621-a"
PARM_SUBS="${PARM_SUBS},_STEPS_X=''"
PARM_SUBS="${PARM_SUBS},_REF_PATH=BRANCH_MANUAL"
PARM_SUBS="${PARM_SUBS},_POTENTIAL_VERSION=b-secrets-variations-139416621-a"
#PARM_SUBS="${PARM_SUBS},_INPUT_SHA_LONG=$(git rev-parse --verify HEAD)"
PARM_SUBS="${PARM_SUBS},_INPUT_SHA_LONG=DONOTUSETHISPLEASE"
PARM_SUBS="${PARM_SUBS},_GS_PROJECT_ID=anthos-appconfig"
gcloud builds submit --config=tests/setup/cloudbuild.yaml  \
   tests/setup/jobtemp  --project appconfig-crd-env-bld --async --machine-type=n1-highcpu-8  \
   --substitutions="${PARM_SUBS}"

Cut the latest successful one

Build Information

https://console.cloud.google.com/storage/browser/anthos-appconfig_build_reports/build_test

  • Folders
    • Build/(success or fail)/date-sha1

Source Code Headers

Every file containing source code must include copyright and license information. This includes any JS/CSS files that you might be serving out to browsers. (This is to help well-intentioned people avoid accidental copying that doesn't comply with the license.)

Apache header:

Copyright 2019 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.