Skip to content

Align with the copier template, self-hosted-ready CI and release automation - #3

Merged
shaygun merged 4 commits into
mainfrom
chore/align-copier-template
Nov 26, 2026
Merged

shaygun merged 4 commits into
mainfrom
chore/align-copier-template

Conversation

@shaygun

@shaygun shaygun commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Four commits, meant to be rebase-merged so release-please sees each one:

  • chore: align the project with the salt-extension copier template. Generated with salt-extension-copier 0.10.0 (answers in .copier-answers.yml). Brings in the template's pre-commit hooks, nox sessions, Sphinx setup, coverage settings, NOTICE and the developer helpers. The extension code, tests, guides and workflows stay ours. Also fixes the LICENSE copyright line.
  • ci: run on a NodeRings self-hosted runner when NODERINGS_RUNNER is set.
    • Jobs ask for [self-hosted, noderings] when the variable is true and fall back to ubuntu-latest otherwise. Fork pull requests always stay on GitHub-hosted runners.
    • CI covers pre-commit, unit tests on Salt 3006/3007/3008, the template docs session and a package check (build, twine check, wheel install, Salt loader).
    • A single CI result check is for branch protection.
    • Runner setup is in .github/self-hosted-runner.md.
  • ci: automate releases with release-please and publish to PyPI. Uses the release bot App. release.yml builds and attests the package, publishes to PyPI with trusted publishing from the pypi environment (skipped with a warning until PYPI_TRUSTED_PUBLISHING=true), then publishes the GitHub release.
  • feat: Salt Cloud driver plus execution and state modules… carries Release-As: 0.1.0 and replaces the hand-written 0.1.0 notes with the generated changelog.

Generated with salt-extension-copier 0.10.0 (answers in .copier-answers.yml) so
`copier update` keeps the project in step with the template. Adopted the
template's pre-commit hooks (CLI example and autodoc checks, salt-rewrite,
bandit, pylint via nox, actionlint), noxfile sessions, Sphinx setup
(saltdomain, sitevars, linkcheck and docs coverage), coverage settings,
NOTICE and the developer helpers. The extension code, tests, guides and the
GitHub workflows stay project-specific.

Also fixes the LICENSE copyright line, documents the utils package in the
API reference, and silences unused-argument warnings in the test fakes.

Signed-off-by: NodeRings <17057583+shaygun@users.noreply.github.com>
Jobs ask for [self-hosted, noderings] when the repository variable
NODERINGS_RUNNER is true and fall back to ubuntu-latest otherwise. Pull
requests from forks always use GitHub-hosted runners.

CI now runs the template's pre-commit hooks, the nox unit test session across
Salt 3006 to 3008, the template docs session (linkcheck, coverage, HTML), and a
package check: build, twine check, then install the wheel and confirm that
salt-call loads the execution and state modules. A single "CI result" job
collects the results for branch protection. Actions are pinned to commit SHAs.

.github/self-hosted-runner.md explains the recommended runner (a dedicated
NodeRings VM, registered at the repository level) and how to switch over.

Signed-off-by: NodeRings <17057583+shaygun@users.noreply.github.com>
release-please (release bot App token) keeps a release pull request that
writes CHANGELOG.md; merging it pushes vX.Y.Z and a draft release. The tag
starts release.yml, which builds the sdist and wheel on GitHub-hosted
runners, attests their provenance, publishes to PyPI with trusted
publishing from the pypi environment (skipped with a warning until
PYPI_TRUSTED_PUBLISHING is true), then uploads the files to the release and
publishes it. The version comes from the tag through setuptools_scm, so the
simple release type only maintains the changelog and the manifest.

Dependabot commits now use the ci and build prefixes. CONTRIBUTING
documents Conventional Commits, CI and the one-time PyPI setup.

Signed-off-by: NodeRings <17057583+shaygun@users.noreply.github.com>
…s VMs, DNS, firewall rulesets and SSH keys

First release. The execution module covers virtual machines (order, start,
stop, restart, reinstall, tags, firewall), DNS zones and records with DNSSEC,
firewall rulesets with ordered rules, SSH keys and the marketplace catalog.
The state module has present/absent states for SSH keys, DNS zones and
records, firewall rulesets and virtual machines, all supporting test=True.
The Salt Cloud driver orders servers by plan code and city, bootstraps a
minion over SSH, and lists, starts, stops, reboots and destroys them.

The changelog is generated by release-please from now on, so the
hand-written notes are removed.

Release-As: 0.1.0
Signed-off-by: NodeRings <17057583+shaygun@users.noreply.github.com>
@shaygun
shaygun force-pushed the chore/align-copier-template branch from d53772e to b32fcbe Compare November 26, 2026 00:58
@shaygun
shaygun merged commit b32fcbe into main Nov 26, 2026
9 checks passed
@shaygun
shaygun deleted the chore/align-copier-template branch November 26, 2026 01:02

This branch was previously deployed

1 inactive deployment
github-pages — b32fcbe9 Deployed Nov 26, 2026 by shaygun via Deploy to GitHub Pages #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant