Repository navigation
fix: support NetApp multi-day snapshot schedules and volume LDAP - #7549
Felipe Binotto (fbinotto) wants to merge 4 commits into
Conversation
Allow comma-separated weekdays for weekly snapshot policies and expose nullable ldapEnabled through volume inputs. Add regression coverage and regenerate module artifacts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7440d54c-504e-4b76-be4e-a68aea10e61e
Rename the compile-only input fixture so static validation does not mistake it for a publishable child module. Keep the regression test pointed at the renamed fixture. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7440d54c-504e-4b76-be4e-a68aea10e61e
Replace the sleep-only deployment script with opt-in runner-side dependency preparation while preserving the full CMK deployment and cleanup tracking. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7440d54c-504e-4b76-be4e-a68aea10e61e (cherry picked from commit 5e557f1)
Keep the existing cleanup integration harness aligned with the opt-in dependency preparation action input. All 313 cleanup tests pass; no deployment behavior changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7440d54c-504e-4b76-be4e-a68aea10e61e
| @description('Optional. Prepare the dependencies without deploying the account so the CI runner can wait for role assignment propagation.') | ||
| param dependenciesOnly bool = false |
There was a problem hiding this comment.
Hola Felipe Binotto (@fbinotto),
while I appreciate the idea, CI updates should be handled independently of individual modules and tested across several instances.
In this case specifically I'm not sure I understand the need for it in the first place. Did you want to replace the logic because the 15 second timer was sometimes not enough? If so, I'd argue that using the retry operator for the actual deployment may go a long way as its retry time increases for every iteration.
I'd appreciate if we could avoid changing the CI unless absolutely necessary. In this case specifically a large amount of code is added that subsequently needs to be maintained in various locations.
cc: Erika Gressi (@eriqua) as the PR links to another one you set yourself as the reviewer for and has the same logic implemented. Feel free to share your thoughts if you want :)
| removeDeployment: "${{ fromJson(inputs.workflowInput).removeDeployment }}" | ||
| customLocation: "${{ fromJson(inputs.workflowInput).customLocation }}" | ||
| e2eIgnore: "${{ fromJson(inputs.testCase).e2eIgnore }}" | ||
| dependencyPreparationParameter: "${{ inputs.modulePath == 'avm/res/net-app/net-app-account' && fromJson(inputs.testCase).name == 'cmk-uami' && 'dependenciesOnly' || '' }}" |
There was a problem hiding this comment.
This is a very very module specific change for a file that is used by every single module deployment and should hence be as generic as possible.
Also please note that Jared Holgate (@jaredfholgate) is currently refactoring the CI on a larger scale.
|
E2E tests cannot run from a fork pull request because it cannot access upstream credentials. When this contribution is ready for E2E testing, an authorized Microsoft FTE must review the current PR head and follow the release-branch handoff process. A same-repository follow-up PR can then run the credentialed tests. |
Description
Fixes #7335.
The NetApp snapshot-policy input restricted
weeklySchedule.dayto a single weekday even though the service supports comma-separated weekday names. Change the input to a string and document values such as'Monday,Tuesday', retaining support for existing single-day inputs.Also expose the missing
ldapEnabledvolume property requested in the issue discussion. The nullable boolean is forwarded through the capacity-pool volume input to the volume resource, preserving explicitfalseand leaving existing behavior unchanged when omitted.Set-AVMModule; added patch changelog entries without changing MAJOR or MINOR versions.ldapEnabled: false.ldapEnabled: trueintegration requires an Active Directory environment and is not claimed by the deployment scenario.Local validation:
Set-AVMModule -ModuleFolderPath $modulePath -SkipFileAndFolderSetup -SkipVersionCheck- passed for the account, snapshot-policy, capacity-pool and volume modules.Invoke-Pester -Configuration $configurationwithRun.Path = '.\avm\res\net-app\net-app-account\tests\unit\custom.tests.ps1'and repository-managed Pester 5.7.1 - 8 passed, 0 failed.Invoke-Pester -Configuration $configurationwith the repositorymodule.tests.ps1compliance container targeting those four module folders and tagsTemplate,ARM,UDT,Readme,Changelog,Versioning,TestTemplate- 231 passed, 0 failed, 29 skipped, 62 outside the selected tags. Existing role-documentation and untyped-tag warnings remain.bicep format $path --stdoutcompared with each of the five changed Bicep source files - all matched.git diff --check- passed.Invoke-Pester -Configuration $configurationacross the dependency-preparation, CI-parameter, deployment-cleanup, deployment-retry, validation-retry and NetApp regression suites initially reported 1,327 passed and 57 failed. All failures were in the cleanup test harness, which needed to resolve the new optional action input. After adding that substitution, rerunningInvoke-Pester -Configuration $configurationforDeploymentCleanupWorkflow.Tests.ps1passed all 313 tests with zero failures; the other five suites had already passed.bicep build .\avm\res\net-app\net-app-account\tests\e2e\cmk-uami\main.test.bicep --stdout- passed after the CI preparation change.Pipeline Reference
f4329fba0Static validation, all required and optional PSRule jobs, and all five enabled deployment scenarios (
defaults,max,nfs3,waf-aligned,cmk-uami) passed with deployment cleanup enabled. The pre-existingcmk-hsm-uamideployment exclusion remains unchanged. Existing documentation/UDT warnings mean the warning-free checklist item below remains unchecked despite the successful workflow.Type of Change
version.json:version.json.version.json.Checklist
Set-AVMModulelocally to generate the supporting module files.