Skip to content

Commit

Permalink
Merge pull request #2479 from newrelic/release
Browse files Browse the repository at this point in the history
Release 7/11
  • Loading branch information
zstix authored Jul 11, 2024
2 parents 1420411 + 2e77da5 commit da0ff99
Show file tree
Hide file tree
Showing 44 changed files with 1,296 additions and 58 deletions.
6 changes: 3 additions & 3 deletions .github/actions/bootstrap/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ runs:
using: composite
steps:
- name: Setup node
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 16
node-version: 20

- name: Get yarn cache directory path
shell: bash
id: yarn-cache-dir-path
working-directory: utils
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
ref: "release"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-project-board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

- name: Move PR to Project Board for triage
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

- name: Setup workspace
uses: "./.github/actions/bootstrap"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# Checkout fetch-depth: 2 because there's a check to see if package.json
# was updated, and need at least 2 commits for the check to function properly
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 2

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
steps:
- name: Test Default Branch
id: default-branch
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
script: |
const data = await github.rest.repos.get(context.repo)
return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
- name: Checkout Self
if: ${{ steps.default-branch.outputs.result == 'true' }}
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Run Repolinter
if: ${{ steps.default-branch.outputs.result == 'true' }}
uses: newrelic/repolinter-action@3f4448f855c351e9695b24524a4111c7847b84cb
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/reusable.quickstart_submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
# Ensure we have the most recent commit to `main`
with:
ref: "main"
Expand All @@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
# Ensure we have the most recent commit to `main`
with:
ref: "main"
Expand All @@ -80,7 +80,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
# Ensure we have the most recent commit to `main`
with:
ref: "main"
Expand All @@ -105,7 +105,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
# Ensure we have the most recent commit to `main`
with:
ref: "main"
Expand All @@ -130,7 +130,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
# Ensure we have the most recent commit to `main`
with:
ref: "main"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

- name: Setup workspace
uses: "./.github/actions/bootstrap"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/submit-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:
run: echo "${{ github.event.pull_request.number }}" > pr_number_submit.txt

- name: upload artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
with:
path: pr_number_submit.txt
2 changes: 1 addition & 1 deletion .github/workflows/validate_data_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: "refs/pull/${{ env.pr-number }}/merge"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate_install_plans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: "refs/pull/${{ env.pr-number }}/merge"

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/validate_packs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: "refs/pull/${{ env.pr-number }}/merge"

Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: "refs/pull/${{ env.pr-number }}/merge"

Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: "refs/pull/${{ env.pr-number }}/merge"

Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: "refs/pull/${{ env.pr-number }}/merge"

Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: "refs/pull/${{ env.pr-number }}/merge"

Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: "refs/pull/${{ env.pr-number }}/merge"

Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: "refs/pull/${{ env.pr-number }}/merge"

Expand Down Expand Up @@ -296,7 +296,7 @@ jobs:
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
ref: "refs/pull/${{ env.pr-number }}/merge"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validation_gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
run: echo "${{ github.event.pull_request.number }}" > pr_number.txt

- name: upload artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
with:
path: pr_number.txt
2 changes: 1 addition & 1 deletion .github/workflows/yaml-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

- name: Run yamllint
run: |
Expand Down
27 changes: 27 additions & 0 deletions alert-policies/dbt-cloud/dbt-failed-test-row.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: dbt Failed Test Row

description: |+
Generates alerts for rows in your database that fail dbt tests. This alert is useful for sending notifications with additional context to business users.
type: STATIC
nrql:
query: "select count(*) from dbt_failed_test_row facet team, name, description, field_1, field_2, field_3, field_4, field_5, field_6, field_7, field_8, field_9, field_10, slack_mentions"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE)
valueFunction: SINGLE_VALUE

# List of Critical and Warning thresholds for the condition
terms:
- priority: CRITICAL
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation
threshold: 5
# Time in seconds; 120 - 3600
thresholdDuration: 300
# How many data points must be in violation for the duration
thresholdOccurrences: ALL

# Duration after which a violation automatically closes
# Time in seconds; 300 - 2592000 (Default: 86400 [1 day])
violationTimeLimitSeconds: 86400
27 changes: 27 additions & 0 deletions alert-policies/dbt-cloud/dbt-job-failed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: dbt Job Failed

description: |+
Generates critical alerts for dbt jobs that fail. A failed job is any job that does not return status = 10 from dbt Cloud.
type: STATIC
nrql:
query: "select count(*) from dbt_job_run where run_status != 10 facet run_team, project_name, environment_name, job_name, run_started_at, run_status_humanized, run_status_message, run_href"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE)
valueFunction: SINGLE_VALUE

# List of Critical and Warning thresholds for the condition
terms:
- priority: CRITICAL
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation
threshold: 3
# Time in seconds; 120 - 3600
thresholdDuration: 300
# How many data points must be in violation for the duration
thresholdOccurrences: ALL

# Duration after which a violation automatically closes
# Time in seconds; 300 - 2592000 (Default: 86400 [1 day])
violationTimeLimitSeconds: 86400
27 changes: 27 additions & 0 deletions alert-policies/dbt-cloud/dbt-resource-failed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: dbt Resource Failed

description: |+
Generates critical alerts for dbt resources fail with an error.
type: STATIC
nrql:
query: "select count(*) from dbt_resource_run where status in ('fail', 'error') facet team, run_team, project_name, environment_name, job_name, name, resource_type, status, error, slack_mentions, run_href"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE)
valueFunction: SINGLE_VALUE

# List of Critical and Warning thresholds for the condition
terms:
- priority: CRITICAL
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation
threshold: 1
# Time in seconds; 120 - 3600
thresholdDuration: 300
# How many data points must be in violation for the duration
thresholdOccurrences: ALL

# Duration after which a violation automatically closes
# Time in seconds; 300 - 2592000 (Default: 86400 [1 day])
violationTimeLimitSeconds: 86400
27 changes: 27 additions & 0 deletions alert-policies/dbt-cloud/dbt-test-warning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: dbt Test Warning

description: |+
Generates alerts for dbt test warnings. A status of "warn" will trigger this alert.
type: STATIC
nrql:
query: "select count(*) from dbt_resource_run where status = 'warn' facet team, run_team, project_name, environment_name, job_name, name, resource_type, status, error, slack_mentions, run_href"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE)
valueFunction: SINGLE_VALUE

# List of Critical and Warning thresholds for the condition
terms:
- priority: CRITICAL
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation
threshold: 5
# Time in seconds; 120 - 3600
thresholdDuration: 300
# How many data points must be in violation for the duration
thresholdOccurrences: ALL

# Duration after which a violation automatically closes
# Time in seconds; 300 - 2592000 (Default: 86400 [1 day])
violationTimeLimitSeconds: 86400
Loading

0 comments on commit da0ff99

Please sign in to comment.