From 667206741e8bcc0bc943413d37453b5c304760b6 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 2 May 2024 14:26:09 -0500 Subject: [PATCH] remove homebrew testing (#190) --- .../test-dbt-installation-homebrew.yml | 77 ------------------- .../workflows/test-dbt-installation-main.yml | 18 ----- 2 files changed, 95 deletions(-) delete mode 100644 .github/workflows/test-dbt-installation-homebrew.yml diff --git a/.github/workflows/test-dbt-installation-homebrew.yml b/.github/workflows/test-dbt-installation-homebrew.yml deleted file mode 100644 index 24aa77d2..00000000 --- a/.github/workflows/test-dbt-installation-homebrew.yml +++ /dev/null @@ -1,77 +0,0 @@ -# **what?** -# This workflow installs the latest version of dbt adapter from homebrew. -# It then runs 'dbt --version' to verify the installation was successful. -# If it fails for the scheduled runs, it will post to our team alerts channel. - -# **why?** -# This is a simple way to test all adapter installations at a single -# time. It allows us to test them on a schedule as well to check for -# any breaking dependency changes that might happen and alert us on it. - -# **when?** -# This reusable workflow can be called or started manually -# by specifying the package name - -name: dbt Installation - Homebrew Integration Tests - -on: - workflow_dispatch: - inputs: - package_name: - description: "Package name to test (i.e. dbt-postgres)" - required: true - type: string - workflow_call: - inputs: - package_name: - required: true - type: string - secrets: - SLACK_WEBHOOK_URL: - description: Slack app webhook url - required: true - -permissions: - contents: read # required for slack-post-notification workflow - -env: - ARTIFACT_BASENAME: "homebrew-installation-test" - ARTIFACT_RETENTION_DAYS: 1 - -defaults: - run: - shell: bash - -jobs: - homebrew-installation-test: - runs-on: macos-12 - steps: - - name: "Prepare Brew" - # brew upgrade generates some symlink update warnings that cause failures without the || true. - # They're just that the symlink wasn't updated which is okay to ignore. - # This does cause other errors to be ignored but for this case that's safe since the brew install - # step would likely fail at that point. - run: brew update && brew upgrade || true - - - name: "[DEBUG] Show List Of Installed Homebrew Packages" - run: brew list - - - name: "Tap dbt-labs/dbt Repository To Homebrew Formulae" - run: brew tap dbt-labs/dbt - - - name: "[DEBUG] Show List Of All Currently Tapped Repositories" - run: brew tap - - - name: "Brew Install ${{ inputs.package_name }}" - run: brew install --verbose ${{ inputs.package_name }} - - - name: "Verify ${{ inputs.package_name }} Version" - id: installation-test - run: dbt --version - - - name: "[INFO] Homebrew installation test failure" - if: ${{ always() && steps.installation-test.outcome != 'success' }} - uses: ./.github/actions/test-dbt-installation-notification - with: - method: "Homebrew" - scenario: ${{ inputs.package_name }} diff --git a/.github/workflows/test-dbt-installation-main.yml b/.github/workflows/test-dbt-installation-main.yml index ff3016f8..f6556981 100644 --- a/.github/workflows/test-dbt-installation-main.yml +++ b/.github/workflows/test-dbt-installation-main.yml @@ -24,7 +24,6 @@ on: default: "all" options: - "all" - - "homebrew" - "pip" - "docker" - "source" @@ -34,23 +33,6 @@ on: - cron: "0 9,13,18 * * *" # 9:00, 13:00, 18:00 UTC jobs: - dbt-installation-homebrew: - if: >- - github.event_name == 'schedule' - || (inputs.test-installation-method == 'all' - || inputs.test-installation-method == 'homebrew') - - strategy: - fail-fast: false - matrix: - package: - ["dbt-postgres", "dbt-redshift", "dbt-snowflake", "dbt-bigquery"] - - uses: ./.github/workflows/test-dbt-installation-homebrew.yml - with: - package_name: ${{ matrix.package }} - secrets: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEV_ADAPTER_ALERTS }} dbt-installation-pip: if: >-