fix(ci): resolve Linux and summary checks
CI / Capabilities and shell quality (push) Successful in 13s
CI / Python tests and compilation (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Failing after 17s
CI / CI configuration security checks (push) Successful in 3s
CI / Build and inspect generated packages (push) Failing after 9s
CI / Bash integration and installation guards (push) Skipped
CI / Installed client configuration smoke tests (push) Skipped
CI / Qwen retrieval integration (push) Successful in 14m48s
CI / Capabilities and shell quality (push) Successful in 13s
CI / Python tests and compilation (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Failing after 17s
CI / CI configuration security checks (push) Successful in 3s
CI / Build and inspect generated packages (push) Failing after 9s
CI / Bash integration and installation guards (push) Skipped
CI / Installed client configuration smoke tests (push) Skipped
CI / Qwen retrieval integration (push) Successful in 14m48s
This commit is contained in:
1 parent
d5c2ca556b
commit
6a1730c6ec
5 files changed
+8
-8
No files matched your search
@@ -11,7 +11,6 @@ done
|
|||||||
root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)
|
root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)
|
||||||
shared="$root/shared"
|
shared="$root/shared"
|
||||||
output="$root/generated"
|
output="$root/generated"
|
||||||
plugin_manifest="$root/adapters/plugins.tsv"
|
|
||||||
capability_manifest="$root/adapters/claude/capabilities.tsv"
|
capability_manifest="$root/adapters/claude/capabilities.tsv"
|
||||||
|
|
||||||
[ -f "$capability_manifest" ] || { printf 'Missing capability manifest: %s\n' "$capability_manifest" >&2; exit 1; }
|
[ -f "$capability_manifest" ] || { printf 'Missing capability manifest: %s\n' "$capability_manifest" >&2; exit 1; }
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ if (Get-Command jq -ErrorAction SilentlyContinue) { Result 'PASS' 'jq available
|
|||||||
$sourceAgentCount = @(Get-ChildItem (Join-Path $root 'shared/agents') -Directory -ErrorAction SilentlyContinue).Count
|
$sourceAgentCount = @(Get-ChildItem (Join-Path $root 'shared/agents') -Directory -ErrorAction SilentlyContinue).Count
|
||||||
$sourceSkillCount = @(Get-ChildItem (Join-Path $root 'shared/skills') -Filter 'SKILL.md' -Recurse -ErrorAction SilentlyContinue).Count
|
$sourceSkillCount = @(Get-ChildItem (Join-Path $root 'shared/skills') -Filter 'SKILL.md' -Recurse -ErrorAction SilentlyContinue).Count
|
||||||
$rulesRoot = Join-Path $root 'shared/rules'
|
$rulesRoot = Join-Path $root 'shared/rules'
|
||||||
$ruleSkillCount = @((Get-ChildItem $rulesRoot -File -Filter '*.md' | Where-Object Name -ne 'general.md')).Count + @((Get-ChildItem $rulesRoot -Directory | Where-Object { Test-Path (Join-Path $_.FullName 'index.md') })).Count
|
$generalRulePath = Join-Path $rulesRoot 'general.md'
|
||||||
|
$ruleSkillCount = @(Get-ChildItem $rulesRoot -File -Filter '*.md' -Recurse | Where-Object { $_.FullName -ne $generalRulePath }).Count
|
||||||
|
|
||||||
foreach ($shell in @('powershell','bash')) {
|
foreach ($shell in @('powershell','bash')) {
|
||||||
if (Test-Path (Join-Path $root "generated/codex-$shell/AGENTS.md")) { Result 'PASS' "generated output present ($shell)" } else { Result 'FAIL' "generated output missing ($shell); run build" }
|
if (Test-Path (Join-Path $root "generated/codex-$shell/AGENTS.md")) { Result 'PASS' "generated output present ($shell)" } else { Result 'FAIL' "generated output missing ($shell); run build" }
|
||||||
|
|||||||
@@ -33,8 +33,7 @@ command -v jq >/dev/null && result PASS 'jq available for Claude Bash status lin
|
|||||||
|
|
||||||
source_agent_count=$(find "$root/shared/agents" -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l)
|
source_agent_count=$(find "$root/shared/agents" -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l)
|
||||||
source_skill_count=$(find "$root/shared/skills" -name SKILL.md 2>/dev/null | wc -l)
|
source_skill_count=$(find "$root/shared/skills" -name SKILL.md 2>/dev/null | wc -l)
|
||||||
rule_skill_count=$(find "$root/shared/rules" -mindepth 1 -maxdepth 1 -type f -name '*.md' ! -name general.md | wc -l)
|
rule_skill_count=$(find "$root/shared/rules" -type f -name '*.md' ! -path "$root/shared/rules/general.md" | wc -l)
|
||||||
rule_skill_count=$((rule_skill_count + $(find "$root/shared/rules" -mindepth 2 -maxdepth 2 -type f -name index.md | wc -l)))
|
|
||||||
|
|
||||||
for shell in powershell bash; do
|
for shell in powershell bash; do
|
||||||
[ -f "$root/generated/codex-$shell/AGENTS.md" ] && result PASS "generated output present ($shell)" || result FAIL "generated output missing ($shell); run build"
|
[ -f "$root/generated/codex-$shell/AGENTS.md" ] && result PASS "generated output present ($shell)" || result FAIL "generated output missing ($shell); run build"
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ manifest_path() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
managed_target() {
|
managed_target() {
|
||||||
local destination=$1 relative=$2 component target=$destination probe
|
local destination=$1 relative=$2 component target probe
|
||||||
|
target=$destination
|
||||||
[[ -n "$relative" && "$relative" != /* && "$relative" != */ && "$relative" != *//* && "$relative" != *\\* && "$relative" != *:* && "$relative" != *$'\t'* && "$relative" != *$'\r'* && "$relative" != *$'\n'* ]] || { printf 'Invalid managed path: %s\n' "$relative" >&2; return 1; }
|
[[ -n "$relative" && "$relative" != /* && "$relative" != */ && "$relative" != *//* && "$relative" != *\\* && "$relative" != *:* && "$relative" != *$'\t'* && "$relative" != *$'\r'* && "$relative" != *$'\n'* ]] || { printf 'Invalid managed path: %s\n' "$relative" >&2; return 1; }
|
||||||
local -a parts
|
local -a parts
|
||||||
IFS=/ read -r -a parts <<< "$relative"
|
IFS=/ read -r -a parts <<< "$relative"
|
||||||
@@ -80,7 +81,6 @@ sync_managed_destination() {
|
|||||||
declare -A old_manifest
|
declare -A old_manifest
|
||||||
read_managed_manifest "$manifest" old_manifest || return 1
|
read_managed_manifest "$manifest" old_manifest || return 1
|
||||||
declare -A new_manifest
|
declare -A new_manifest
|
||||||
local backup_root="$destination/backups/$stamp"
|
|
||||||
local created=0 updated=0 unchanged=0 removed=0 warned=0
|
local created=0 updated=0 unchanged=0 removed=0 warned=0
|
||||||
|
|
||||||
while IFS= read -r -d '' source_file; do
|
while IFS= read -r -d '' source_file; do
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ class ManagedExtensionTests(unittest.TestCase):
|
|||||||
self.assertFalse((directory / 'references/old.md').exists())
|
self.assertFalse((directory / 'references/old.md').exists())
|
||||||
|
|
||||||
def test_skill_records_resolved_revision(self):
|
def test_skill_records_resolved_revision(self):
|
||||||
with patch.object(extensions, 'resolve_revision', return_value='a' * 40):
|
with patch.object(extensions, 'fetch_skill', return_value=('humanizer', {'SKILL.md': (b'original', False)}, 'a' * 40)):
|
||||||
self.manager().sync([skill()], ['codex'], {'Humanizer'})
|
self.manager().sync([skill()], ['codex'], {'Humanizer'})
|
||||||
record = self.manager().state['resources'][0]
|
record = self.manager().state['resources'][0]
|
||||||
self.assertEqual(record['source'], 'blader/humanizer')
|
self.assertEqual(record['source'], 'blader/humanizer')
|
||||||
@@ -278,7 +278,8 @@ class ManagedExtensionTests(unittest.TestCase):
|
|||||||
self.manager().sync([mcporter()], ['codex'], {'MCPorter'})
|
self.manager().sync([mcporter()], ['codex'], {'MCPorter'})
|
||||||
self.commands.clear()
|
self.commands.clear()
|
||||||
with patch.object(extensions.shutil, 'which', return_value='mcporter'):
|
with patch.object(extensions.shutil, 'which', return_value='mcporter'):
|
||||||
self.manager(update=True).sync([mcporter()], ['codex'], {'MCPorter'})
|
with patch.object(extensions.Manager, 'global_packages', return_value={'mcporter'}):
|
||||||
|
self.manager(update=True).sync([mcporter()], ['codex'], {'MCPorter'})
|
||||||
self.assertEqual([['npm', 'update', '--global', 'mcporter']], self.commands)
|
self.assertEqual([['npm', 'update', '--global', 'mcporter']], self.commands)
|
||||||
|
|
||||||
def test_managed_mcporter_reinstalls_when_command_is_missing(self):
|
def test_managed_mcporter_reinstalls_when_command_is_missing(self):
|
||||||
|
|||||||
Reference in new issue
Block a user