Skip to content

Load only skill that is pointed by test - #87

Closed
JanKrivanek wants to merge 1 commit into
dotnet:mainfrom
JanKrivanek:dev/jankrivanek/isolate-skills
Closed

Load only skill that is pointed by test#87
JanKrivanek wants to merge 1 commit into
dotnet:mainfrom
JanKrivanek:dev/jankrivanek/isolate-skills

Conversation

@JanKrivanek

Copy link
Copy Markdown
Member

Context

Running test for a specific skill loaded all the skills from under parent folder - so there could be unwanted interactions

Copilot AI review requested due to automatic review settings February 23, 2026 13:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the skill-validator runner configuration so that when a test targets a specific skill, only that skill is loaded (avoiding cross-skill interactions from loading sibling skills).

Changes:

  • Adjust buildSessionConfig to set skillDirectories to the skill directory itself (instead of the parent directory).
  • Update the corresponding unit test expectation and description.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
eng/skill-validator/src/runner.ts Changes session config to load only the targeted skill directory.
eng/skill-validator/tests/runner.test.ts Updates test to assert skillDirectories points to the skill directory, not its parent.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ViktorHofer ViktorHofer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This could be intentional. Not sure. @adityamandaleeka?

moesac0970 pushed a commit to moesac0970/skills that referenced this pull request Jul 4, 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.

3 participants