-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Some tests fail with 0.33.0 (sources::host_metrics::cgroups::tests::generates_cgroups_metrics) #18697
Comments
These tests require `demo_logs`, `remap`, and `console` components. Fixes: #18697 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
Hi @hashworks ! Apologies for this, I was able to reproduce it. The issue is that the test depends on additional features being enabled. I opened #18698 to gate those additional tests. If you are able to modify that PKGBUILD, I'd recommend changing: # Unit-Tests only, integration tests require services
cargo nextest run \
--workspace \
--fail-fast \
--test-threads num-cpus \
--frozen \
--release \
--locked \
--offline \
--no-default-features \
--target "${_target}" to # Unit-Tests only, integration tests require services
cargo nextest run \
--workspace \
--fail-fast \
--test-threads num-cpus \
--frozen \
--release \
--locked \
--offline \
--no-default-features \
--features "target-${_target}"
--target "${_target}" This will run all of the unit tests for the components included in the given target platform, but notably still not the integration tests so there are no external dependencies. Incidentally it should avoid this failure. |
Done, thanks. Next error:
|
These tests require `demo_logs`, `remap`, and `console` components. Fixes: #18697 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
Interesting, I see the same. We'll take a look. |
I'll reopen this until we resolve that test failure too. |
convert_config::tests::convert_all_from_dir
fails with 0.33.0
Just dropping a note that I briefly looked at this but didn't have enough time to root cause it. The issue seems to be related to the gauge |
It also seems to have not been working in v0.24.0 |
Below is the failing line. vector/src/sources/host_metrics/cgroups.rs Line 474 in af4de5e
|
FYI, I've removed the test from the Arch Linux build for now, since I wasn't able to provide an updated version for three months due to failing checks. |
👍 thanks for following up. I think we can leave this issue open until we are able to resolve the test failure. |
This patch made the tests pass on my dev box. Not sure why the is_root check is there, on my machine (cgroups v2) the memory is only in the root cgroup dir, there are no child dirs in the cgroup root on my machine.
|
A note for the community
Problem
The test
convert_config::tests::convert_all_from_dir
fails with 0.33.0. Worked fine in 0.32.2.Version
0.33.0
Debug Output
Context
The Arch Linux vector PKGBUILD was used.
The text was updated successfully, but these errors were encountered: