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

Run metricd more frequently in functional tests #1443

Closed
wants to merge 1 commit into from

Conversation

Callum027
Copy link
Contributor

The metricd thread in the functional tests waits for 100ms between runs.

This is actually quite a long time to wait, as the functional tests can run much faster than that. This results in a race condition where earlier tests submit measures, and they are not actually processed by the time the test that needs them is run, and fails because they are not done (and there's no waits or retries or anything).

Tighten up the metricd thread loop so that it waits only 10ms between runs. This will increase load but the more frequent runs should be good enough for the tests to pass.

The metricd thread in the functional tests waits for 100ms between runs.

This is actually quite a long time to wait, as the functional tests can run much faster than that. This results in a race condition where earlier tests submit measures, and they are not actually processed by the time the test that needs them is run, and fails because they are not done (and there's no waits or retries or anything).

Tighten up the metricd thread loop so that it waits only 10ms between runs. This will increase load but the more frequent runs should be good enough for the tests to pass.
@Callum027
Copy link
Contributor Author

Didn't seem to fix the issue as I'd hoped. I'll try and spend some time next week investigating this.

@Callum027
Copy link
Contributor Author

Closing, working solution provided in PR #1386

@Callum027 Callum027 closed this Feb 17, 2025
@Callum027 Callum027 deleted the function-test-metricd branch February 17, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant