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: Make test_vm_bit_clear_on_heap_lock more robust again. #6714

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

hlinnaka
Copy link
Contributor

@hlinnaka hlinnaka commented Feb 9, 2024

When checking that the contents of the VM page in cache and in pageserver match, ignore the LSN on the page. It could be different, if the page was flushed from cache by a checkpoint, for example.

Here's one such failure from the CI that this hopefully fixes: https://neon-github-public-dev.s3.amazonaws.com/reports/pr-6687/7847132649/index.html#suites/8545ca7650e609b2963d4035816a356b/5f9018db15ef4408/

In the passing, also remove some log.infos from the loop. I added them while developing the tests, but now they're just noise.

@hlinnaka hlinnaka requested review from problame and knizhnik February 9, 2024 22:35
When checking that the contents of the VM page in cache and in
pageserver match, ignore the LSN on the page. It could be different,
if the page was flushed from cache by a checkpoint, for example.

Here's one such failure from the CI that this hopefully fixes:
https://neon-github-public-dev.s3.amazonaws.com/reports/pr-6687/7847132649/index.html#suites/8545ca7650e609b2963d4035816a356b/5f9018db15ef4408/

In the passing, also remove some log.infos from the loop. I added them
while developing the tests, but now they're just noise.
@hlinnaka hlinnaka force-pushed the fix-test_vm_bit_clear_on_heap_lock-flake branch from 66beb0f to 2791cf7 Compare February 9, 2024 22:36
Copy link

github-actions bot commented Feb 9, 2024

2424 tests run: 2314 passed, 0 failed, 110 skipped (full report)


Flaky tests (3)

Postgres 16

  • test_sharding_split_unsharded: release
  • test_vm_bit_clear_on_heap_lock: release

Postgres 14

  • test_pageserver_init_node_id: debug

Code coverage (full report)

  • functions: 54.8% (11770 of 21488 functions)
  • lines: 82.1% (65996 of 80370 lines)

The comment gets automatically updated with the latest test results
2791cf7 at 2024-02-09T23:24:32.201Z :recycle:

@problame problame removed their request for review February 14, 2024 16:57
@problame
Copy link
Contributor

Removed myself from review because this is outside of my wheelhouse.

@jcsp jcsp merged commit 428d9fe into main Feb 21, 2024
49 checks passed
@jcsp jcsp deleted the fix-test_vm_bit_clear_on_heap_lock-flake branch February 21, 2024 12:36
knizhnik added a commit that referenced this pull request May 8, 2024
## Problem

See #6714, #6967

## Summary of changes

Completely ignore page header when comparing VM pages.

## Checklist before requesting a review

- [ ] I have performed a self-review of my code.
- [ ] If it is a core feature, I have added thorough tests.
- [ ] Do we need to implement analytics? if so did you add the relevant
metrics to the dashboard?
- [ ] If this PR requires public announcement, mark it with
/release-notes label and add several sentences in this section.

## Checklist before merging

- [ ] Do not forget to reformat commit message to not include the above
checklist

Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
a-masterov pushed a commit that referenced this pull request May 20, 2024
## Problem

See #6714, #6967

## Summary of changes

Completely ignore page header when comparing VM pages.

## Checklist before requesting a review

- [ ] I have performed a self-review of my code.
- [ ] If it is a core feature, I have added thorough tests.
- [ ] Do we need to implement analytics? if so did you add the relevant
metrics to the dashboard?
- [ ] If this PR requires public announcement, mark it with
/release-notes label and add several sentences in this section.

## Checklist before merging

- [ ] Do not forget to reformat commit message to not include the above
checklist

Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
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.

3 participants