Skip to content

fix: validate-installation scripts now check .github/skills directory (#1010)#1206

Merged
WilliamBerryiii merged 4 commits intomicrosoft:mainfrom
zeel2104:fix/validate-installation-skills-directory
Mar 26, 2026
Merged

fix: validate-installation scripts now check .github/skills directory (#1010)#1206
WilliamBerryiii merged 4 commits intomicrosoft:mainfrom
zeel2104:fix/validate-installation-skills-directory

Conversation

@zeel2104
Copy link
Copy Markdown
Contributor

@zeel2104 zeel2104 commented Mar 26, 2026

Pull Request

Description

The validate-installation.ps1 and validate-installation.sh scripts were silently skipping .github/skills, allowing a "validated successfully" result even when skills were missing from the installation. This fix adds .github/skills to the required directory checks and adds an informational (non-failing) check for optional experimental subdirectories.

Related Issue(s)

Fixes #1010

Type of Change

Select all that apply:

Code & Documentation:

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Infrastructure & Configuration:

  • GitHub Actions workflow
  • Linting configuration (markdown, PowerShell, etc.)
  • Security configuration
  • DevContainer configuration
  • Dependency update

AI Artifacts:

  • Reviewed contribution with prompt-builder agent and addressed all feedback
  • Copilot instructions (.github/instructions/*.instructions.md)
  • Copilot prompt (.github/prompts/*.prompt.md)
  • Copilot agent (.github/agents/*.agent.md)
  • Copilot skill (.github/skills/*/SKILL.md)

Other:

  • Script/automation (.ps1, .sh, .py)

Testing

Ran the existing Pester test suite with the updated test file. All 14 tests pass:
Tests Passed: 14, Failed: 0, Skipped: 0, Inconclusive: 0, NotRun: 0

New tests added:

->Checks skills directory - creates agents, prompts, instructions but omits skills, asserts output matches Missing.*skills

->Passes validation when experimental directories are absent — confirms absence of experimental dirs does not cause failure

->Reports optional experimental directories when present confirms skills/experimental and agents/experimental are reported with Found optional: when present

Manual Smoke Test

Missing skills — should fail

./validate-installation.ps1 -BasePath ./test-no-skills -Method 1

❌ Missing: .../.github/skills

All dirs present — should pass

./validate-installation.ps1 -BasePath ./hve-core -Method 1

✅ Installation validated successfully

Checklist

Required Checks

  • Documentation is updated (if applicable)
  • Files follow existing naming conventions
  • Changes are backwards compatible (if applicable)
  • Tests added for new functionality (if applicable)

Required Automated Checks

The following validation commands must pass before merging:

  • Markdown linting: npm run lint:md
  • Spell checking: npm run spell-check
  • Frontmatter validation: npm run lint:frontmatter
  • Skill structure validation: npm run validate:skills
  • Link validation: npm run lint:md-links
  • PowerShell analysis: npm run lint:ps
  • Plugin freshness: npm run plugin:generate

Security Considerations

  • This PR does not contain any sensitive or NDA information
  • Any new dependencies have been reviewed for security issues
  • Security-related scripts follow the principle of least privilege

Additional Notes

All existing tests were updated to include .github/skills in their fixture setup so they continue to pass with the new required directory check.

@zeel2104 zeel2104 requested a review from a team as a code owner March 26, 2026 05:33
@katriendg
Copy link
Copy Markdown
Contributor

Thanks @zeel2104 for picking this up and contributing to the repo. This is looking pretty good! Two requests before we run the workflows and approve:

  • You seem to have removed trailing new lines at the end of the Powershell files - this will add some linting noise. Could you restore those?
  • Were you able to run npm run lint:ps on the changes? If yes, please check the box in the PR description. Also other validations you may have run?

Thanks!

@zeel2104
Copy link
Copy Markdown
Contributor Author

Hey @katriendg
Restored trailing newlines in both PowerShell files. Also ran lint:ps, validate:skills, lint:md, and spell-check and other validation, all passed, boxes checked in the description.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.64%. Comparing base (5fc601b) to head (2af61e8).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1206      +/-   ##
==========================================
- Coverage   87.65%   87.64%   -0.01%     
==========================================
  Files          61       61              
  Lines        9313     9315       +2     
==========================================
+ Hits         8163     8164       +1     
- Misses       1150     1151       +1     
Flag Coverage Δ
pester 85.30% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...e-core-installer/scripts/validate-installation.ps1 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@katriendg katriendg 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 so much for your contribution @zeel2104 🙏 This is looking good and we are ready to merge.

@zeel2104
Copy link
Copy Markdown
Contributor Author

Your welcome 😊

@WilliamBerryiii WilliamBerryiii merged commit b181c20 into microsoft:main Mar 26, 2026
40 checks passed
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.

fix: installer skill scripts validate-installation should check for .github/skills directory

4 participants