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

test: fix on demand activation test flakyness #7180

Merged
merged 1 commit into from Mar 20, 2024
Merged

Conversation

VladLazar
Copy link
Contributor

Warm-up (and the "tenant startup complete" metric update) happens in
a background tokio task. The tenant map is eagerly updated (can happen
before the task finishes).

The test assumed that if the tenant map was updated, then the metric
should reflect that. That's not the case, so we tweak the test to wait
for the metric.

Fixes #7158

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

Warm-up (and the "tenant startup complete" metric update) happens in
a background tokio task. The tenant map is eagerly updated (can happen
before the task finishes).

The test assumed that if the tenant map was updated, then the metric
should reflect that. That's not the case, so we tweak the test to wait
for the metric.

Fixes #7158
Copy link

github-actions bot commented Mar 19, 2024

2706 tests run: 2574 passed, 0 failed, 132 skipped (full report)


Code coverage* (full report)

  • functions: 28.3% (7130 of 25197 functions)
  • lines: 46.9% (43711 of 93289 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
c16dbf9 at 2024-03-20T10:04:58.256Z :recycle:

@VladLazar
Copy link
Contributor Author

180 runs of the test without any failures in https://neon-github-public-dev.s3.amazonaws.com/reports/pr-7180/8348245330/index.html

@VladLazar VladLazar requested review from jcsp and arpad-m March 20, 2024 09:16
@VladLazar VladLazar marked this pull request as ready for review March 20, 2024 09:16
@VladLazar VladLazar enabled auto-merge (squash) March 20, 2024 10:12
@VladLazar VladLazar merged commit 4ba3f35 into main Mar 20, 2024
54 checks passed
@VladLazar VladLazar deleted the vlad/fix-7158 branch March 20, 2024 10:25
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.

test_ondemand_activation is flaky
2 participants