[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X0MNBG3HDSP3VQ6G9B2X46":3,"skill-same:01M6X0MNBG3HDSP3VQ6G9B2X46":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6X0MNBG3HDSP3VQ6G9B2X46","dependency-upgrade",null,"Perform a sweeping dependency upgrade of the Solr Operator - bump Go modules and pinned tool versions together, regenerate CRDs, RBAC, deepcopy code and the license list, fix the test fixtures that k8s API bumps break, and record the user-visible effects in both Helm charts' artifacthub.io\u002Fchanges changelog. Use this instead of accepting many small Dependabot PRs, and especially before cutting a release.","apache\u002Fsolr-operator","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6X0MKNYRDQN3CE1F0PSP2B8",285,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fapache\u002Fsolr-operator\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdependency-upgrade\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"dependency","dependency upgrade","upgrade","solr","rbac","update","changelog","change","libraries","controller","io","api","helm charts","code","when","effects","dependabot","fix","bump","Charts","modules","2026-11-10 10:12:30",false,"---\nname: dependency-upgrade\ndescription: Perform a sweeping dependency upgrade of the Solr Operator - bump Go modules and pinned tool versions together, regenerate CRDs, RBAC, deepcopy code and the license list, fix the test fixtures that k8s API bumps break, and record the user-visible effects in both Helm charts' artifacthub.io\u002Fchanges changelog. Use this instead of accepting many small Dependabot PRs, and especially before cutting a release.\nwhen_to_use: The user asks to upgrade dependencies, bump Go modules, update k8s\u002Fcontroller-runtime\u002FHelm libraries, refresh the dependency license list, handle a major-version or breaking dependency change, or prepare dependencies ahead of a release. Also when a dependency PR fails \"make check-licenses\" or \"make check-git\".\n---\n\n# Sweeping dependency upgrade\n\nUpgrade everything in one reviewed pass: one CRD regeneration, one license-list regeneration, one\nset of fixture repairs, one changelog entry. The changelog is the step most often forgotten and the\nmain reason this skill exists. Read `AGENTS.md` first — where it and this skill disagree, the repo\nwins.\n\n## Who owns what\n\n| Tier | What | Owner |\n|---|---|---|\n| A | GitHub Actions, the release wizard's `requirements.txt` | Dependabot (`.github\u002Fdependabot.yml`). Not yours: leave its PRs alone, never bump a `uses:` SHA or a wizard pin during a sweep. |\n| B | Go modules, Makefile tool pins, envtest assets | This skill. `make list-upgrades` detects them. |\n| C | Base images, kind\u002FKubernetes versions in the test scripts, the Zookeeper server image, docs matrices | This skill, but nothing upstream to check against. `make list-upgrades` locates them by pattern and prints current values; bump what is clearly stale. `PATTERN NOT FOUND` or `MISSING FILE` means the table in the script needs updating. |\n\nOut of scope: `DefaultSolrVersion`, chart `appVersion`, the operator's image tag — all release\nprocess (`hack\u002Frelease\u002Fversion\u002Fpropagate_version.sh`). Also the declared minimum Kubernetes\nversion, below.\n\n## Step 0: branch from upstream main\n\n```bash\ngit remote -v | awk '\u002Fapache\\\u002Fsolr-operator(\\.git)? \\(fetch\\)\u002F {print $1}'\ngit status --short\ngit fetch \u003Cremote> main\ngit switch -c dependency-upgrade-\u003Cyyyy-mm> \u003Cremote>\u002Fmain\n```\n\nThe remote is `upstream` in some clones, `apache` or `origin` in others; if the first command prints\nnothing, ask rather than guess. Stop and ask if tracked files are modified (untracked scratch files\nare fine). Branch from `\u003Cremote>\u002Fmain`, never local `main`. Do not `git pull`. Do not commit to\n`main`.\n\n## Preflight\n\nAll five. Each one silently ruins the run.\n\n1. **Delete `vendor\u002F`.** Not vendored, not gitignored, so stale copies linger. Breaks three things:\n   Go switches to `-mod=vendor` (`inconsistent vendoring`); `hack\u002Fcheck_license.sh` has no `vendor\u002F`\n   exclusion so `make lint` exits 255 on thousands of third-party files; `make check-git` sees only\n   tracked files, so CI stays green and warns you of nothing. Also check `go env GOFLAGS`.\n2. **Match the Go toolchain to `go.mod`.** The Makefile fails at parse time, blocking *every*\n   target including `make help`, unless `major.minor` from the `go` directive is a substring of\n   `go version`. Newer fails as hard as older. Install it, or set `GOTOOLCHAIN=go1.\u003Cminor>.0`.\n3. **`make clean`.** Tool installation is a bare file-existence check, so stale binaries in `bin\u002F`\n   survive a version bump and regenerate CRDs with the old `controller-gen`.\n4. **Docker running, network available.** `make lint` needs Docker (`check-helm`, `check-docs`),\n   `make test` downloads envtest assets, `mod-tidy` and `fetch-licenses-list` reach the network.\n5. **`helm` and `yq` on `PATH`.** `make install-dependencies` installs neither.\n\n## Decide the scope\n\nRun `make list-upgrades`, or `.\u002Fhack\u002Flist-upgrades.sh` when the Go-version gate blocks make. It\nwrites nothing, exits 0, and prints every section even when one of them fails.\n\n**Take every patch and minor bump without asking.** No interview, no per-module approval, and never\nhold one back because its release notes are long.\n\n### Resolve the Go toolchain first\n\nDecide the target Go version before judging any other candidate. A dependency's newest release may\nrequire a newer Go than `go.mod` pins; taking it anyway silently pulls a second toolchain, and the\nMakefile's gate then rejects the mismatch. `make list-upgrades` marks those candidates\n`[needs Go X.Y]` — compared against the *current* directive, so if you raise `go` in `go.mod`,\nre-run it and judge everything else against the new floor.\n\nRaising Go is its own decision: it moves `build\u002FDockerfile` and the `go-version` matrix in CI, and\nforces every contributor to update. If Go stays put, take the newest dependency version that still\nbuilds on it rather than skipping the module — e.g. kustomize v5.8.3 needs Go 1.27, while v5.8.0\nneeds only 1.24.\n\n### Linked sets\n\nThese move together — bumping one alone produces a tidy that resolves and a build that fails:\n\n- **The Kubernetes set:** `k8s.io\u002Fapi`, `apimachinery`, `client-go`, plus the indirect `k8s.io\u002F*`\n  entries (`apiextensions-apiserver`, `apiserver`, `cli-runtime`, `component-base`, `kubectl`) — all\n  on one version. `helm.sh\u002Fhelm\u002Fv3` pulls several, so Helm moves in lockstep.\n- **`sigs.k8s.io\u002Fcontroller-runtime`** — also decides the `setup-envtest` release branch.\n- **`github.com\u002Fonsi\u002Fginkgo\u002Fv2`** — the Makefile derives the installed ginkgo version from it.\n- **`github.com\u002Fpravega\u002Fzookeeper-operator`** — see below.\n\nRead each candidate's release notes for the span crossed.\n\n### A new major is the user's call\n\nNever fold one in unilaterally, and never take the minor without saying the major exists. Cost it\nout in minutes:\n\n1. Migration notes for the major boundary only, not every release in the span.\n2. Blast radius: `grep -rln '\u003Cmodule path>' --include='*.go' .`\n3. What it drags along: a `controller-runtime` major usually forces the Kubernetes set, and\n   `helm.sh\u002Fhelm` pulls `k8s.io\u002F*`, so one major becomes four.\n4. User-visible effects: CRD schema, generated RBAC, minimum Kubernetes version.\n5. Whether the old major is still maintained. EOL means staying put is the risk.\n\nPresent per module: current → available major, which breaking changes touch this codebase, file\ncount, knock-on bumps, recommendation. Offer three options — take it now, take the minor and leave\nthe major to a dedicated PR, or hold the module.\n\nOn a toss-up recommend the minor plus a separate PR — a module-path change is unreviewable buried\nin regenerated CRDs. Recommend taking it now when the migration is mechanical, the old major is\nunmaintained, or a wanted bump requires it; say which. A major taken gets its own commit and its own\nPR paragraph.\n\n## The Zookeeper Operator is pinned in a dozen places\n\n`versions.props` is the source of truth and `make check-zk-op-version` enforces most, not all, of\nthe copies. If it moves, update every one of `versions.props`, `go.mod`,\n`config\u002Fdependencies\u002Fzookeeper_cluster_crd.yaml` (both the `tree\u002F` comment and the\n`operator.zookeeper.pravega.io\u002Fversion` annotation), `helm\u002Fsolr-operator\u002FChart.yaml` (the\n`dependencies:` entry), `helm\u002Fsolr-operator\u002FREADME.md`, `NOTICE` and\n`docs\u002Fmodules\u002Fdevelopment\u002Fpages\u002Fdevelopment.adoc`, then run that target.\n\n- The **`v` prefix is inconsistent on purpose**: `v0.0.0` in `versions.props`, `go.mod`, the CRD\n  file, `NOTICE` and the chart README; bare `0.0.0` in `Chart.yaml` and `development.adoc`. The\n  check enforces both forms and hints when you get it wrong.\n- The ZookeeperCluster CRD is regenerated by **no** make target. Run `hack\u002Fzk-operator\u002Fupdate-crd.sh`\n  by hand; it needs network.\n- `tests\u002Fscripts\u002Fmanage_e2e_tests.sh` pins the Zookeeper *server* image separately, unchecked.\n\n## The minimum Kubernetes version is not a dependency\n\nThe `k8s.io\u002F*` libraries are an ordinary dependency, but the declared minimum supported Kubernetes\nis a support promise: `kubeVersion` in both charts plus the matrix in\n`docs\u002Fmodules\u002Fupgrade-notes\u002Fpages\u002Fupgrade-notes.adoc`, enforced by Helm at install time, so raising\nit stops existing users from upgrading. Nothing links the two, so a library bump cannot raise the\nfloor by accident — but it widens the gap between what the operator is built against and what it\nclaims to support. `make list-upgrades` prints declared, built and tested side by side: report that\ngap, never close it. **Never edit `kubeVersion` or the matrix during a sweep.** Raising the floor is\nits own PR, timed to a release, with an upgrade-notes entry and a `changed` entry in both charts. The\nexception is a bump that *forces* the floor — new libraries dropping an API the operator uses, or CRD\nschema older API servers reject — and then you stop, because the supported range is the first\ndecision.\n\n## Tier C notes\n\nTwo that need care rather than a bump:\n\n- The `golang` builder image in `build\u002FDockerfile` moves together with the `go` directive in\n  `go.mod` and the `go-version` matrix in CI, because the Makefile's gate rejects a mismatch either\n  way.\n- `artifacthub\u002Fah` in the Makefile is **untagged**, so `make lint` pulls `:latest`. Pinning it is\n  worthwhile but a deliberate change of its own.\n\nSome Tier C pins have already drifted (kind and Kubernetes differ between the e2e and smoke-test\nscripts; `hack\u002Ftest-upgrade.sh` names an old Zookeeper Operator). Do not fold a drift cleanup into a\nsweep — file it separately, or the diff stops being reviewable.\n\n## Do the upgrade\n\n1. `make list-upgrades`. Settle the Go toolchain target first, then the rest of the scope,\n   including any major-version interview.\n2. Edit `go.mod`, and `versions.props` if the Zookeeper Operator moves.\n3. `make mod-tidy`.\n4. If the Zookeeper Operator moved: `hack\u002Fzk-operator\u002Fupdate-crd.sh`, update the files listed above,\n   then `make check-zk-op-version` until it passes.\n5. `make install-dependencies` — installs the tools at the new pinned and derived versions.\n6. `make prepare` — the one command that makes a PR pass lint. Runs `fmt`, `generate`, `manifests`,\n   `fetch-licenses-list` and `mod-tidy` in the right order.\n7. `make test`, then repair fixtures.\n8. Add or consolidate the changelog entries.\n9. `make lint`, then `make test` again.\n\n### Regenerate, never hand-edit\n\n`make manifests` writes `config\u002F` **and** `helm\u002F` from one `controller-gen` run, transforming on the\nway, and `make check-manifests` diffs both trees recursively — a partial regeneration fails. Never\nhand-edit `helm\u002Fsolr-operator\u002Fcrds\u002Fcrds.yaml` (the three `config\u002Fcrd\u002Fbases` files concatenated under\na header) or `helm\u002Fsolr-operator\u002Ftemplates\u002Frole.yaml` (`config\u002Frbac\u002Frole.yaml` in Helm conditionals\nwith templated names). A `controller-gen` bump alone rewrites every CRD, because the annotation\nscript stamps a version line into each; several thousand changed lines is normal.\n\n### Lint targets run serially\n\n`check-mod`, `check-manifests` and `check-generated` each delete a shared scratch directory, so\n`make -j` has them destroy each other's work. `check-mod` also moves `go.mod`\u002F`go.sum` aside,\nre-tidies, then moves the originals back — interrupt it mid-way and the tree keeps the tidied files\nwhile the originals sit in a scratch directory `make clean` deletes. After interrupting, check\n`git diff go.mod` first.\n\n### The license list is platform-sensitive\n\n`fetch-licenses-list` is prefixed `GOOS=linux GOARCH=amd64` deliberately: `go-licenses` walks only\nthe current platform's build graph, so regenerating on macOS or ARM silently omits Linux-only\ndependencies and CI's byte-exact diff then fails. Always use the make target, never `go-licenses`\ndirectly. Do not re-sort the CSV; it is in the generator's native order.\n\n`make check-licenses` fails two ways. A `\u003C`\u002F`>` diff means the CSV is stale — regenerate it. A\ndisallowed-license complaint means a new transitive dependency landed under a license outside the\nallow-list, and **there is no override**: find a version that avoids it, or stop and raise it with\nthe PMC. Never edit the allow-list to make a build pass.\n\n## Fixing what a Kubernetes bump breaks\n\nThe controller tests boot a real API server through envtest and load the real CRDs, so an API bump\nchanges behaviour, not just signatures. Expect to repair test fixtures, not production code — past\nsweeps needed a toleration operator changed from `Exists` to `Equal`, and storage resource requests\nadded to PVC templates. One failure at a time, and for each ask whether it is a fixture encoding an\nold default or a real regression. A regression means fixing the controller and a changelog entry; so\ndoes any change to generated RBAC, which is user-visible.\n\nAll controller and e2e specs use focused Ginkgo nodes (`FDescribe`, `FContext`, `FIt`), so\n`GINKGO_EDITOR_INTEGRATION=true` is load-bearing. `make test` sets it; `go test .\u002Fcontrollers\u002F...`\nby hand without it fails confusingly on programmatic focus.\n\n## Changelog: both charts\n\nAdd entries to `artifacthub.io\u002Fchanges` in **both** `helm\u002Fsolr-operator\u002FChart.yaml` and\n`helm\u002Fsolr\u002FChart.yaml` — a YAML block scalar holding a list. `kind` accepts exactly `added`,\n`changed`, `deprecated`, `removed`, `fixed`, `security`. Follow the existing entries, including the\n`links:` convention of a `Github Issue` and\u002For `Github PR` pair. Malformed YAML fails\n`make check-helm`.\n\nWrite for a user deciding whether to upgrade, not a reviewer reading the diff:\n\n- Tight wording. One line per entry, no prose, no restating the diff.\n- Never list library bumps individually. One `changed` entry summarising the sweep.\n- Several sweeps land in one release cycle. If that grouped entry is already there from an earlier\n  one, update it instead of adding a second — the net span since the last release, not this PR's\n  delta — and add this PR to its `links:`. The separate-entry rules below still apply.\n- A separate entry for anything changing behaviour or requiring action: new RBAC permissions, a\n  bundled Zookeeper Operator bump, a changed default.\n- A CVE fix uses `kind: security` **and** flips `artifacthub.io\u002FcontainsSecurityUpdates` to `\"true\"`\n  in that chart. Once set in a cycle it stays set; a later CVE-free sweep must not flip it back.\n- A sweep with no user-visible effect still gets one `changed` entry.\n\nIf the bundled Zookeeper Operator moved, also add an entry to\n`docs\u002Fmodules\u002Fupgrade-notes\u002Fpages\u002Fupgrade-notes.adoc`; its matrices are hand-maintained.\n\nRelease-time interaction: the release process wipes `artifacthub.io\u002Fchanges` to a placeholder just\nafter a release branch is cut, so an entry added to `main` after that lands in the *next* release.\nAn upgrade belonging to the release being cut must merge before that step. That placeholder is two\ndummy entries (`Addition 1`, `Change 2`), not an empty list — replace them, don't append.\n\n## Verify before you commit\n\n1. `make lint`, serially. Covers zk version consistency, tidy, formatting, licenses, manifests,\n   generated code, charts, docs.\n2. `make test`.\n3. `git status --short`, then stage deliberately by naming paths. **Never `git add -A`** — the tree\n   often still holds an untracked `vendor\u002F` (6500+ files) or scratch notes. Confirm **both**\n   `git diff --exit-code` and `git status --short` are clean; CI's `check-git` only checks the\n   former, so an untracked generated file passes CI and breaks the next person.\n\nTreat any failure as unfinished work. Add `make smoke-test` if packaging could be affected; it needs\nDocker, kind and network, unpacks the source release and runs `make check` inside it.\n\nCI coverage: build-and-check runs on every PR; smoke-test skips doc-only paths but runs for\n`go.mod`, `go.sum`, `Makefile`, the license CSV and `helm\u002F`. The e2e workflow runs on a sweep's PR\ntoo — its path filter includes `go.mod`, `go.sum`, `Makefile`, `config\u002Fcrd\u002F`,\n`config\u002Fdependencies\u002F` and `helm\u002Fsolr-operator\u002F` — but only the `Label(\"pr\")` specs, on one\nKubernetes and Solr version. That makes a green e2e job partial evidence: after a Kubernetes-set\nbump, run the full suite with `make e2e-tests` locally, or dispatch `e2e-tests.yaml` with an empty\nlabel filter, and say which one in the PR.\n\n## Commit, then ask before pushing\n\nOne commit, or a few logically separate ones, with generated output in the same commit as the change\nthat generated it. Message is a line or two: imperative subject under ~70 characters matching the\nexisting log (`Upgrade almost all operator dependencies`), at most a sentence of body. Detail belongs\nin the PR description.\n\nThe fork is the remote whose URL is not `apache\u002Fsolr-operator`:\n\n```bash\ngit remote -v | grep -v apache\u002Fsolr-operator\n```\n\nSeveral candidates or none means ask which. **Never push without the user agreeing in this\nconversation**, and never push to the apache remote. After pushing, propose the PR description and\nlet the user open the PR unless they ask you to.\n\n### PR description\n\nA reviewer cannot read thousands of lines of regenerated CRDs, so the description says what to check\ninstead. Well under a screenful:\n\n- One sentence: which dependency sets moved, and why now — routine sweep, pre-release, CVE.\n- The sets and version spans crossed, not one bullet per module.\n- Everything not mechanical: each major bump and what it required; each changed fixture, and whether\n  it was stale or a real behaviour change; any RBAC or default that moved.\n- One line naming the changelog entries added.\n- What you ran: `make lint`, `make test`, and `make e2e-tests` if you did — CI's e2e is disabled.\n\nLeave out anything visible from the file list, and never paste regenerated diffs. Write each\nparagraph and bullet as one unwrapped line; GitHub reflows them.\n","# Sweeping dependency upgrade\n\nUpgrade everything in one reviewed pass: one CRD regeneration, one license-list regeneration, one\nset of fixture repairs, one changelog entry. The changelog is the step most often forgotten and the\nmain reason this skill exists. Read `AGENTS.md` first — where it and this skill disagree, the repo\nwins.\n\n## Who owns what\n\n| Tier | What | Owner |\n|---|---|---|\n| A | GitHub Actions, the release wizard's `requirements.txt` | Dependabot (`.github\u002Fdependabot.yml`). Not yours: leave its PRs alone, never bump a `uses:` SHA or a wizard pin during a sweep. |\n| B | Go modules, Makefile tool pins, envtest assets | This skill. `make list-upgrades` detects them. |\n| C | Base images, kind\u002FKubernetes versions in the test scripts, the Zookeeper server image, docs matrices | This skill, but nothing upstream to check against. `make list-upgrades` locates them by pattern and prints current values; bump what is clearly stale. `PATTERN NOT FOUND` or `MISSING FILE` means the table in the script needs updating. |\n\nOut of scope: `DefaultSolrVersion`, chart `appVersion`, the operator's image tag — all release\nprocess (`hack\u002Frelease\u002Fversion\u002Fpropagate_version.sh`). Also the declared minimum Kubernetes\nversion, below.\n\n## Step 0: branch from upstream main\n\n```bash\ngit remote -v | awk '\u002Fapache\\\u002Fsolr-operator(\\.git)? \\(fetch\\)\u002F {print $1}'\ngit status --short\ngit fetch \u003Cremote> main\ngit switch -c dependency-upgrade-\u003Cyyyy-mm> \u003Cremote>\u002Fmain\n```\n\nThe remote is `upstream` in some clones, `apache` or `origin` in others; if the first command prints\nnothing, ask rather than guess. Stop and ask if tracked files are modified (untracked scratch files\nare fine). Branch from `\u003Cremote>\u002Fmain`, never local `main`. Do not `git pull`. Do not commit to\n`main`.\n\n## Preflight\n\nAll five. Each one silently ruins the run.\n\n1. **Delete `vendor\u002F`.** Not vendored, not gitignored, so stale copies linger. Breaks three things:\n   Go switches to `-mod=vendor` (`inconsistent vendoring`); `hack\u002Fcheck_license.sh` has no `vendor\u002F`\n   exclusion so `make lint` exits 255 on thousands of third-party files; `make check-git` sees only\n   tracked files, so CI stays green and warns you of nothing. Also check `go env GOFLAGS`.\n2. **Match the Go toolchain to `go.mod`.** The Makefile fails at parse time, blocking *every*\n   target including `make help`, unless `major.minor` from the `go` directive is a substring of\n   `go version`. Newer fails as hard as older. Install it, or set `GOTOOLCHAIN=go1.\u003Cminor>.0`.\n3. **`make clean`.** Tool installation is a bare file-existence check, so stale binaries in `bin\u002F`\n   survive a version bump and regenerate CRDs with the old `controller-gen`.\n4. **Docker running, network available.** `make lint` needs Docker (`check-helm`, `check-docs`),\n   `make test` downloads envtest assets, `mod-tidy` and `fetch-licenses-list` reach the network.\n5. **`helm` and `yq` on `PATH`.** `make install-dependencies` installs neither.\n\n## Decide the scope\n\nRun `make list-upgrades`, or `.\u002Fhack\u002Flist-upgrades.sh` when the Go-version gate blocks make. It\nwrites nothing, exits 0, and prints every section even when one of them fails.\n\n**Take every patch and minor bump without asking.** No interview, no per-module approval, and never\nhold one back because its release notes are long.\n\n### Resolve the Go toolchain first\n\nDecide the target Go version before judging any other candidate. A dependency's newest release may\nrequire a newer Go than `go.mod` pins; taking it anyway silently pulls a second toolchain, and the\nMakefile's gate then rejects the mismatch. `make list-upgrades` marks those candidates\n`[needs Go X.Y]` — compared against the *current* directive, so if you raise `go` in `go.mod`,\nre-run it and judge everything else against the new floor.\n\nRaising Go is its own decision: it moves `build\u002FDockerfile` and the `go-version` matrix in CI, and\nforces every contributor to update. If Go stays put, take the newest dependency version that still\nbuilds on it rather than skipping the module — e.g. kustomize v5.8.3 needs Go 1.27, while v5.8.0\nneeds only 1.24.\n\n### Linked sets\n\nThese move together — bumping one alone produces a tidy that resolves and a build that fails:\n\n- **The Kubernetes set:** `k8s.io\u002Fapi`, `apimachinery`, `client-go`, plus the indirect `k8s.io\u002F*`\n  entries (`apiextensions-apiserver`, `apiserver`, `cli-runtime`, `component-base`, `kubectl`) — all\n  on one version. `helm.sh\u002Fhelm\u002Fv3` pulls several, so Helm moves in lockstep.\n- **`sigs.k8s.io\u002Fcontroller-runtime`** — also decides the `setup-envtest` release branch.\n- **`github.com\u002Fonsi\u002Fginkgo\u002Fv2`** — the Makefile derives the installed ginkgo version from it.\n- **`github.com\u002Fpravega\u002Fzookeeper-operator`** — see below.\n\nRead each candidate's release notes for the span crossed.\n\n### A new major is the user's call\n\nNever fold one in unilaterally, and never take the minor without saying the major exists. Cost it\nout in minutes:\n\n1. Migration notes for the major boundary only, not every release in the span.\n2. Blast radius: `grep -rln '\u003Cmodule path>' --include='*.go' .`\n3. What it drags along: a `controller-runtime` major usually forces the Kubernetes set, and\n   `helm.sh\u002Fhelm` pulls `k8s.io\u002F*`, so one major becomes four.\n4. User-visible effects: CRD schema, generated RBAC, minimum Kubernetes version.\n5. Whether the old major is still maintained. EOL means staying put is the risk.\n\nPresent per module: current → available major, which breaking changes touch this codebase, file\ncount, knock-on bumps, recommendation. Offer three options — take it now, take the minor and leave\nthe major to a dedicated PR, or hold the module.\n\nOn a toss-up recommend the minor plus a separate PR — a module-path change is unreviewable buried\nin regenerated CRDs. Recommend taking it now when the migration is mechanical, the old major is\nunmaintained, or a wanted bump requires it; say which. A major taken gets its own commit and its own\nPR paragraph.\n\n## The Zookeeper Operator is pinned in a dozen places\n\n`versions.props` is the source of truth and `make check-zk-op-version` enforces most, not all, of\nthe copies. If it moves, update every one of `versions.props`, `go.mod`,\n`config\u002Fdependencies\u002Fzookeeper_cluster_crd.yaml` (both the `tree\u002F` comment and the\n`operator.zookeeper.pravega.io\u002Fversion` annotation), `helm\u002Fsolr-operator\u002FChart.yaml` (the\n`dependencies:` entry), `helm\u002Fsolr-operator\u002FREADME.md`, `NOTICE` and\n`docs\u002Fmodules\u002Fdevelopment\u002Fpages\u002Fdevelopment.adoc`, then run that target.\n\n- The **`v` prefix is inconsistent on purpose**: `v0.0.0` in `versions.props`, `go.mod`, the CRD\n  file, `NOTICE` and the chart README; bare `0.0.0` in `Chart.yaml` and `development.adoc`. The\n  check enforces both forms and hints when you get it wrong.\n- The ZookeeperCluster CRD is regenerated by **no** make target. Run `hack\u002Fzk-operator\u002Fupdate-crd.sh`\n  by hand; it needs network.\n- `tests\u002Fscripts\u002Fmanage_e2e_tests.sh` pins the Zookeeper *server* image separately, unchecked.\n\n## The minimum Kubernetes version is not a dependency\n\nThe `k8s.io\u002F*` libraries are an ordinary dependency, but the declared minimum supported Kubernetes\nis a support promise: `kubeVersion` in both charts plus the matrix in\n`docs\u002Fmodules\u002Fupgrade-notes\u002Fpages\u002Fupgrade-notes.adoc`, enforced by Helm at install time, so raising\nit stops existing users from upgrading. Nothing links the two, so a library bump cannot raise the\nfloor by accident — but it widens the gap between what the operator is built against and what it\nclaims to support. `make list-upgrades` prints declared, built and tested side by side: report that\ngap, never close it. **Never edit `kubeVersion` or the matrix during a sweep.** Raising the floor is\nits own PR, timed to a release, with an upgrade-notes entry and a `changed` entry in both charts. The\nexception is a bump that *forces* the floor — new libraries dropping an API the operator uses, or CRD\nschema older API servers reject — and then you stop, because the supported range is the first\ndecision.\n\n## Tier C notes\n\nTwo that need care rather than a bump:\n\n- The `golang` builder image in `build\u002FDockerfile` moves together with the `go` directive in\n  `go.mod` and the `go-version` matrix in CI, because the Makefile's gate rejects a mismatch either\n  way.\n- `artifacthub\u002Fah` in the Makefile is **untagged**, so `make lint` pulls `:latest`. Pinning it is\n  worthwhile but a deliberate change of its own.\n\nSome Tier C pins have already drifted (kind and Kubernetes differ between the e2e and smoke-test\nscripts; `hack\u002Ftest-upgrade.sh` names an old Zookeeper Operator). Do not fold a drift cleanup into a\nsweep — file it separately, or the diff stops being reviewable.\n\n## Do the upgrade\n\n1. `make list-upgrades`. Settle the Go toolchain target first, then the rest of the scope,\n   including any major-version interview.\n2. Edit `go.mod`, and `versions.props` if the Zookeeper Operator moves.\n3. `make mod-tidy`.\n4. If the Zookeeper Operator moved: `hack\u002Fzk-operator\u002Fupdate-crd.sh`, update the files listed above,\n   then `make check-zk-op-version` until it passes.\n5. `make install-dependencies` — installs the tools at the new pinned and derived versions.\n6. `make prepare` — the one command that makes a PR pass lint. Runs `fmt`, `generate`, `manifests`,\n   `fetch-licenses-list` and `mod-tidy` in the right order.\n7. `make test`, then repair fixtures.\n8. Add or consolidate the changelog entries.\n9. `make lint`, then `make test` again.\n\n### Regenerate, never hand-edit\n\n`make manifests` writes `config\u002F` **and** `helm\u002F` from one `controller-gen` run, transforming on the\nway, and `make check-manifests` diffs both trees recursively — a partial regeneration fails. Never\nhand-edit `helm\u002Fsolr-operator\u002Fcrds\u002Fcrds.yaml` (the three `config\u002Fcrd\u002Fbases` files concatenated under\na header) or `helm\u002Fsolr-operator\u002Ftemplates\u002Frole.yaml` (`config\u002Frbac\u002Frole.yaml` in Helm conditionals\nwith templated names). A `controller-gen` bump alone rewrites every CRD, because the annotation\nscript stamps a version line into each; several thousand changed lines is normal.\n\n### Lint targets run serially\n\n`check-mod`, `check-manifests` and `check-generated` each delete a shared scratch directory, so\n`make -j` has them destroy each other's work. `check-mod` also moves `go.mod`\u002F`go.sum` aside,\nre-tidies, then moves the originals back — interrupt it mid-way and the tree keeps the tidied files\nwhile the originals sit in a scratch directory `make clean` deletes. After interrupting, check\n`git diff go.mod` first.\n\n### The license list is platform-sensitive\n\n`fetch-licenses-list` is prefixed `GOOS=linux GOARCH=amd64` deliberately: `go-licenses` walks only\nthe current platform's build graph, so regenerating on macOS or ARM silently omits Linux-only\ndependencies and CI's byte-exact diff then fails. Always use the make target, never `go-licenses`\ndirectly. Do not re-sort the CSV; it is in the generator's native order.\n\n`make check-licenses` fails two ways. A `\u003C`\u002F`>` diff means the CSV is stale — regenerate it. A\ndisallowed-license complaint means a new transitive dependency landed under a license outside the\nallow-list, and **there is no override**: find a version that avoids it, or stop and raise it with\nthe PMC. Never edit the allow-list to make a build pass.\n\n## Fixing what a Kubernetes bump breaks\n\nThe controller tests boot a real API server through envtest and load the real CRDs, so an API bump\nchanges behaviour, not just signatures. Expect to repair test fixtures, not production code — past\nsweeps needed a toleration operator changed from `Exists` to `Equal`, and storage resource requests\nadded to PVC templates. One failure at a time, and for each ask whether it is a fixture encoding an\nold default or a real regression. A regression means fixing the controller and a changelog entry; so\ndoes any change to generated RBAC, which is user-visible.\n\nAll controller and e2e specs use focused Ginkgo nodes (`FDescribe`, `FContext`, `FIt`), so\n`GINKGO_EDITOR_INTEGRATION=true` is load-bearing. `make test` sets it; `go test .\u002Fcontrollers\u002F...`\nby hand without it fails confusingly on programmatic focus.\n\n## Changelog: both charts\n\nAdd entries to `artifacthub.io\u002Fchanges` in **both** `helm\u002Fsolr-operator\u002FChart.yaml` and\n`helm\u002Fsolr\u002FChart.yaml` — a YAML block scalar holding a list. `kind` accepts exactly `added`,\n`changed`, `deprecated`, `removed`, `fixed`, `security`. Follow the existing entries, including the\n`links:` convention of a `Github Issue` and\u002For `Github PR` pair. Malformed YAML fails\n`make check-helm`.\n\nWrite for a user deciding whether to upgrade, not a reviewer reading the diff:\n\n- Tight wording. One line per entry, no prose, no restating the diff.\n- Never list library bumps individually. One `changed` entry summarising the sweep.\n- Several sweeps land in one release cycle. If that grouped entry is already there from an earlier\n  one, update it instead of adding a second — the net span since the last release, not this PR's\n  delta — and add this PR to its `links:`. The separate-entry rules below still apply.\n- A separate entry for anything changing behaviour or requiring action: new RBAC permissions, a\n  bundled Zookeeper Operator bump, a changed default.\n- A CVE fix uses `kind: security` **and** flips `artifacthub.io\u002FcontainsSecurityUpdates` to `\"true\"`\n  in that chart. Once set in a cycle it stays set; a later CVE-free sweep must not flip it back.\n- A sweep with no user-visible effect still gets one `changed` entry.\n\nIf the bundled Zookeeper Operator moved, also add an entry to\n`docs\u002Fmodules\u002Fupgrade-notes\u002Fpages\u002Fupgrade-notes.adoc`; its matrices are hand-maintained.\n\nRelease-time interaction: the release process wipes `artifacthub.io\u002Fchanges` to a placeholder just\nafter a release branch is cut, so an entry added to `main` after that lands in the *next* release.\nAn upgrade belonging to the release being cut must merge before that step. That placeholder is two\ndummy entries (`Addition 1`, `Change 2`), not an empty list — replace them, don't append.\n\n## Verify before you commit\n\n1. `make lint`, serially. Covers zk version consistency, tidy, formatting, licenses, manifests,\n   generated code, charts, docs.\n2. `make test`.\n3. `git status --short`, then stage deliberately by naming paths. **Never `git add -A`** — the tree\n   often still holds an untracked `vendor\u002F` (6500+ files) or scratch notes. Confirm **both**\n   `git diff --exit-code` and `git status --short` are clean; CI's `check-git` only checks the\n   former, so an untracked generated file passes CI and breaks the next person.\n\nTreat any failure as unfinished work. Add `make smoke-test` if packaging could be affected; it needs\nDocker, kind and network, unpacks the source release and runs `make check` inside it.\n\nCI coverage: build-and-check runs on every PR; smoke-test skips doc-only paths but runs for\n`go.mod`, `go.sum`, `Makefile`, the license CSV and `helm\u002F`. The e2e workflow runs on a sweep's PR\ntoo — its path filter includes `go.mod`, `go.sum`, `Makefile`, `config\u002Fcrd\u002F`,\n`config\u002Fdependencies\u002F` and `helm\u002Fsolr-operator\u002F` — but only the `Label(\"pr\")` specs, on one\nKubernetes and Solr version. That makes a green e2e job partial evidence: after a Kubernetes-set\nbump, run the full suite with `make e2e-tests` locally, or dispatch `e2e-tests.yaml` with an empty\nlabel filter, and say which one in the PR.\n\n## Commit, then ask before pushing\n\nOne commit, or a few logically separate ones, with generated output in the same commit as the change\nthat generated it. Message is a line or two: imperative subject under ~70 characters matching the\nexisting log (`Upgrade almost all operator dependencies`), at most a sentence of body. Detail belongs\nin the PR description.\n\nThe fork is the remote whose URL is not `apache\u002Fsolr-operator`:\n\n```bash\ngit remote -v | grep -v apache\u002Fsolr-operator\n```\n\nSeveral candidates or none means ask which. **Never push without the user agreeing in this\nconversation**, and never push to the apache remote. After pushing, propose the PR description and\nlet the user open the PR unless they ask you to.\n\n### PR description\n\nA reviewer cannot read thousands of lines of regenerated CRDs, so the description says what to check\ninstead. Well under a screenful:\n\n- One sentence: which dependency sets moved, and why now — routine sweep, pre-release, CVE.\n- The sets and version spans crossed, not one bullet per module.\n- Everything not mechanical: each major bump and what it required; each changed fixture, and whether\n  it was stale or a real behaviour change; any RBAC or default that moved.\n- One line naming the changelog entries added.\n- What you ran: `make lint`, `make test`, and `make e2e-tests` if you did — CI's e2e is disabled.\n\nLeave out anything visible from the file list, and never paste regenerated diffs. Write each\nparagraph and bullet as one unwrapped line; GitHub reflows them.\n",{"name":5,"description":7,"when_to_use":45},"The user asks to upgrade dependencies, bump Go modules, update k8s\u002Fcontroller-runtime\u002FHelm libraries, refresh the dependency license list, handle a major-version or breaking dependency change, or prepare dependencies ahead of a release. Also when a dependency PR fails \"make check-licenses\" or \"make check-git\".","main","819a28376102bf9774bb5c39ba6126d8c8ef1177",".agents\u002Fskills\u002Fdependency-upgrade",151,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fsolr-operator","https:\u002F\u002Fsolr.apache.org\u002Foperator","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-10 19:45:50",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add apache\u002Fsolr-operator --skill dependency-upgrade",{"tool":61,"command":62},"bunx","bunx skills add apache\u002Fsolr-operator --skill dependency-upgrade",{"tool":64,"command":65},"pnpm","pnpm dlx skills add apache\u002Fsolr-operator --skill dependency-upgrade","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fsolr-operator\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdependency-upgrade\u002FSKILL.md",true,[],[]]