Azure / WALinuxAgent

Microsoft Azure Linux Guest Agent
http://azure.microsoft.com/
Apache License 2.0
543 stars 372 forks source link

[BUG] Test failures: azurelinuxagent.ga.policy.regorus.PolicyError: [PolicyError] Attempted to enable policy enforcement, but feature is not supported on architecture aarch64 #3219

Closed waldiTM closed 1 month ago

waldiTM commented 2 months ago

Describe the bug: A clear and concise description of what the bug is.

>       raise PolicyError(msg)
E       azurelinuxagent.ga.policy.regorus.PolicyError: [PolicyError] Attempted to enable policy enforcement, but feature is not supported on  architecture aarch64

azurelinuxagent/ga/policy/policy_engine.py:123: PolicyError

Distro and WALinuxAgent details (please complete the following information): Debian 13

mgunnala commented 2 months ago

@waldiTM which specific tests are failing, and what architecture are you running the tests on?

waldiTM commented 2 months ago

Don't you want to test the behaviour of your code, regardless of the execution environment? So as long as the code does architecture checks, the test needs to run once for each architecture value it could encounter.

As mentioned in the exception, this runs on a Linux reporting aarch64 as architecture.

mgunnala commented 2 months ago

Removed the architecture check, you shouldn't see test failures anymore.

narrieta commented 1 month ago

fixed by #3222