/xwiki:xwiki-release-test-triagefrom xwiki
Triages failing functional tests on ci.xwiki.org for XWiki releases, separating known flickers from real breakages and checking if fixes exist on other branches.
Ships in xwiki. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This is the first release-day gate, and its output is a decision, not a list: for every failing test, either it is understood (a tracked flicker) or it is not (and someone must act before the release). Report and ask — never fix, file or backport anything on your own here.
Run from inside an up-to-date clone of the repo (git fetch origin <branch> first, so the script
can tell how far the branch has moved since the build):
node <skill>/tools/triage.mjs --branch stable-17.10.x
node <skill>/tools/triage.mjs --branch stable-17.10.x --repos xwiki-platform --compare master,stable-18.4.x
It reads the main Jenkins job of each repo of the release train plus platform's Environment Tests
job, aggregates each test across every job, environment and recent build, and joins the failures
with the open flickering issues. --json gives the same data unformatted. Derive the --compare branches from
the maintained-branch policy in [[release]] plus git branch -r 'origin/stable-*' — the policy says
where a fix must land, the remote list says where it can be observed.
The report's per-job line ends with the commit the build ran and how far the branch has moved since. A test whose fix was pushed after that commit is already fixed and is not a finding — say so and move on. This is the single most common way this triage goes wrong.
Two independent measurements decide, and neither is the JIRA column:
Failed/ran envs — environments, not test cases, in the latest build. Failing all of them is
a breakage; failing some is a flicker.Failed/ran builds — the same test over the last few builds (--history, default 5 per job).
One build is one sample: this is what separates "flickered once" from "has failed every build for
a fortnight", which look identical in a single report.systematic means one of the two says always; intermittent means both say sometimes; single env
means only one environment ran it and it has not failed every recent build — the one case the data
cannot settle, so get the test's history from the develocity MCP.
(+N skipped) means assumeTrue disabled the test elsewhere — a test that runs in one environment
only is invisible in the other job, so "green on the main job" is not evidence it passes.
The evidence outranks the issue. A JIRA key means someone once saw this test flicker, not that
today's failure is that flicker:
**STALE** marks the
clear-cut case, where it also fails every recent build.Entries under "Not test methods" are a module's whole setup failing, or forbidden content in the logs. They hide every test of that module, so treat one as more serious than a single failure.
The --compare columns say where the test is healthy; the diff between there and here says why:
git diff origin/<branch> origin/master -- <module> # what the healthy branch has that this one lacks
git log -S"<the missing symbol or dependency>" --oneline origin/master -- <module>
Passing elsewhere does not imply the fix was skipped deliberately — it is often incidental (a dependency another test happened to add). Check every maintained branch, not only the two in the policy: a fix that never reached one of them is a finding of its own.
Then classify: test-only (the product is fine — the test cannot run as written) or product. Only the second can block a release; say which one it is, with the evidence.
One table — test, verdict, known/unknown, where else it fails, and for each systematic failure the
cause and whether it is test-only or product. Then state plainly whether anything blocks the
release, and ask what to do. Hand off from there: xwiki-fix-flickering-docker-test to stabilise a
flicker, xwiki-jira to file an unknown one, xwiki-backport for a fix missing from a branch.
Everything above stops at the report. The skill that does any of it on its own — daily, across every
maintained branch, commenting on the culprit commit — is xwiki-ci-check; it shares this skill's
Jenkins client but not its contract. The old open-bug backlog in JIRA, not what CI shows red, is
xwiki-jira-bfd's.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xwiki/xwiki-dev-llm --plugin xwiki38 skills in this plugin
/xwiki-backportBackport any change (bug fix, feature, refactor, or test) to an older branch of an XWiki repo (xwiki-platform / xwiki-commons / xwiki-rendering / xwiki-contrib). Cherry-pick `-x` the source commit(s) into a worktree, ADAPT the result to the older branch (module pom versions, Java level, `@since` tags, data migration versions and skip ranges, style/API divergence), verify it compiles against that branch, and push / open a PR. Use whenever a commit that exists on one branch needs to be applied to an older/maintenance branch. For the `testneeded`-labelled test sweep use xwiki-backport-testneeded (which builds on this skill); for Maven commands use xwiki-build; for PR/commit conventions use xwiki-pull-request; for the versioning/`@since` conventions (the format and what carries `@since`) use xwiki-knowledge./xwiki-backport-testneededBackport the automated test of one JIRA issue labelled `testneeded` to the currently-supported stable branches, adjust its `@since` tags across all branches, and open the PRs. Use when asked to backport the test of a given testneeded issue, or to catch a stable branch up with a recently-added test. (For several issues at once, the user will say so — then apply this per issue.) This is the test-specific layer on top of xwiki-backport (which owns the generic cherry-pick / adapt-to-branch / verify mechanics — including the mandatory pom-version, Java-version and `@since` checks). For Maven use xwiki-build; for PR/commit conventions use xwiki-pull-request; for the `@since` rules use xwiki-knowledge; for querying JIRA (the testneeded sweep) use xwiki-jira.