-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2769 from newrelic/dev
Release 9.12.0
- Loading branch information
Showing
93 changed files
with
2,018 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: URL Test CI | ||
|
||
on: | ||
schedule: | ||
- cron: '0 9 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
unit_tests: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Configure git | ||
run: 'git config --global init.defaultBranch main' | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2 | ||
|
||
# - curl is needed for Curb | ||
# - xslt is needed for older Nokogiris, RUBY_VERSION < 2.5 | ||
# - sasl is needed for memcached | ||
- name: Install OS packages | ||
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev | ||
|
||
- name: Install Ruby 3.4.0-preview1 | ||
uses: ruby/setup-ruby@2a9a743e19810b9f3c38060637daf594dbd7b37f # tag v1.186.0 | ||
with: | ||
ruby-version: 3.4.0-preview1 | ||
|
||
- name: Setup bundler | ||
run: ./.github/workflows/scripts/setup_bundler | ||
env: | ||
RUBY_VERSION: 3.4.0-preview1 | ||
|
||
- name: Run Unit Tests | ||
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # tag v3.0.0 | ||
with: | ||
timeout_minutes: 30 | ||
max_attempts: 2 | ||
command: TEST=test/new_relic/healthy_urls_test bundle exec rake test | ||
env: | ||
VERBOSE_TEST_OUTPUT: true | ||
SPECIAL_CI: true | ||
|
||
|
||
notify_slack_fail: | ||
name: Notify slack fail | ||
needs: [unit_tests] | ||
runs-on: ubuntu-22.04 | ||
if: always() | ||
steps: | ||
- uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # tag v3.0.3 | ||
- uses: voxmedia/github-action-slack-notify-build@3665186a8c1a022b28a1dbe0954e73aa9081ea9e # tag v1.6.0 | ||
if: ${{ env.WORKFLOW_CONCLUSION == 'failure' && github.event_name != 'workflow_dispatch' }} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.RUBY_GITHUB_ACTIONS_BOT_WEBHOOK }} | ||
with: | ||
channel: ruby-agent-notifications | ||
status: FAILED | ||
color: danger | ||
|
||
|
||
notify_slack_success: | ||
name: Notify slack success | ||
needs: [unit_tests] | ||
runs-on: ubuntu-22.04 | ||
if: always() | ||
steps: | ||
- uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # tag v3.0.3 | ||
- run: echo ${{ github.event_name }} | ||
- uses: Mercymeilya/last-workflow-status@3418710aefe8556d73b6f173a0564d38bcfd9a43 # tag v0.3.3 | ||
id: last_status | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: voxmedia/github-action-slack-notify-build@3665186a8c1a022b28a1dbe0954e73aa9081ea9e # tag v1.6.0 | ||
if: ${{ env.WORKFLOW_CONCLUSION == 'success' && steps.last_status.outputs.last_status == 'failure' && github.event_name != 'workflow_dispatch' }} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.RUBY_GITHUB_ACTIONS_BOT_WEBHOOK }} | ||
with: | ||
channel: ruby-agent-notifications | ||
status: SUCCESS | ||
color: good |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.