From pull request to store
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.
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
- You open a pull request. It adds or changes one plugin folder in the sources repository, with a higher
version. - The CI builds the plugin. It builds one package for each architecture in the plugin's
archfield, inside Volumio's build container: Debian Bookworm and Node.js 20. - The CI runs the gates. Each gate is a group of checks. The findings appear in the run summary of the pull request.
- 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.
- Volumio publishes the plugin to the beta channel. Users who turn on the beta channel get it.
- 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.
| Gate | Checks | Runs on every pull request |
|---|---|---|
| G1 | The manifest and the files every plugin has | Yes |
| G2 | The code, install.sh, secrets, dependencies and their licences | Yes |
| G3 | The build: the lockfile, native modules for each architecture | Yes |
| G4 | What installing the plugin changes on a real device | No |
| G5 | That the plugin survives a lost network or a service that stops answering | No |
| G6 | Audio playback, for audio plugins | No |
| G7 | Install, play, update and uninstall on each Volumio product family | No |
| G8 | A review of code quality, error handling and the settings page | No |
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:
| Channel | Who gets it |
|---|---|
| Stable | Every Volumio user |
| Beta | Users 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.