Skip to content

Add MachineArchitecture enum for architecture string normalization#46

Merged
annacai21 merged 1 commit intomainfrom
anna.cai/add-architecture-enums
Feb 17, 2026
Merged

Add MachineArchitecture enum for architecture string normalization#46
annacai21 merged 1 commit intomainfrom
anna.cai/add-architecture-enums

Conversation

@annacai21
Copy link
Contributor

Add MachineArchitecture enum to handle aliasing between different architecture naming conventions (e.g., arm64/aarch64, x64/x86_64/amd64).

This fixes the MACHINE_ARCHITECTURE evaluation mismatches that occur within auto_inject. For example, requirements.json uses "arm64" but auto_inject sets the evaluation context to "aarch64", causing exact string comparisons to fail.

@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Feb 17, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 21.12%

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: aa93b08 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

Copy link
Collaborator

@natitsechanski natitsechanski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for this!

@annacai21 annacai21 merged commit 6b5577a into main Feb 17, 2026
14 checks passed
@annacai21 annacai21 deleted the anna.cai/add-architecture-enums branch February 17, 2026 16:34
annacai21 added a commit that referenced this pull request Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants