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

switch pytests and neon_local to control_plane_hooks_api #11195

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

arpad-m
Copy link
Member

@arpad-m arpad-m commented Mar 12, 2025

We want to switch away from and deprecate the --compute-hook-url param for the storcon in favour of --control-plane-url because it allows us to construct urls with notify-safekeepers.

This PR switches the pytests and neon_local from a control_plane_compute_hook_api to a new param named control_plane_hooks_api which is supposed to point to the parent of the notify-attach URL.

We still support reading the old url from disk to not be too disruptive with existing deployments, but we just ignore it.

Follow-up of #11173
Part of #11163

@arpad-m arpad-m requested a review from a team as a code owner March 12, 2025 15:12
@arpad-m arpad-m requested review from jcsp and DimasKovas and removed request for jcsp March 12, 2025 15:12
Copy link

7909 tests run: 7526 passed, 0 failed, 383 skipped (full report)


Flaky tests (2)

Postgres 17

Code coverage* (full report)

  • functions: 32.5% (8728 of 26875 functions)
  • lines: 48.5% (74657 of 154024 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
5fe7fa8 at 2025-03-12T16:13:53.467Z :recycle:

@@ -101,7 +101,7 @@ changes such as a pageserver node becoming unavailable, or the tenant's shard co
postgres clients to handle such changes, the storage controller calls an API hook when a tenant's pageserver
location changes.

The hook is configured using the storage controller's `--compute-hook-url` CLI option. If the hook requires
The hook is configured using the storage controller's `--control-plane-url` CLI option. If the hook requires
Copy link
Contributor

Choose a reason for hiding this comment

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

This should specify what the sub-paths of control-plane-url are -- otherwise the reader would have to read the code to find out that their notification hook needs to be called notify-attach

@@ -363,6 +363,15 @@ pub struct Config {
/// assume it is running in a test environment and try to update neon_local.
pub compute_hook_url: Option<String>,
Copy link
Contributor

Choose a reason for hiding this comment

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

For external folks using our binaries (people in discord have asked about the hook before), I guess we will need to maintain this for some time & enable working with a pageserver hook but no safekeeper hook. That's okay, we can clean it up eventually, just have to give folks in #neon-oss and #self-hosted some advance notice.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair points, do you think we should also keep support of that field in neon_local?

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.

2 participants