This repository is public and stands alone. Comments and prose no longer describe another repository, its documents, hosts, network or runner sizing; each one states its own reason or is gone. - Workflow headers keep the conclusions (disposable runner with no outside secret, the if: guard is not a boundary, no fork pull requests, the image build's memory cap) and drop the description. - Isolation lines are worded as a property of this repository. - The denied image namespace stays in check_image_versions.py, described only as a namespace this repository's CI must not use. - CLAUDE.md and CONTRIBUTING.md gain the standing rule and the search to run when bringing content in from another repository. - ci image 0.2.29 -> 0.2.30: .pre-commit-config.yaml and requirements-dev.txt are image inputs. The ADR 0004 pointers, the README Roadmap, the skills-source mentions and released changelog entries stay as they are. Closes #108 Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
6.0 KiB
6.0 KiB
Contributing
- Open a pull request against
main. The forge does not allow self-registration, so only accounts the maintainer has created can open pull requests or issues for now. Fork pull requests are not a supported path: a fork controls its own workflow file. Workflows on fork pull requests get no secrets and a read-only token. To discuss a contribution, write to the address inSECURITY.md. - This repository stands alone: nothing public here (a tracked file, issue or pull request text or comment, release note or job output) refers to another repository of the maintainer's, its documents, hosts, network or namespaces, or states host sizing. When you bring content in from another repository, search the incoming diff for such mentions before committing, rewrite comments so they stand alone, and say in the pull request what you searched for.
- Commit messages follow Conventional Commits
(
feat:,fix:,docs:,ci:...). CI checks every commit. - Every user-visible change needs a changelog fragment in
changelogs/fragments/(antsibull-changelog format, a YAML file with a section such asminor_changes:orbugfixes:). Pure CI or docs changes usetrivial:. - Role variables carry the role name as a prefix (
<role>_<name>). - Third-party material needs an SPDX header, a
REUSE.tomlannotation (it overrides file headers) and an entry inNOTICE. - Set up the tooling once per clone with
scripts/dev-setup.sh: it creates a virtualenv with the pinned tools (requirements-dev.lock, the hashed lock ofrequirements-dev.txt), installs the pinned collections the roles call (requirements.yml, into.ansible/collections, so local lint resolves the versions CI does) and installs git hooks that find the tools (theansible-linthook,scripts/ansible-lint.sh, uses those collections, also from a barepre-commit run). Thenpre-commit run --all-filesbefore pushing. Agit pushrunsansible-test sanityon HEAD (scripts/ansible-test-sanity.sh, the Build job's check; the first run builds virtualenvs and takes minutes), so a finding only that test reports stops the push, not the Build check. - Never commit credentials, tokens or key material.
- Releases are cut by the maintainer: bump
versioningalaxy.yml, add arelease_summary:fragment, runantsibull-changelog releasein a release PR (commit the generatedCHANGELOG.rstandchangelogs/.plugin-cache.yaml), then push an annotatedvX.Y.Ztag.
Dependency and image updates
- A pin in
requirements-dev.txtis changed together with its lock: Renovate does both (pip-compile manager); by hand, runscripts/lock-requirements.sh(--upgrademoves transitive packages too; needs PyPI and Python 3.13) and commitrequirements-dev.lockin the same pull request. Installs usepip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt: pip refuses an unhashed package and any disagreement between the two files. Hook repositories in.pre-commit-config.yamlare pinned by commit SHA with the release in a# frozen: vX.Y.Zcomment; find the SHA withgit ls-remote <repo> "refs/tags/<tag>" "refs/tags/<tag>^{}"(the^{}line, when there is one). requirements-dev.txt,requirements-dev.lock,requirements.yml,.pre-commit-config.yamlandimages/**are inputs of the CI and molecule images. A pull request that changes one needs a higherversion:for that image in.gitea/workflows/image.yml(python3 scripts/bump_image_versions.pymakes the edit; theCheck image versions were bumpedstep enforces it). After the merge,image.ymlbuilds the image onmain, and a second pull request moves theimage:<version>@sha256:<digest>pins inlint.yml,build.ymlandmolecule.ymlto the printed digest. That second pull request touches noimage.ymltrigger path, so it rebuilds nothing.- These files are in
galaxy.ymlbuild_ignore: such bumps do not change the Collection or its version. A change consumers can see needs a changelog fragment, and only the maintainer bumps the version and tags. renovate.jsonconfigures dependency bumps (minor and patch automerge, majors by hand). Renovate runs for this repository in.gitea/workflows/renovate.yml(daily cron on the Collection's own runner, as a Kamino-only bot user (repository secretRENOVATE_BOT_TOKEN); no credential from anywhere else is used). To dry-run after changing the config: Actions > Renovate > Run workflow withdry_run=true, then read the debug log (the job fails on a failed clone or an ERROR problem). The dry run proves reads (and runs the post-upgrade task); whether the bot can push and open a pull request, and whether such pull requests start the PR workflows, only the first live run shows (open item, see CLAUDE.md). Pull requests fromrenovate/branches must passscripts/check_bot_pr_diff.py, which only allows version, tag, digest and pin lines.- Workflows must not mention
git.rkdr.net/defame1297/(an image namespace this repository's CI must not use); theCheck image pinsstep fails if they do.
Maintainer setup
Settings the workflows cannot enforce and the repository needs before it accepts outside contributions:
- Protect the
v*tags so only maintainers can create them. A tag run uses the workflow files of the tagged commit and may receive organisation secrets. - Protect
main: pull request required, with theLintandBuildchecks. Molecule has no path filter on pull requests (the job always starts and chooses its scenarios itself), so it can be made a required check as well; that is the operator's decision. - The image workflow (
.gitea/workflows/image.yml) tries the Actions job token first; Gitea 28 refuses it for an organisation's packages, so it pushes with the organisation secretsPACKAGE_PUSH_USERandPACKAGE_PUSH_TOKEN(a bot user with write access to the organisation's packages and a token with only thewrite:packagescope). Keep those the only credentials stored at organisation level.