Repository navigation
Release Checklist
This page is the list to walk through when you give the firmware a new version number, and when you regenerate the Unity package repository. Each step says what to change or run and what you must see.
Nothing here pushes anything. Publishing is the owner's step, after this list.
flowchart TB
v["the new version, for example 1.8.0"]
a["place 1: sfx-forge/sfx-forge.c<br/>FW_MAJOR, FW_MINOR, FW_PATCH"]
b["place 2: sfx-forge/firmware.json<br/>version"]
c["place 3: tools/make_unity_package.py<br/>FIRMWARE_VERSION"]
d["place 4: prose: README, MANUAL.md, UNITY.md"]
chk1["check-identity.mjs compares places 1 and 2"]
chk2["the package script compares place 3 with the built firmware"]
none["nothing checks the prose"]
v --> a
v --> b
v --> c
v --> d
a --> chk1
b --> chk1
c --> chk2
d --> none
The identity a device sends carries the version from the three defines, so if 1 and 2 differed the identity would lie. That is why a check compares them.
Change the number
-
sfx-forge/sfx-forge.c:FW_MAJOR,FW_MINOR,FW_PATCH. They stay in this file:tests/check-identity.mjsreads them from it. -
sfx-forge/firmware.json:"version". -
tools/make_unity_package.py:FIRMWARE_VERSION, and the texts in it that name the version. - The prose: README ("Status", "New in firmware ...", the identity table's "Today" column),
docs/MANUAL.md("This manual describes firmware ..."),docs/UNITY.md.
Update the tests that hold the version's bytes
-
tests/check-identity.mjs: the hex string of the whole identity names the version's three bytes. The same intests/dotnet/IdentityTests.cs.
Run everything
-
sh build.sh. Look for three things:- the line
ok the firmware's defines (1.8.0) and firmware.json ("1.8.0") say the same version, with your number; -
vibe-check's lineManifest SFX FORGE 1.8.0; - 26 lines that say
PASSED.
- the line
- Write down the new hash:
sha256sum build/sfx-forge.wasm. It is another one with every version, because the version is in the code. -
sh native/build.shifcore/ornative/changed, thendotnet run -c Release --project tests/dotnet -- .. The last line isPASSED. - The Unity tests: EditMode on
tests/unity-inspectors, thenVerifyand PlayMode onunity/Demo(Running The Tests).
Bring the pictures and videos up to date
- If pages or sound changed: the screenshots and figures (
node docs/shots.mjs,python docs/figures.py) and the two device videos (docs/video/make_videos.py). - If a K key got another page: first walk through every script that counts presses of that key (Firmware Add A Page Or Key).
Say what was run
- Say in the documents what was run with the new version and what was not. A test made with the version before (the link tests, the Unity runs) keeps its version in the documents until it is run again. Update What Is Tested with the dates and the numbers.
A new firmware version does not need a new format. If the change touched one, there is more to do.
| You changed | Then also |
|---|---|
| the song's layout | a new song format: the maintainer's guide. A format is only ever added; old songs must play the same samples |
| the number of a patch's values | a new patch format, and a new song format with it: Patch Format |
| a SysEx message or the identity | both sides: fw_protocol.h and SfxProtocol.cs (Link Protocol). Identity fields are only ever added at the end |
| the factory sounds or song | regenerate the song files (tests/make-demo-song.mjs); check-song-export.mjs compares them byte for byte |
| a function of the native library | raise sfxn_abi in native/sfx_native.c and Abi in SfxNative.cs together |
The Unity package has its own version: VERSION and RELEASED in tools/make_unity_package.py. The
package.json in this repository (0.1.0) is the source's and is rewritten by the script.
-
Make sure
sh build.shran: the script needsbuild/sfx-forge.zipwith the version inFIRMWARE_VERSION. -
Update the numbers in the script's front-page texts if a count changed (the .NET checks, the EditMode tests, the firmware's checks). They are prose in the script.
-
Run it:
python tools/make_unity_package.py # writes ../unity-sfx-forge -
It stops with a named error when something is missing or a check fails, and then the target is as it was. The checks it makes itself: every file has a
.metaand no two share a GUID; no e-mail address and no machine path in any file or zip; every relative link in every Markdown file resolves. It also stops whenLICENSEis not the text of the GNU General Public License, version 3: it copies that file asLICENSE.md, andADDITIONAL-PERMISSIONS.mdbeside it. -
Nothing in the target is edited by hand. To change it, change the source here, or the script, and run again.
-
git statusshows only what you meant to change.sfxforge.dllis there only ifcore/ornative/changed. - No machine path and no e-mail address in a tracked file. Nothing checks this repository's own files for you.
- No file that has a
.metawas renamed or moved: scenes and assets name it by GUID. - The header comments of the files you touched still say what is true.
- The licence is named the same everywhere:
GPL-3.0-or-laterin the SPDX line of the source files that have one, insfx-forge/firmware.json, in bothpackage.jsonfiles and in the README's Licence section. A new file among siblings that carry the SPDX line gets it too. - Nothing was added that came from somewhere else without its licence being one the GPL version 3 can take
in, and without a line in the package's
Third Party Notices.md(its text is in the package script). - The formatters are clean (the maintainer's guide).
- Running The Tests: the commands behind steps 6 to 9.
- What Is Tested: where step 12 is written down.
- Building From Source: the tools and the package script.
- Editing This Wiki: bring the wiki up to date too.
SFX FORGE, firmware 1.7.2 · Home · Glossary · What Is Tested · the pages are kept in the repository's wiki/ folder: Editing This Wiki
Start
Device
- Quick Start
- Controls And Pages
- Make A Sound
- The Five Engines
- Make A Beat
- Recording
- Finer Grids
- Time Signatures
- Perform
- Song And Arrangement
- Layers And Intensity
- Automation
- Mixer And Effects
- The Stage
- Saving And Reset
- Cheat Sheet
Unity: first steps
- Install
- Quick Start
- Concepts
- Choosing A Route
- One Shots
- Live Voices
- Held Sounds
- Variations
- Presets And Patches
Unity: music
Unity: link and tools
Unity: in practice
- Recipes
- Recipes: Music
- Recipes: Link
- Showcase Walkthrough
- Copy The Showcase Pattern
- Troubleshooting
- Testing Your Audio
Unity: reference and extending
Internals
- Architecture Overview
- Repository Map
- Sound Engine
- Patch Format
- Song Format
- Link Protocol
- Firmware Internals
- Add A Page Or Key
- Add An Engine
- Add A Setting
- Building From Source
- Running The Tests
- Release Checklist
About this wiki