Skip to content

Commit 58b9c3d

Browse files
authored
fix(ci): remove the temporary Context7 updater pin (#750)
1 parent e752d5b commit 58b9c3d

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

‎scripts/skill-update-scope.sh‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
set -euo pipefail
44
refuse() { printf 'skill update scope: unsupported dispatch\n' >&2; exit 2; }
55
[[ $# -ge 1 && $# -le 2 ]] || refuse
6-
# Hold Context7 at the current revision until hosted query-docs accepts version (#745).
7-
# Both scopes include this skill. After removing the hold, dispatch once with unpin
8-
# to release the installed skill's pinned metadata.
9-
pin='plugins/agentic-engineering/skills/context7-mcp 7fe6e09cfa8ad9aba5768da2e37823ccd3837abb'
6+
# A temporary pin is a skill directory and an upstream commit. To release pinned
7+
# metadata on an installed skill, clear the pin and dispatch once with unpin.
8+
pin=''
109
case "$1:${2:-all}" in
1110
schedule:all|workflow_dispatch:all) printf 'dir=plugins\nbranch=deps/agent-skills-update\npins=%s\n' "$pin" ;;
1211
workflow_dispatch:agentic-engineering) printf 'dir=plugins/agentic-engineering/skills\nbranch=deps/agent-skills-update-agentic-engineering-skills\npins=%s\n' "$pin" ;;

‎scripts/skill-update-scope.test.sh‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@ set -euo pipefail
44
here=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
55
work=$(mktemp -d)
66
trap 'rm -rf "$work"' EXIT
7-
expected_pin='plugins/agentic-engineering/skills/context7-mcp 7fe6e09cfa8ad9aba5768da2e37823ccd3837abb'
8-
expected_full=$'dir=plugins\nbranch=deps/agent-skills-update\npins='"$expected_pin"
7+
expected_full=$'dir=plugins\nbranch=deps/agent-skills-update\npins='
98
for event in schedule workflow_dispatch; do
109
bash "$here/skill-update-scope.sh" "$event" >"$work/out"
1110
[[ $(cat "$work/out") == "$expected_full" ]] || {
12-
printf 'FAIL: full-catalogue %s must pin only Context7 at the compatible revision (#745)\n' "$event" >&2
11+
printf 'FAIL: full-catalogue %s must allow the normal skill update\n' "$event" >&2
1312
exit 1
1413
}
1514
done
1615
bash "$here/skill-update-scope.sh" workflow_dispatch all >"$work/out"
1716
[[ $(cat "$work/out") == "$expected_full" ]]
1817
bash "$here/skill-update-scope.sh" workflow_dispatch agentic-engineering >"$work/out"
19-
expected_scoped=$'dir=plugins/agentic-engineering/skills\nbranch=deps/agent-skills-update-agentic-engineering-skills\npins='"$expected_pin"
18+
expected_scoped=$'dir=plugins/agentic-engineering/skills\nbranch=deps/agent-skills-update-agentic-engineering-skills\npins='
2019
[[ $(cat "$work/out") == "$expected_scoped" ]] || {
21-
printf 'FAIL: the agentic-engineering scope must apply the same Context7 pin (#745)\n' >&2
20+
printf 'FAIL: the agentic-engineering scope must allow the normal skill update\n' >&2
2221
exit 1
2322
}
2423
# A scoped producer must still create the canonical per-skill branch accepted

0 commit comments

Comments
 (0)