Skip to content

Commit c4c1531

Browse files
author
Ankit Sinha
committed
Merge branch 'main' into agents-mcp-skills
2 parents 20d9fe4 + 99a273b commit c4c1531

File tree

35 files changed

+171
-60
lines changed

35 files changed

+171
-60
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -221,22 +221,6 @@ jobs:
221221
222222
echo "All skill files have valid frontmatter"
223223
224-
- name: Check skill name prefix conflicts
225-
if: steps.changed-skills.outputs.any_changed == 'true'
226-
run: |
227-
# Collect toplevel skill directory names under plugin/skills
228-
NAMES=$(ls -d plugin/skills/*/ | xargs -n1 basename)
229-
230-
# Check if any name is a prefix of another
231-
while IFS= read -r a; do
232-
while IFS= read -r b; do
233-
if [ "$a" != "$b" ] && [[ "$b" == "$a"* ]]; then
234-
echo "error: Skill name '$a' is a prefix of '$b'"
235-
exit 1
236-
fi
237-
done <<< "$NAMES"
238-
done <<< "$NAMES"
239-
240224
- name: Skip message
241225
if: steps.changed-skills.outputs.any_changed != 'true'
242226
run: echo "No skill files changed - skipping validation"

.github/workflows/test-all-integration.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,14 @@ jobs:
110110

111111
- name: Integration tests - azure-ai
112112
id: integration-tests-azure-ai
113-
if: contains(inputs.skills, 'azure-ai')
113+
# works around the problem that azure-ai is a prefix of azure-aigateway
114+
if: contains(format(',{0},', inputs.skills), ',azure-ai,')
114115
env:
115116
DEBUG: ${{ inputs.debug && '1' || '' }}
116117
TEST_RUN_ID: all-integration
117118
run: |
118-
npm run test:integration azure-ai
119+
# works around the problem that azure-ai is a prefix of azure-aigateway
120+
npm run test:integration azure-ai/
119121
continue-on-error: true
120122

121123
- name: Integration tests - azure-aigateway

.github/workflows/test-azure-deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ permissions:
1212
on:
1313
workflow_dispatch:
1414
inputs:
15-
group-name:
16-
description: 'Deploy test group name to run (e.g. static-web-apps-deploy). If empty, all groups will be run.'
15+
test-pattern:
16+
description: 'Optional: Filter tests by name or describe block (e.g. "creates todo list", "static-web-apps-deploy", "Terraform"). If empty, all tests will be run.'
1717
required: false
1818
type: string
1919
default: ''
@@ -97,10 +97,11 @@ jobs:
9797
GH_HEAD_SHA: ${{ github.sha }}
9898
DEBUG: ${{ inputs.debug && '1' || '' }}
9999
run: |
100-
if [ -n "${{ inputs.group-name }}" ]; then
101-
TEST_ARGS="--testNamePattern=${{ inputs.group-name }}"
100+
if [ -n "${{ inputs.test-pattern }}" ]; then
101+
npm run test:integration -- --testPathPattern="azure-deploy" --testNamePattern="${{ inputs.test-pattern }}"
102+
else
103+
npm run test:integration -- --testPathPattern="azure-deploy"
102104
fi
103-
npm run test:integration -- --testPathPattern="azure-deploy" $TEST_ARGS
104105
continue-on-error: true
105106

106107
- name: Generate report

tests/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ if (skipTests && skipReason) {
237237

238238
const describeIntegration = skipTests ? describe.skip : describe;
239239

240-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
240+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
241241
test('invokes skill for relevant prompt', async () => {
242242
const agentMetadata = await run({
243243
prompt: 'What role should I assign for blob storage access?'

tests/_template/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const SKILL_NAME = "your-skill-name";
2727
// Use centralized skip logic from agent-runner
2828
const describeIntegration = shouldSkipIntegrationTests() ? describe.skip : describe;
2929

30-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
30+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3131
const agent = useAgentRunner();
3232

3333
// Example test: Verify the skill is invoked for a relevant prompt

tests/appinsights-instrumentation/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (skipTests && skipReason) {
3737

3838
const describeIntegration = skipTests ? describe.skip : describe;
3939

40-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
40+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
4141
const agent = useAgentRunner();
4242

4343
describe("skill-invocation", () => {

tests/azure-ai/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (skipTests && skipReason) {
3232

3333
const describeIntegration = skipTests ? describe.skip : describe;
3434

35-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
35+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3636
const agent = useAgentRunner();
3737

3838
describe("skill-invocation", () => {

tests/azure-aigateway/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (skipTests && skipReason) {
3232

3333
const describeIntegration = skipTests ? describe.skip : describe;
3434

35-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
35+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3636
const agent = useAgentRunner();
3737

3838
describe("skill-invocation", () => {

tests/azure-compliance/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (skipTests && skipReason) {
3232

3333
const describeIntegration = skipTests ? describe.skip : describe;
3434

35-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
35+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3636
const agent = useAgentRunner();
3737

3838
describe("skill-invocation", () => {

tests/azure-cost-optimization/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (skipTests && skipReason) {
3333

3434
const describeIntegration = skipTests ? describe.skip : describe;
3535

36-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
36+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3737
const agent = useAgentRunner();
3838

3939
describe("skill-invocation", () => {

0 commit comments

Comments
 (0)