Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling #1508

Merged
merged 98 commits into from
Oct 3, 2022
Merged

Spelling #1508

merged 98 commits into from
Oct 3, 2022

Conversation

jsoref
Copy link
Contributor

@jsoref jsoref commented Sep 30, 2022

Overview

Describe the changes present in the pull request

This PR corrects misspellings identified by the check-spelling action.

The misspellings have been reported at jsoref@3c48f73#commitcomment-85517301

The action reports that the changes in this PR would make it happy: jsoref@1186c61

Note: this PR does not include the action. If you're interested in running a spell check on every PR and push, that can be offered separately.

Submitter Checklist:

  • Include a link to the related GitHub issue, if applicable
  • Include a security review link, if applicable

Testing

The agent includes a suite of unit and functional tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here for our unit tests,
and here for our functional tests.
For most contributions it is strongly recommended to add additional tests which
exercise your changes.

Reviewer Checklist

  • Perform code review
  • Add performance label
  • Perform appropriate level of performance testing
  • Confirm all checks passed
  • Add version label prior to acceptance

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
@CLAassistant
Copy link

CLAassistant commented Sep 30, 2022

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the community To tag external issues and PRs submitted by the community label Sep 30, 2022
Copy link
Contributor Author

@jsoref jsoref left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most corrections suggested by Google Sheets. All fault mine.

description: 'Annotates errors if an errrors.txt file is present'
description: 'Annotates errors if an errors.txt file is present'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometimes projects try to be cute. Often even if a project tries to be cute, it still contains typos. This appears to be the latter.

@@ -18,7 +18,7 @@ inputs:
default: "coverage/.last_run.json"
required: false
token:
description: "Github token"
description: "GitHub token"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brand.

I'm not sure where this thing comes from, but the project has a number of typos, and assuming it isn't original to this repo, I'd like to send a PR for it.

I've actively dropped a couple of changes to associated files.

Comment on lines +56 to 57
echo "DEBUG: running 'gem install strscan'"
gem install --default strscan:3.0.4
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches the code...

CHANGELOG.md Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
def test_html_safe_if_needed_unsafed
def test_html_safe_if_needed_unsafe
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what this is trying to say (nor the next one)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's broken down like this:
test_: required minitest prefix for all tests
html_safe_if_needed: method name

def html_safe_if_needed(string)
string = string.html_safe if string.respond_to?(:html_safe)
string
end

_unsafe/safe: way of breaking up the test cases into strings that are not html safe and strings that are html safe

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. so, it sounds like the d isn't needed/wanted. In which case I'm happy w/ this change.

'whereever.com'
'wherever.com'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insert standard disclaimer for https://example.com/

test/new_relic/agent/obfuscator_test.rb Show resolved Hide resolved
def test_to_debug_str_multichild
def test_to_debug_str_multi_child
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This didn't seem to be used in enough places to justify treatment as a word (there were a number of things I accepted as merged...)

@jsoref
Copy link
Contributor Author

jsoref commented Sep 30, 2022

Oh, I should perhaps note that https://github.com/newrelic/newrelic-ruby-agent/blob/dev/.github/workflows/label_community_cards.yml is hostile to forks w/ locked down configurations.

It should have explicit permissions: for the things it uses. I may make a PR for it, or not, but likely not anytime soon.

kaylareopelle
kaylareopelle previously approved these changes Sep 30, 2022
Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for brightening our Friday afternoons with this PR!

We're impressed with this action and would welcome another PR to introduce it to our repository as a regular part of our workflow.

Are you participating in Hacktoberfest? If so, I'd be happy to hold the merge until the start of the month.

@@ -940,7 +940,7 @@ def self.enforce_fallback(allowed_values: nil, fallback: nil)
:type => String,
:dynamic_name => true,
:allowed_from_server => false,
:description => "Controls auto-instrumentation of the Thread class at start up to allow the agent to correctly nest spans inside of an asyncronous transaction. This does not enable the agent to automatically trace all threads created (see `instrumentation.thread.tracing`). May be one of [auto|prepend|chain|disabled]."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintainer note: We'll need to regenerate the configuration documentation for the docs-website repo to apply this spelling correction there.

@@ -185,7 +185,7 @@
{
"test_name": "spans_disabled_in_parent",
"comment": [ "If the parent is a New Relic agent with span events disabled it SHOULD omit span",
"id from the tracestate. This verifies agents propogate Trace Context payloads when the",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintainer note: These files need to be updated in the GHE cross-agent-tests repo to avoid regression.

CHANGELOG.md Show resolved Hide resolved
the ControllerInstrumentation module in to both the `Base` and `API`
the ControllerInstrumentation module into both the `Base` and `API`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the single word makes more sense here. Seems like an interesting coding problem to solve!

config.dot Show resolved Hide resolved
config = {:uri => "jdbc:postgresql://host/database?user=posgres"}
config = {:uri => "jdbc:postgresql://host/database?user=postgres"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh. Should be fine. We'll see failures in our JRuby tests if not.

def test_html_safe_if_needed_unsafed
def test_html_safe_if_needed_unsafe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's broken down like this:
test_: required minitest prefix for all tests
html_safe_if_needed: method name

def html_safe_if_needed(string)
string = string.html_safe if string.respond_to?(:html_safe)
string
end

_unsafe/safe: way of breaking up the test cases into strings that are not html safe and strings that are html safe

test/new_relic/agent/obfuscator_test.rb Show resolved Hide resolved
@jsoref
Copy link
Contributor Author

jsoref commented Oct 2, 2022

I try to remember to participate. I'll have to sign up. Thanks for the reminder. Signed up!

I do these year-round because they exercise my tool and I like to help.

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this great contribution! 🎉

@kaylareopelle
Copy link
Contributor

@jsoref, when you have the time, we'd love to have your action added to our workflows. Thanks for introducing us to it and correcting our spelling. 😄

@kaylareopelle kaylareopelle merged commit 0cc75c5 into newrelic:dev Oct 3, 2022
@jsoref jsoref deleted the spelling branch October 3, 2022 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community To tag external issues and PRs submitted by the community hacktoberfest-accepted
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants