<commit_before>#!/bin/bash
set -eu

stack_name=$(buildkite-agent meta-data get stack_name)
bk_pipeline_slug=$(buildkite-agent meta-data get bk_pipeline_slug)

echo "--- Deleting stack $stack_name"
aws cloudformation delete-stack --stack-name "$stack_name"

echo "--- Deleting pipeline $bk_pipeline_slug"
curl --silent -f -X DELETE "https://api.buildkite.com/v2/organizations/$BUILDKITE_AWS_STACK_ORG_SLUG/pipelines/$bk_pipeline_slug"<commit_msg>Show errors in cleanup<commit_after>#!/bin/bash
set -eu

stack_name=$(buildkite-agent meta-data get stack_name)
bk_pipeline_slug=$(buildkite-agent meta-data get bk_pipeline_slug)

echo "--- Deleting stack $stack_name"
aws cloudformation delete-stack --stack-name "$stack_name"

echo "--- Deleting pipeline $bk_pipeline_slug"
curl --show-error --silent -f -X DELETE "https://api.buildkite.com/v2/organizations/$BUILDKITE_AWS_STACK_ORG_SLUG/pipelines/$bk_pipeline_slug"
{'fraction_non_alphanumeric': 0.12828947368421054, 'fraction_numerical': 0.0021929824561403508, 'mean_word_length': 5.713235294117647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1915902', 'n_tokens_mistral': 338, 'n_tokens_neox': 339, 'n_words': 63}