diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index c2cb2a061..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -name: Bug report -about: Report a bug or an issue you've found with dbt-bigquery -title: '' -labels: bug, triage -assignees: '' - ---- - -### Describe the bug -A clear and concise description of what the bug is. What command did you run? What happened? - -### Steps To Reproduce -In as much detail as possible, please provide steps to reproduce the issue. Sample data that triggers the issue, example model code, etc is all very helpful here. - -### Expected behavior -A clear and concise description of what you expected to happen. - -### Screenshots and log output -If applicable, add screenshots or log output to help explain your problem. - -### System information -**The output of `dbt --version`:** -``` - -``` - -**The operating system you're using:** - -**The output of `python --version`:** - -### Additional context -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 5c0a9545f..000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for dbt-bigquery -title: '' -labels: enhancement, triage -assignees: '' - ---- - -### Describe the feature -A clear and concise description of what you want to happen. - -### Describe alternatives you've considered -A clear and concise description of any alternative solutions or features you've considered. - -### Additional context -Please include any other relevant context here. - -### Who will this benefit? -What kind of use case will this feature be useful for? Please be specific and provide examples, this will help us prioritize properly. - -### Are you interested in contributing this feature? -Let us know if you want to write some code, and how we can help. diff --git a/.github/ISSUE_TEMPLATE/release.md b/.github/ISSUE_TEMPLATE/release.md deleted file mode 100644 index c3cb05c3c..000000000 --- a/.github/ISSUE_TEMPLATE/release.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Release -about: Release a new version of dbt-bigquery -title: '' -labels: release -assignees: '' - ---- - -### TBD diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 2a6f34492..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,8 +0,0 @@ -version: 2 -updates: - # python dependencies - - package-ecosystem: "pip" - directory: "/" - schedule: - interval: "daily" - rebase-strategy: "disabled" diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index 5d8734bd5..000000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,21 +0,0 @@ -resolves # - - - -### Description - - - -### Checklist - -- [ ] I have signed the [CLA](https://docs.getdbt.com/docs/contributor-license-agreements) -- [ ] I have run this code in development and it appears to resolve the stated issue -- [ ] This PR includes tests, or tests are not required/relevant for this PR -- [ ] I have run `changie new` to [create a changelog entry](https://github.com/dbt-labs/dbt-bigquery/blob/main/CONTRIBUTING.md#Adding-CHANGELOG-Entry) diff --git a/.github/workflows/bot-changelog.yml b/.github/workflows/bot-changelog.yml deleted file mode 100644 index 8122ab8b4..000000000 --- a/.github/workflows/bot-changelog.yml +++ /dev/null @@ -1,60 +0,0 @@ -# **what?** -# When bots create a PR, this action will add a corresponding changie yaml file to that -# PR when a specific label is added. -# -# The file is created off a template: -# -# kind: -# body: -# time: -# custom: -# Author: -# PR: -# -# **why?** -# Automate changelog generation for more visability with automated bot PRs. -# -# **when?** -# Once a PR is created, label should be added to PR before or after creation. You can also -# manually trigger this by adding the appropriate label at any time. -# -# **how to add another bot?** -# Add the label and changie kind to the include matrix. That's it! -# - -name: Bot Changelog - -on: - pull_request: - # catch when the PR is opened with the label or when the label is added - types: [opened, labeled] - -permissions: - contents: write - pull-requests: read - -jobs: - generate_changelog: - strategy: - matrix: - include: - - label: "dependencies" - changie_kind: "Dependencies" - - label: "snyk" - changie_kind: "Security" - runs-on: ubuntu-latest - - steps: - - - name: Create and commit changelog on bot PR - if: "contains(github.event.pull_request.labels.*.name, ${{ matrix.label }})" - id: bot_changelog - uses: emmyoop/changie_bot@v1.0 - with: - GITHUB_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} - commit_author_name: "Github Build Bot" - commit_author_email: "" - commit_message: "Add automated changelog yaml from template for bot PR" - changie_kind: ${{ matrix.changie_kind }} - label: ${{ matrix.label }} - custom_changelog_string: "custom:\n Author: ${{ github.event.pull_request.user.login }}\n PR: ${{ github.event.pull_request.number }}\n" diff --git a/.github/workflows/changelog-existence.yml b/.github/workflows/changelog-existence.yml deleted file mode 100644 index 1284bfe46..000000000 --- a/.github/workflows/changelog-existence.yml +++ /dev/null @@ -1,41 +0,0 @@ -# **what?** -# Checks that a file has been committed under the /.changes directory -# as a new CHANGELOG entry. Cannot check for a specific filename as -# it is dynamically generated by change type and timestamp. -# This workflow should not require any secrets since it runs for PRs -# from forked repos. -# By default, secrets are not passed to workflows running from -# a forked repo. - -# **why?** -# Ensure code change gets reflected in the CHANGELOG. - -# **when?** -# This will run for all PRs going into main and *.latest. It will -# run when they are opened, reopened, when any label is added or removed -# and when new code is pushed to the branch. The action will then get -# skipped if the 'Skip Changelog' label is present is any of the labels. - -name: Check Changelog Entry - -on: - pull_request: - types: [opened, reopened, labeled, unlabeled, synchronize] - workflow_dispatch: - -defaults: - run: - shell: bash - -permissions: - contents: read - pull-requests: write - - -jobs: - changelog: - uses: dbt-labs/actions/.github/workflows/changelog-existence.yml@main - with: - changelog_comment: 'Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the [dbt-bigquery contributing guide](https://github.com/dbt-labs/dbt-bigquery/blob/main/CONTRIBUTING.MD).' - skip_label: 'Skip Changelog' - secrets: inherit # this is only acceptable because we own the action we're calling diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f2b6ff60d..5e2919fde 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -21,21 +21,7 @@ name: Adapter Integration Tests on: - # pushes to release branches - push: - branches: - - "main" - - "develop" - - "*.latest" - - "releases/*" - # all PRs, important to note that `pull_request_target` workflows - # will run in the context of the target branch of a PR - pull_request_target: - # manual trigger workflow_dispatch: - # run this once per night to ensure no regressions from latest dbt-core changes - schedule: - - cron: '0 5 * * *' # 5 UTC # explicitly turn off permissions for `GITHUB_TOKEN` permissions: read-all diff --git a/.github/workflows/jira-creation.yml b/.github/workflows/jira-creation.yml deleted file mode 100644 index b4016befc..000000000 --- a/.github/workflows/jira-creation.yml +++ /dev/null @@ -1,26 +0,0 @@ -# **what?** -# Mirrors issues into Jira. Includes the information: title, -# GitHub Issue ID and URL - -# **why?** -# Jira is our tool for tracking and we need to see these issues in there - -# **when?** -# On issue creation or when an issue is labeled `Jira` - -name: Jira Issue Creation - -on: - issues: - types: [opened, labeled] - -permissions: - issues: write - -jobs: - call-label-action: - uses: dbt-labs/jira-actions/.github/workflows/jira-creation.yml@main - secrets: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} diff --git a/.github/workflows/jira-label.yml b/.github/workflows/jira-label.yml deleted file mode 100644 index 3da2e3a38..000000000 --- a/.github/workflows/jira-label.yml +++ /dev/null @@ -1,26 +0,0 @@ -# **what?** -# Calls mirroring Jira label Action. Includes adding a new label -# to an existing issue or removing a label as well - -# **why?** -# Jira is our tool for tracking and we need to see these labels in there - -# **when?** -# On labels being added or removed from issues - -name: Jira Label Mirroring - -on: - issues: - types: [labeled, unlabeled] - -permissions: - issues: read - -jobs: - call-label-action: - uses: dbt-labs/jira-actions/.github/workflows/jira-label.yml@main - secrets: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} diff --git a/.github/workflows/jira-transition.yml b/.github/workflows/jira-transition.yml deleted file mode 100644 index ed9f9cd4f..000000000 --- a/.github/workflows/jira-transition.yml +++ /dev/null @@ -1,24 +0,0 @@ -# **what?** -# Transition a Jira issue to a new state -# Only supports these GitHub Issue transitions: -# closed, deleted, reopened - -# **why?** -# Jira needs to be kept up-to-date - -# **when?** -# On issue closing, deletion, reopened - -name: Jira Issue Transition - -on: - issues: - types: [closed, deleted, reopened] - -jobs: - call-label-action: - uses: dbt-labs/jira-actions/.github/workflows/jira-transition.yml@main - secrets: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3f8a393c..f19a1207e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,13 +15,6 @@ name: Tests and Code Checks on: - push: - branches: - - "main" - - "develop" - - "*.latest" - - "releases/*" - pull_request: workflow_dispatch: permissions: read-all diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml deleted file mode 100644 index 7f569ffe5..000000000 --- a/.github/workflows/nightly-release.yml +++ /dev/null @@ -1,109 +0,0 @@ -# **what?** -# Nightly releases to GitHub and PyPI. This workflow produces the following outcome: -# - generate and validate data for night release (commit SHA, version number, release branch); -# - pass data to release workflow; -# - night release will be pushed to GitHub as a draft release; -# - night build will be pushed to test PyPI; -# -# **why?** -# Ensure an automated and tested release process for nightly builds -# -# **when?** -# This workflow runs on schedule or can be run manually on demand. - -name: Nightly Test Release to GitHub and PyPI - -on: - workflow_dispatch: # for manual triggering - schedule: - - cron: 0 9 * * * - -permissions: - contents: write # this is the permission that allows creating a new release - -defaults: - run: - shell: bash - -env: - RELEASE_BRANCH: "1.1.latest" - -jobs: - aggregate-release-data: - runs-on: ubuntu-latest - - outputs: - commit_sha: ${{ steps.resolve-commit-sha.outputs.release_commit }} - version_number: ${{ steps.nightly-release-version.outputs.number }} - release_branch: ${{ steps.release-branch.outputs.name }} - - steps: - - name: "Checkout ${{ github.repository }} Branch ${{ env.RELEASE_BRANCH }}" - uses: actions/checkout@v3 - with: - ref: ${{ env.RELEASE_BRANCH }} - - - name: "Resolve Commit To Release" - id: resolve-commit-sha - run: | - commit_sha=$(git rev-parse HEAD) - echo "release_commit=$commit_sha" >> $GITHUB_OUTPUT - - - name: "Get Current Version Number" - id: version-number-sources - run: | - current_version=`awk -F"current_version = " '{print $2}' .bumpversion.cfg | tr '\n' ' '` - echo "current_version=$current_version" >> $GITHUB_OUTPUT - - - name: "Audit Version And Parse Into Parts" - id: semver - uses: dbt-labs/actions/parse-semver@v1.1.0 - with: - version: ${{ steps.version-number-sources.outputs.current_version }} - - - name: "Get Current Date" - id: current-date - run: echo "date=$(date +'%m%d%Y')" >> $GITHUB_OUTPUT - - - name: "Generate Nightly Release Version Number" - id: nightly-release-version - run: | - number="${{ steps.semver.outputs.version }}.dev${{ steps.current-date.outputs.date }}+nightly" - echo "number=$number" >> $GITHUB_OUTPUT - - - name: "Audit Nightly Release Version And Parse Into Parts" - uses: dbt-labs/actions/parse-semver@v1.1.0 - with: - version: ${{ steps.nightly-release-version.outputs.number }} - - - name: "Set Release Branch" - id: release-branch - run: | - echo "name=${{ env.RELEASE_BRANCH }}" >> $GITHUB_OUTPUT - - log-outputs-aggregate-release-data: - runs-on: ubuntu-latest - needs: [aggregate-release-data] - - steps: - - name: "[DEBUG] Log Outputs" - run: | - echo commit_sha : ${{ needs.aggregate-release-data.outputs.commit_sha }} - echo version_number: ${{ needs.aggregate-release-data.outputs.version_number }} - echo release_branch: ${{ needs.aggregate-release-data.outputs.release_branch }} - - release-github-pypi: - needs: [aggregate-release-data] - - uses: ./.github/workflows/release.yml - with: - sha: ${{ needs.aggregate-release-data.outputs.commit_sha }} - target_branch: ${{ needs.aggregate-release-data.outputs.release-branch }} - version_number: ${{ needs.aggregate-release-data.outputs.version_number }} - build_script_path: "scripts/build-dist.sh" - env_setup_script_path: "scripts/env-setup.sh" - s3_bucket_name: "core-team-artifacts" - package_test_command: "dbt --version" - test_run: true - nightly_release: true - secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c0885001..08ac7ea64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,50 +60,6 @@ on: type: boolean default: false required: false - workflow_call: - inputs: - sha: - description: "The last commit sha in the release" - type: string - required: true - target_branch: - description: "The branch to release from" - type: string - required: true - version_number: - description: "The release version number (i.e. 1.0.0b1)" - type: string - required: true - build_script_path: - description: "Build script path" - type: string - default: "scripts/build-dist.sh" - required: true - env_setup_script_path: - description: "Environment setup script path" - type: string - default: "scripts/env-setup.sh" - required: false - s3_bucket_name: - description: "AWS S3 bucket name" - type: string - default: "core-team-artifacts" - required: true - package_test_command: - description: "Package test command" - type: string - default: "dbt --version" - required: true - test_run: - description: "Test run (Publish release as draft)" - type: boolean - default: true - required: false - nightly_release: - description: "Nightly release to dev environment" - type: boolean - default: false - required: false permissions: contents: write # this is the permission that allows creating a new release diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index a1ca95861..000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: 'Close stale issues and PRs' -on: - schedule: - - cron: "30 1 * * *" -jobs: - stale: - runs-on: ubuntu-latest - steps: - # pinned at v4 (https://github.com/actions/stale/releases/tag/v4.0.0) - - uses: actions/stale@cdf15f641adb27a71842045a94023bef6945e3aa - with: - stale-issue-message: "This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days." - stale-pr-message: "This PR has been marked as Stale because it has been open for 180 days with no activity. If you would like the PR to remain open, please remove the stale label or comment on the PR, or it will be closed in 7 days." - # mark issues/PRs stale when they haven't seen activity in 180 days - days-before-stale: 180 - # ignore checking issues with the following labels - exempt-issue-labels: "epic, discussion" diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index d9df91c52..5e0bedebc 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -26,8 +26,6 @@ on: description: 'Creates a draft PR to allow testing instead of committing to a branch' required: true default: 'true' - repository_dispatch: - types: [version-bump] jobs: bump: