mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 12:54:29 +01:00
A YouTube user (V10.7.6): "I pressed record then play and entered a few notes, pressed stop and pressed
play to listen and it played nothing; if I then press record it plays notes I did not enter". After a GEN
song (gen.c: live.mode = 1, kept with a saved song's rows over a power cycle) PLAY played the song, which
does not record (song_play.c chain_start: song.rec off while it plays, REC's light out); STOP brought the
music before PLAY back and PLAY played the song again. Now, a track armed, PLAY on any page but TIMELINE
plays and records the loop (ui_input.c B_PLAY); REC off, PLAY plays the song as before. NEW PROJECT
(system_init) left SONG mode on with no rows: PLAY did nothing ("ADD A SONG ROW"); it is LOOP now, as at
power-on (gen_clean's own reset folded into it).
rec_play_test: REC PLAY keys STOP PLAY from power-on, NEW PROJECT, a GEN song then NEW PROJECT, after a
GEN song (SONG mode, and over a power cycle), the song again with REC off and the take kept after it,
TIMELINE's row loop and STOP keeping the take (two checks fail on the old code). +16 B (148 B free).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
117 lines
5.3 KiB
YAML
117 lines
5.3 KiB
YAML
name: ADD15 private candidate validation
|
|
on:
|
|
push:
|
|
branches: [codex/add15-private]
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-24.04
|
|
env:
|
|
AC79_SDK: /home/runner/fw-AC79_AIoT_SDK
|
|
JIELI_TOOLCHAIN: /home/runner/.jieli/toolchain
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
- run: pip install Pillow==12.3.0 numpy==2.3.5 fonttools==4.61.1
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.jieli
|
|
~/fw-AC79_AIoT_SDK/cpu/wl82/tools
|
|
key: jieli-ac79-v1.2.1
|
|
- name: Toolchain and SDK
|
|
run: |
|
|
retry() { for d in 0 5 15 30 60; do sleep $d; "$@" && return 0; done; return 1; }
|
|
T=$HOME/fw-AC79_AIoT_SDK/cpu/wl82/tools
|
|
[ -e "$HOME/.jieli/toolchain" ] || retry sh tools/get_toolchain.sh "$HOME/.jieli"
|
|
if [ ! -s "$T/uboot.boot" ] || [ ! -s "$T/cfg_tool.bin" ] || [ ! -s "$T/cfg/eq_cfg_hw.bin" ]; then
|
|
rm -rf "$HOME/fw-AC79_AIoT_SDK"
|
|
retry git clone --filter=blob:none --no-checkout https://gitee.com/Jieli-Tech/fw-AC79_AIoT_SDK.git "$HOME/fw-AC79_AIoT_SDK"
|
|
cd "$HOME/fw-AC79_AIoT_SDK"
|
|
git sparse-checkout set --no-cone /cpu/wl82/tools/uboot.boot /cpu/wl82/tools/cfg_tool.bin /cpu/wl82/tools/cfg/eq_cfg_hw.bin
|
|
retry git checkout d179b4484759423312073f5fbb232501aa491047
|
|
fi
|
|
- name: Whole sequence clipboard
|
|
run: |
|
|
python3 -c "import sys; sys.path.insert(0, 'tools'); import build; build.generate()"
|
|
mkdir -p build/rec
|
|
cc -O1 -w -fsanitize=bounds -fno-sanitize-recover=bounds -Ibuild/gen -Ifirmware/src -Itests tests/seq_clipboard_test.c -lm -o build/rec/seq_clipboard
|
|
build/rec/seq_clipboard | tee build/rec/seq-clipboard.log
|
|
- name: Components, acoustic storage and audio
|
|
run: |
|
|
for t in step_extensions acoustic_store drum_acoustic string_add project; do
|
|
cc -O1 -w -fsanitize=bounds -fno-sanitize-recover=bounds -Ibuild/gen -Ifirmware/src -Itests tests/${t}_test.c -lm -o build/rec/$t
|
|
build/rec/$t | tee build/rec/$t.log
|
|
done
|
|
- name: Target image, memory and DSP budgets
|
|
run: |
|
|
python3 tools/build.py
|
|
git worktree add --detach /tmp/rec-base "$(cat tests/REC_BASE)"
|
|
(cd /tmp/rec-base && python3 tools/build.py)
|
|
mkdir -p build/rec
|
|
BUDGET_UPDATE=1 python3 tests/target_budget.py /tmp/rec-base/build/felucca.dis /tmp/rec-base-budget.txt
|
|
# STRING restores the already implemented par12 feedback algorithm. Compare that
|
|
# engine to its donor; all other engines keep the exact ADD public baseline budget.
|
|
git worktree add --detach /tmp/string-base 527c7e4
|
|
(cd /tmp/string-base && python3 tools/build.py)
|
|
python3 - <<'PYCODE'
|
|
import runpy
|
|
from pathlib import Path
|
|
mod=runpy.run_path('tests/target_budget.py',run_name='target_cost_helpers')
|
|
value=mod['cost'](mod['functions']('/tmp/string-base/build/felucca.dis')['string_render'])['cost']
|
|
p=Path('/tmp/rec-base-budget.txt');lines=p.read_text().splitlines()
|
|
p.write_text('\n'.join(f'string_render {value}' if x.startswith('string_render ') else x for x in lines)+'\n')
|
|
print('STRING donor budget:',value,'(same +10% tolerance; other engines unchanged)')
|
|
PYCODE
|
|
python3 tests/target_budget.py build/felucca.dis /tmp/rec-base-budget.txt
|
|
- name: REC gesture and undo regression tests
|
|
run: |
|
|
mkdir -p build/rec
|
|
cc -O1 -w -Ibuild/gen -Ifirmware/src -Itests tests/rec_workflow_test.c -lm -o build/rec/rec_workflow
|
|
build/rec/rec_workflow | tee build/rec/controls.log
|
|
cc -O1 -w -Ibuild/gen -Ifirmware/src -Itests tests/rec_play_test.c -lm -o build/rec/rec_play
|
|
build/rec/rec_play | tee build/rec/rec_play.log
|
|
- name: Timing compared against exact base
|
|
run: |
|
|
cc -O1 -w -Ibuild/gen -I/tmp/rec-base/firmware/src -I/tmp/rec-base/tests /tmp/rec-base/tests/micro_test.c -lm -o build/rec/micro_base
|
|
cc -O1 -w -Ibuild/gen -Ifirmware/src -Itests tests/micro_test.c -lm -o build/rec/micro_new
|
|
set +e
|
|
build/rec/micro_base > build/rec/timing-base.log
|
|
rec_base_exit=$?
|
|
build/rec/micro_new > build/rec/timing-new.log
|
|
rec_new_exit=$?
|
|
set -e
|
|
test "$rec_base_exit" = "$rec_new_exit"
|
|
cmp build/rec/timing-base.log build/rec/timing-new.log
|
|
cat build/rec/timing-new.log
|
|
test "$rec_new_exit" -le 1
|
|
echo "Timing output and exit status match the original firmware exactly."
|
|
- uses: mymindstorm/setup-emsdk@v14
|
|
with:
|
|
version: 6.0.11
|
|
- name: Fresh and stored-project boot in WASM
|
|
run: |
|
|
sh web/emu/build.sh
|
|
node tests/add15_boot_test.mjs build/emu/felucca.wasm
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: rec-firmware
|
|
path: |
|
|
build/felucca.fwsc
|
|
build/felucca.check.txt
|
|
build/felucca.map
|
|
build/layout.ld
|
|
build/felucca.o
|
|
build/felucca.dis
|
|
tools/audio_layout.txt
|
|
build/rec/*.log
|
|
|
|
|