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

Failed tests on Arm64 platform #37903

Closed
sharbuz opened this issue Feb 7, 2024 · 4 comments
Closed

Failed tests on Arm64 platform #37903

sharbuz opened this issue Feb 7, 2024 · 4 comments
Labels
arm Enable builds in the CI for ARM testing bug failed-test indicates a failed automation test relates libbeat Team:Cloud-Monitoring Label for the Cloud Monitoring team

Comments

@sharbuz
Copy link
Contributor

sharbuz commented Feb 7, 2024

The issue was found during the pipeline's migration process from Jenkins to Buildkite.
The issue is related to Arm64 platform.

Errors:

[2024-02-07T07:37:11.622Z] === Failed
[2024-02-07T07:37:11.622Z] === FAIL: libbeat/processors/add_cloud_metadata TestRetrieveHetznerMetadata (0.01s)
[2024-02-07T07:37:11.622Z]     provider_hetzner_cloud_test.go:98: 
[2024-02-07T07:37:11.622Z]         	Error Trace:	/var/lib/jenkins/workspace/PR-37725-57-ef6f9473-5176-4528-994c-16d123a184f2/src/github.com/elastic/beats/libbeat/processors/add_cloud_metadata/provider_hetzner_cloud_test.go:98
[2024-02-07T07:37:11.622Z]         	            				/var/lib/jenkins/workspace/PR-37725-57-ef6f9473-5176-4528-994c-16d123a184f2/src/github.com/elastic/beats/libbeat/processors/add_cloud_metadata/provider_hetzner_cloud_test.go:70
[2024-02-07T07:37:11.622Z]         	Error:      	**Not equal**: 
[2024-02-07T07:37:11.622Z]         	            	**expected**: {"cloud":{"availability_zone":"hel1-dc2","instance":{"id":"111111","name":"my-hetzner-instance"},"provider":"hetzner","region":"eu-central","service":{"name":"Cloud"}}}
[2024-02-07T07:37:11.622Z]         	            	**actual**  : {"cloud":{"account":{"id":"816604515500"},"availability_zone":"us-west-2b","image":{"id":"ami-014450af7c0f2bc00"},"instance":{"id":"i-083c6a51ea2390d87"},"machine":{"type":"c6g.xlarge"},"provider":"aws","region":"us-west-2","service":{"name":"EC2"}}}

The similar errors in the files:
provider_hetzner_cloud_test.go:98
provider_openstack_nova_test.go:118


[2024-02-07T07:37:11.625Z]         	Error Trace:	/var/lib/jenkins/workspace/PR-37725-57-ef6f9473-5176-4528-994c-16d123a184f2/src/github.com/elastic/beats/libbeat/processors/add_host_metadata/add_host_metadata_test.go:525
[2024-02-07T07:37:11.625Z]         	            				/var/lib/jenkins/workspace/PR-37725-57-ef6f9473-5176-4528-994c-16d123a184f2/.gvm/versions/go1.21.6.linux.arm64/src/runtime/asm_arm64.s:1197
[2024-02-07T07:37:11.625Z]         	Error:      	**Not equal**: 
[2024-02-07T07:37:11.625Z]         	            	**expected**: "foo.bar.baz"
[2024-02-07T07:37:11.625Z]         	            	**actual**  : "beats-ci-immutable-ubuntu-2204-aarch64-1707290258665070547.b.elastic-prod.internal"
[2024-02-07T07:37:11.625Z]         	            	
[2024-02-07T07:37:11.625Z]         	            	Diff:
[2024-02-07T07:37:11.625Z]         	            	--- Expected
[2024-02-07T07:37:11.625Z]         	            	+++ Actual
[2024-02-07T07:37:11.625Z]         	            	@@ -1 +1 @@
[2024-02-07T07:37:11.625Z]         	            	-foo.bar.baz
[2024-02-07T07:37:11.625Z]         	            	+beats-ci-immutable-ubuntu-2204-aarch64-1707290258665070547.b.elastic-prod.internal
[2024-02-07T07:37:11.625Z]         	Test:       	TestFQDNEventSync

Examples of the issues:
https://beats-ci.elastic.co/blue/organizations/jenkins/Beats%2Fbeats/detail/PR-37725/57/pipeline/2621/
https://buildkite.com/elastic/beats-libbeat/builds/948#018d8417-a86e-494a-9ce0-63faf14c7f63/388-698

@sharbuz sharbuz added bug arm Enable builds in the CI for ARM testing failed-test indicates a failed automation test relates labels Feb 7, 2024
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Feb 7, 2024
@pierrehilbert pierrehilbert added the Team:Cloud-Monitoring Label for the Cloud Monitoring team label Feb 7, 2024
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Feb 7, 2024
@pierrehilbert
Copy link
Collaborator

@bturquet could we have someone to have a look here please?

@sharbuz sharbuz added the libbeat label Feb 7, 2024
@kaiyan-sheng
Copy link
Contributor

Potential fix for the two failing tests in add_cloud_metadata: #37907

@sharbuz @pierrehilbert In the issue description, the second error is from add_host_metadata. That might belong to the agent team. Thanks!

@kaiyan-sheng
Copy link
Contributor

The add_cloud_metadata part should be fixed now.

@oakrizan
Copy link
Contributor

Closing, since arm64 tests are working as expected now https://buildkite.com/elastic/beats-libbeat/builds?branch=main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Enable builds in the CI for ARM testing bug failed-test indicates a failed automation test relates libbeat Team:Cloud-Monitoring Label for the Cloud Monitoring team
Projects
None yet
Development

No branches or pull requests

4 participants