-
Notifications
You must be signed in to change notification settings - Fork 600
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 #1914 from newrelic/dev
v9.1.0
- Loading branch information
Showing
682 changed files
with
7,218 additions
and
6,678 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,7 +206,7 @@ jobs: | |
name: Prepare mysql directory | ||
run: sudo chown -R $USER /usr/local | ||
|
||
- if: matrix.ruby-version == '2.4.10' | ||
- if: matrix.ruby-version == '2.4.10' | ||
name: Cache mysql55 | ||
id: mysql55-cache | ||
uses: actions/[email protected] | ||
|
@@ -265,6 +265,16 @@ jobs: | |
path: lib/coverage_*/.resultset.json | ||
retention-days: 2 | ||
|
||
- name: Generate gem manifest | ||
run: rake test:multiverse:gem_manifest | ||
|
||
- name: Save gem manifest | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: gem_manifest_${{ matrix.ruby-version }}.json | ||
path: gem_manifest_${{ matrix.ruby-version }}.json | ||
retention-days: 2 | ||
|
||
|
||
infinite_tracing: | ||
needs: run_rubocop | ||
|
@@ -336,4 +346,4 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
resultPath: lib/coverage_results/.last_run.json | ||
failedThreshold: 93 | ||
failedThresholdBranch: 84 | ||
failedThresholdBranch: 85 |
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,67 @@ | ||
#!/usr/bin/ruby | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'date' | ||
require_relative '../../../lib/new_relic/version' | ||
|
||
class GenerateReleaseNotes | ||
DIVIDER = '---' | ||
SUPPORT_STATEMENT = <<~SUPPORT_STATEMENT | ||
<Callout variant="important"> | ||
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version at most 90 days old. Read more about [keeping agents up to date](/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/). | ||
See the New Relic Ruby agent [EOL policy](https://docs.newrelic.com/docs/apm/agents/ruby-agent/getting-started/ruby-agent-eol-policy/) for information about agent releases and support dates. | ||
</Callout> | ||
SUPPORT_STATEMENT | ||
|
||
def build_metadata | ||
changelog = File.read('CHANGELOG.md') | ||
latest_entry = changelog.split('##')[1].prepend('##') | ||
titles = latest_entry.scan(/^- \*{2}(.*?)\*{2}$/).flatten # Match strings between sets of '**' | ||
metadata = Hash.new { |h, k| h[k] = [] } | ||
|
||
titles.each do |t| | ||
category = t.split(':').first | ||
case category | ||
when 'Feature' | ||
metadata[:features] << t.delete_prefix('Feature: ') | ||
when 'Bugfix' | ||
metadata[:bugs] << t.delete_prefix('Bugfix: ') | ||
when 'Security' | ||
metadata[:security] << t.delete_prefix('Security: ') | ||
end | ||
end | ||
|
||
return metadata, latest_entry | ||
end | ||
|
||
def build_release_content | ||
metadata, latest_entry = build_metadata | ||
<<~FRONTMATTER | ||
#{DIVIDER} | ||
subject: Ruby agent | ||
date: #{Date.today} | ||
version: #{NewRelic::VERSION::STRING} | ||
downloadLink: https://rubygems.org/downloads/newrelic_rpm-#{NewRelic::VERSION::STRING}.gem | ||
features: #{metadata[:features]} | ||
bugs: #{metadata[:bugs]} | ||
security: #{metadata[:security]} | ||
#{DIVIDER} | ||
#{SUPPORT_STATEMENT} | ||
#{latest_entry} | ||
FRONTMATTER | ||
end | ||
|
||
def write_filename | ||
"ruby-agent-#{NewRelic::VERSION::STRING.tr('.', '-')}.mdx" | ||
end | ||
|
||
def write_output_file | ||
File.write(write_filename, build_release_content) | ||
end | ||
end | ||
|
||
GenerateReleaseNotes.new.write_output_file |
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.