-
Notifications
You must be signed in to change notification settings - Fork 360
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
remove neon_local --pageserver-config-override
#7614
Conversation
…side of `neon_local init` The `NeonCli.init()` persists the non-default pageserver config values for remote storage & `NeonEnvBuilder.pageserver_config_override` in `pageserver.toml`. We don't need to repeat them on each pageserver start after that.
…blame/test-suite-narrow-pageserver-config-override
Rewrite the pageserver.toml instead.
…--pageserver-config-override`
This allows inlining append_pageserver_param_overrides into NeonCli.init()
…ng init, not start
…age during init, not start" This reverts commit 511f593.
…into problame/remove-pageserver-config-overrides
…akes a toml tempfile
…into problame/remove-pageserver-config-overrides
…into problame/remove-pageserver-config-overrides Conflicts: control_plane/src/pageserver.rs => pick ours
…into problame/remove-pageserver-config-overrides
neon_local --pageserver-config-override
Congrats! This had so large test report message that github refused it :) This is the first I've seen such. From the logs this seems to be quite usual failure: https://neon-github-public-dev.s3.amazonaws.com/reports/pr-7614/8967600476/index.html#suites/7745dadbd815ab87f5798aa881796f47/baabb8517aad95b1 |
2970 tests run: 2843 passed, 0 failed, 127 skipped (full report)Code coverage* (full report)
* collected from Rust tests only The comment gets automatically updated with the latest test results
3ab3007 at 2024-05-07T16:37:50.860Z :recycle: |
The compat tests are failing because the old This is immaterial to
|
…erver-config-overrides
The test_forward_compatibility test runs the old production binaries, but is supposed to always run the latest neon_local binary. I think commit 6acbee2 broke that by accident because in that commit, from_repo_dir is introduced and runs an `init_start()` before the `test_forward_compatibility` gets a chance to patch up the neon_local_binpath.
Extracted fix for test_forward_compatibility into PR #7637 , this one will be rebased after it gets merged. |
Preceding PR #7613 reduced the usage of `--pageserver-config-override`. This PR builds on top of that work and fully removes the `neon_local --pageserver-config-override`. Tests that need a non-default `pageserver.toml` control it using two options: 1. Specify `NeonEnvBuilder.pageserver_config_override` before `NeonEnvBuilder.init_start()`. This uses a new `neon_local init --pageserver-config` flag. 2. After `init_start()`: `env.pageserver.stop()` + `NeonPageserver.edit_config_toml()` + `env.pageserver.start()` A few test cases were using `env.pageserver.start(overrides=("--pageserver-config-override...",))`. I changed them to use one of the options above. Future Work ----------- The `neon_local init --pageserver-config` flag still uses `pageserver --config-override` under the hood. In the future, neon_local should just write the `pageserver.toml` directly. The `NeonEnvBuilder.pageserver_config_override` field should be renamed to `pageserver_initial_config`. Let's save this churn for a separate refactor commit.
Preceding PR #7613 reduced the usage of
--pageserver-config-override
.This PR builds on top of that work and fully removes the
neon_local --pageserver-config-override
.Tests that need a non-default
pageserver.toml
control it using two options:NeonEnvBuilder.pageserver_config_override
beforeNeonEnvBuilder.init_start()
. This uses a newneon_local init --pageserver-config
flag.init_start()
:env.pageserver.stop()
+NeonPageserver.edit_config_toml()
+env.pageserver.start()
A few test cases were using
env.pageserver.start(overrides=("--pageserver-config-override...",))
.I changed them to use one of the options above.
Future Work
The
neon_local init --pageserver-config
flag still usespageserver --config-override
under the hood. In the future, neon_local should just write thepageserver.toml
directly.The
NeonEnvBuilder.pageserver_config_override
field should be renamed topageserver_initial_config
. Let's save this churn for a separate refactor commit.