Open rdner opened 3 weeks ago
Pinging @elastic/elastic-agent (Team:Elastic-Agent)
Also happened in:
The failing line is:
failed to evaluate all symlinks of /tmp/TestRpmLogIngestFleetManaged3099371811/001/elastic-agent-8.15.0-SNAPSHOT-x86_64: no such file or directory
The DEB and RPM tests are the ones that are failing, and this makes some sense, because they do not use any paths under /tmp
and that won't be the path to the agent command. For those packages the symlink ends up under /var/lib
. https://github.com/elastic/elastic-agent/blob/e8962b0e4857f1e66d5b4887b4c8fcbb4f1e8af0/dev-tools/packaging/packages.yml#L66
I think the DEB and RPM install commands are missing setting up a client at the right socket path. I am actually surprised this failure doesn't happen every time more than anything.
Here is the client getting created on the regular install path:
Here is the DEB install which does not set this up, so we fall back to trying to find the control socket in work dir, which is a temporary directory.
The DEB and RPM install are also missing the clean up calls to get diagnostics and dump processes. https://github.com/elastic/elastic-agent/blob/e8962b0e4857f1e66d5b4887b4c8fcbb4f1e8af0/pkg/testing/fixture_install.go#L251-L254
Failing test case
TestRpmLogIngestFleetManaged/Monitoring_logs_are_shipped
Error message
failed to evaluate all symlinks
Build
https://buildkite.com/elastic/elastic-agent-extended-testing/builds/625#0190110f-8604-4125-9789-621c5241ef2b
OS
Linux
Stacktrace and notes