<commit_before>---
platform: linux

image: docker:///cloudfoundry/cli-vagrant-ci

params:
  LITE_PRIVATE_IP_ADDRESS:
  LITE_HOSTNAME:

inputs:
- name: cf-routing-release-repo
- name: cf-release-repo

run:
  path: bash
  args:
  - -c
  - |
    set -eux

    export DOMAIN=`cat bosh-lite-lock/name`

    export ADMIN_USER=admin
    export ADMIN_PASSWORD=<PASSWORD>
    export API_ENDPOINT="https://api.${DOMAIN}"

    cf_deployment_name=cf-warden
    cf_deployment_file=cf-warden.yml

    diego_deployment_name=cf-warden-diego
    diego_deployment_file=cf-warden-diego.yml

    bosh -n target $LITE_PRIVATE_IP_ADDRESS

    cat<<EOF > cf-routing-release-repo/post-routing-release-deploy-overrides.yml
    properties:
      cc:
        default_to_diego_backend: true
      router:
        enable_routing_api: true
    EOF

    pushd cf-routing-release-repo
      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD create release --force
      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD upload release --rebase

      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD download manifest $cf_deployment_name $cf_deployment_file
      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD download manifest $diego_deployment_name $diego_deployment_file

      ./scripts/generate-bosh-lite-manifest $cf_deployment_file $diego_deployment_file

      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD deploy

      ####
      # Redeploy CF with new routing stuff enabled
      spiff merge $cf_deployment_file post-routing-release-deploy-overrides.yml > cf-warden-plus-plus.yml
      bosh deployment cf-warden-plus-plus.yml
      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD deploy
      ####
    popd
<commit_msg>Do not default to diego backend<commit_after>---
platform: linux

image: docker:///cloudfoundry/cli-vagrant-ci

params:
  LITE_PRIVATE_IP_ADDRESS:
  LITE_HOSTNAME:

inputs:
- name: cf-routing-release-repo
- name: cf-release-repo

run:
  path: bash
  args:
  - -c
  - |
    set -eux

    export DOMAIN=`cat bosh-lite-lock/name`

    export ADMIN_USER=admin
    export ADMIN_PASSWORD=<PASSWORD>
    export API_ENDPOINT="https://api.${DOMAIN}"

    cf_deployment_name=cf-warden
    cf_deployment_file=cf-warden.yml

    diego_deployment_name=cf-warden-diego
    diego_deployment_file=cf-warden-diego.yml

    bosh -n target $LITE_PRIVATE_IP_ADDRESS

    cat<<EOF > cf-routing-release-repo/post-routing-release-deploy-overrides.yml
    properties:
      router:
        enable_routing_api: true
    EOF

    pushd cf-routing-release-repo
      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD create release --force
      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD upload release --rebase

      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD download manifest $cf_deployment_name $cf_deployment_file
      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD download manifest $diego_deployment_name $diego_deployment_file

      ./scripts/generate-bosh-lite-manifest $cf_deployment_file $diego_deployment_file

      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD deploy

      ####
      # Redeploy CF with new routing stuff enabled
      spiff merge $cf_deployment_file post-routing-release-deploy-overrides.yml > cf-warden-plus-plus.yml
      bosh deployment cf-warden-plus-plus.yml
      bosh -n -u $ADMIN_USER -p $ADMIN_PASSWORD deploy
      ####
    popd

{'fraction_non_alphanumeric': 0.09662716499544212, 'fraction_numerical': 0.0, 'mean_word_length': 3.1201501877346685, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1850646', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1180, 'n_words': 242}