dsccommunity / dsccommunity/DscResource.Test

Configuration keyword is not supported on ARM64 processors

Open
#171 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
PowerShell
Stars
6
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Details of the scenario you tried and the problem that is occurring

When running examples HQRM test on arm64 the HQRM trst runs fail.
Suggest to skip those affected tests on arm64.

  [-] Should compile the MOF schema for the example correctly 2ms (2ms|0ms)
    at } | Should -Not -Throw, /../SqlServerDsc/output/RequiredModules/DscResource.Test/0.17.2/Tests/QA/ExampleFiles.common.v5.Tests.ps1:214
    at <ScriptBlock>, /../SqlServerDsc/output/RequiredModules/DscResource.Test/0.17.2/Tests/QA/ExampleFiles.common.v5.Tests.ps1:89
    Expected no exception to be thrown, but an exception "At /../SqlServerDsc/source/Examples/Resources/SqlAudit/5-RemoveAudit.ps1:6 char:1
    + Configuration Example
    + ~~~~~~~~~~~~~
    Configuration keyword is not supported on ARM64 processors.
    At /../SqlServerDsc/source/Examples/Resources/SqlAudit/5-RemoveAudit.ps1:7 char:1
Steps to reproduce the problem
Expected behavior
Current behavior
Suggested solution to the issue
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the module that was used

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the failing HQRM test in output/RequiredModules/DscResource.Test/0.17.2/Tests/QA/ExampleFiles.common.v5.Tests.ps1, especially the checks around lines 89 and 214, and inspect the referenced SqlAudit example. Confirm which affected example tests fail on ARM64, then verify that those tests are skipped there while remaining runnable on supported processors.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.