Skip to main content

From pull request to store

BetaThe plugin SDK and these pages are new. They change with each release, as developers use them and tell us what works.View as Markdown

Every plugin reaches the plugin store through a pull request to the sources repository. Volumio's CI builds the plugin from that pull request and runs the same checks as volumio-plugin check. A Volumio moderator then publishes the package the CI built: first to the beta channel, then to stable. You never upload a package yourself.

Not open yet

The CI does not build pull requests yet. Until it does, a plugin already in the store is updated with volumio plugin submit, as Publish your plugin explains. A new plugin made with the SDK waits for this flow.

The path of a release​

  1. You open a pull request. It adds or changes one plugin folder in the sources repository, with a higher version.
  2. The CI builds the plugin. It builds one package for each architecture in the plugin's arch field, inside Volumio's build container: Debian Bookworm and Node.js 20.
  3. The CI runs the gates. Each gate is a group of checks. The findings appear in the run summary of the pull request.
  4. A moderator reviews the pull request. A moderator reads the change and the findings, and asks for test credentials when the plugin needs an account.
  5. Volumio publishes the plugin to the beta channel. Users who turn on the beta channel get it.
  6. Volumio moves it to stable. Once it has run well in beta, every user gets it.

A pull request with a gate error stops at step 3. Warnings do not stop it.

Gates​

A gate is a group of automatic checks. Each check reports a finding with a rule id, such as G2.js.console-log, and a line that says how to fix it.

GateChecksRuns on every pull request
G1The manifest and the files every plugin hasYes
G2The code, install.sh, secrets, dependencies and their licencesYes
G3The build: the lockfile, native modules for each architectureYes
G4What installing the plugin changes on a real deviceNo
G5That the plugin survives a lost network or a service that stops answeringNo
G6Audio playback, for audio pluginsNo
G7Install, play, update and uninstall on each Volumio product familyNo
G8A review of code quality, error handling and the settings pageNo

G1, G2 and G3 run in volumio-plugin check on your computer, the same way as in the CI. Rules that no gate checks yet are part of the moderator's review. Plugin rules maps every rule to its check.

A plugin cannot switch a check off. check ignores inline eslint-disable comments, # shellcheck disable directives and .shellcheckrc files.

Plugins already in the store​

The store holds plugins published before these checks existed. For each of them, the SDK keeps a list of the findings the plugin had on that day. Those findings are warnings. A new finding in the same plugin is an error.

One plugin per function​

Each plugin has a function, such as tidal or web-radio, from the function registry. A device never runs two plugins with the same function. When a plugin for your function already exists, improve that plugin. When no function fits your plugin, use a new id in lowercase words joined by hyphens, such as my-radio, and name it in the Plugins forum. check reports a function outside the registry as a warning, so you can build the plugin while a moderator adds the function. Volumio does not enforce one plugin per function yet.

Beta and stable channels​

The store has two channels:

ChannelWho gets it
StableEvery Volumio user
BetaUsers who turn on Plugins test mode at http://<device>/dev

Why Volumio builds the package​

The package users install is the one the CI built from public source. Anyone can read what the plugin does, and a moderator knows the package matches the source. A package installed by hand or over SSH skips the checks, so it is for development only.

Was this page helpful?