Skip to content

Conversation

@hannahramadan
Copy link
Contributor

@hannahramadan hannahramadan commented Oct 21, 2025

Remove support for newrelic deployments and Capistrano

@hannahramadan hannahramadan changed the title Remove 'newrelic deployments' and capistrano Remove newrelic deployments and Capistrano support Oct 21, 2025
@hannahramadan hannahramadan changed the base branch from dev to v10_0_0 October 21, 2025 22:47
end

def self.api_host
# only used for deployment task
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 unsure on this. We use api_host in tests and in the ServerMethods module. Instead of removing this method, its been refactored to not use api_key

Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder what this looked like before we made the changes for API key? Do we still need the 'api' condition for the ServerModule?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is the change when we added api key https://github.com/newrelic/newrelic-ruby-agent/pull/1461/files#diff-d116d3c8c7bebe204a18ee3983ac59c5d15bd70da7123f2a2c4a12f144bca181
B

Also, i think we can remove it from server module, because that is only used by the api_server method which is just used by the deployments. I think we can just remove this method entirely and anything that's using it tbh. I think the only api we have ever used it for is deployments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice! I've removed this method and it's references.

Copy link
Contributor

Choose a reason for hiding this comment

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

@hannahramadan - I found a few more references to api_host in the newrelic.yml files in multiverse suites and in the instrumentation generator template. Could you take a look and remove those too? Also understand if it's easier to take care of that cleanup in a separate PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you @kaylareopelle! cleaned those guys up

@hannahramadan hannahramadan marked this pull request as ready for review October 22, 2025 16:27
@hannahramadan hannahramadan requested a review from a team as a code owner October 22, 2025 16:27
@hannahramadan hannahramadan changed the title Remove newrelic deployments and Capistrano support v10.0.0 - Remove newrelic deployments and Capistrano support Oct 22, 2025
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.

Thanks for taking care of this, @hannahramadan!

There's a few other spots in the repo with references to deployments I found that you may want to take a look at:

  • rubocop_todos.yml
  • lib/new_relic/cli/command.rb: I don't think that file needs to be removed, but there's some mention of deployments.
  • lib/new_relic/control/server_methods.rb: The ServerMethods class also has a comment about deployments that might be good to clean up to avoid confusion and replace with whatever that method is used for today (if it's still used)

end

def self.api_host
# only used for deployment task
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder what this looked like before we made the changes for API key? Do we still need the 'api' condition for the ServerModule?

@github-actions
Copy link
Contributor

SimpleCov Report

Coverage Threshold
Line 93.78% 93%

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.

🦖

@hannahramadan hannahramadan merged commit 12929e7 into v10_0_0 Nov 12, 2025
38 checks passed
@hannahramadan hannahramadan deleted the remove_capistrano_and_cli_deployments branch November 12, 2025 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants