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

tests & benchmarks: unify the way we customize the default tenant config #9992

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

problame
Copy link
Contributor

@problame problame commented Dec 3, 2024

Before this PR, some override callbacks used .default(), others
used .setdefault().

As of this PR, all callbacks use .setdefault() which I think is least
prone to failure.

Aligning on a single way will set the right example for future tests
that need such customization.

The test_pageserver_getpage_throttle.py technically is a change in
behavior: before, it replaced the tenant_config field, now it just
configures the throttle. This is what I believe is intended anyway.

Before this PR, some override callbacks used `.default()`, others
used `.setdefault()`.

As of this PR, all callbacks use `.setdefault()` which I think is least
prone to failure.

Aligning on a single way will set the right example for future tests
that need such customization.

The `test_pageserver_getpage_throttle.py` technically is a change in
behavior: before, it replaced the `tenant_config` field, now it just
configures the throttle. This is what I believe is intended anyway.
@problame problame requested a review from erikgrinaker December 3, 2024 15:49
@problame problame enabled auto-merge December 3, 2024 16:06
Copy link

github-actions bot commented Dec 3, 2024

7044 tests run: 6736 passed, 0 failed, 308 skipped (full report)


Flaky tests (4)

Postgres 17

Postgres 15

Postgres 14

  • test_delete_timeline_exercise_crash_safety_failpoints[Check.RETRY_WITH_RESTART-timeline-delete-before-schedule]: release-arm64

Code coverage* (full report)

  • functions: 30.7% (8264 of 26917 functions)
  • lines: 47.7% (65170 of 136574 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
3e04a87 at 2024-12-03T22:17:13.770Z :recycle:

@problame problame added this pull request to the merge queue Dec 3, 2024
Merged via the queue into main with commit 944c1ad Dec 3, 2024
84 checks passed
@problame problame deleted the problame/batching-enable-benchmarks-and-tests branch December 3, 2024 22:09
awarus pushed a commit that referenced this pull request Dec 5, 2024
…fig (#9992)

Before this PR, some override callbacks used `.default()`, others
used `.setdefault()`.

As of this PR, all callbacks use `.setdefault()` which I think is least
prone to failure.

Aligning on a single way will set the right example for future tests
that need such customization.

The `test_pageserver_getpage_throttle.py` technically is a change in
behavior: before, it replaced the `tenant_config` field, now it just
configures the throttle. This is what I believe is intended anyway.
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