Imported from GitHub aien-dev/interplane-mv#13 (code only)
GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).
Base b1022e6d0cd844152f946962a6562fb6245871f2 · Head 81adf0233a794c9d026d5b6c5006927dfa144953
greptile-apps[bot] commented on docs/external/nightdriver/565/BUILD.md line 34 on 2026-10-04 23:07 UTC
The setup installs PlatformIO in a virtual environment, but these commands call pio without activating it or using its executable path. If the host has no other PlatformIO installation, neither documented build starts. Use ~/.local/share/pio-venv/bin/pio or activate the environment first. This is a non-blocking reproducibility issue.
The authored script reproduces the documented venv installation in an isolated location and tests bare `pio` resolution with and without its bin directory on PATH, making the check reproducible.
Running the resolution check without the venv on PATH showed a failed lookup and `nice` invocation exiting 127, confirming the documented build command would not start.
Running the same resolution check with the venv bin directory on PATH found `pio` and printed PlatformIO Core version 6.2.0, confirming the PATH correction.
This is a comment left during a code review.
Path: docs/external/nightdriver/565/BUILD.md
Line: 33-34
Comment:
**Build commands cannot find PlatformIO**
The setup installs PlatformIO in a virtual environment, but these commands call `pio` without activating it or using its executable path. If the host has no other PlatformIO installation, neither documented build starts. Use `~/.local/share/pio-venv/bin/pio` or activate the environment first. This is a non-blocking reproducibility issue.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
These results report successful ESP32 compile-and-link checks with FastLED pinned to 3.10.1, while REPORT.md and upstream-pr-draft.md still say the fix was not compiled for ESP32. Readers cannot tell which testing status is current. Update both summaries to include the later pinned builds while retaining the limitation that nothing was run on hardware. This documentation inconsistency is non-blocking.
This is a comment left during a code review.
Path: docs/external/nightdriver/565/BUILD.md
Line: 36-40
Comment:
**Testing summaries are outdated**
These results report successful ESP32 compile-and-link checks with FastLED pinned to 3.10.1, while `REPORT.md` and `upstream-pr-draft.md` still say the fix was not compiled for ESP32. Readers cannot tell which testing status is current. Update both summaries to include the later pinned builds while retaining the limitation that nothing was run on hardware. This documentation inconsistency is non-blocking.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
### Issue 1
docs/external/nightdriver/565/BUILD.md:33-34
The setup installs PlatformIO in a virtual environment, but these commands call `pio` without activating it or using its executable path. If the host has no other PlatformIO installation, neither documented build starts. Use `~/.local/share/pio-venv/bin/pio` or activate the environment first. This is a non-blocking reproducibility issue.
### Issue 2
docs/external/nightdriver/565/BUILD.md:36-40
These results report successful ESP32 compile-and-link checks with FastLED pinned to 3.10.1, while `REPORT.md` and `upstream-pr-draft.md` still say the fix was not compiled for ESP32. Readers cannot tell which testing status is current. Update both summaries to include the later pinned builds while retaining the limitation that nothing was run on hardware. This documentation inconsistency is non-blocking.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
<details open><summary>Summary</summary>
Adds a compile-only record for two NightDriverStrip ESP32 environments with FastLED pinned to 3.10.1. On a clean PATH, the documented build commands cannot find PlatformIO because it was installed in a virtual environment. The existing report and upstream PR draft also still say ESP32 compilation was not done. Both documentation issues are non-blocking.
</details>
diff --git a/docs/external/nightdriver/565/BUILD.md b/docs/external/nightdriver/565/BUILD.md
new file mode 100644
index 0000000..4ad2ac8
--- /dev/null
+++ b/docs/external/nightdriver/565/BUILD.md
@@ -0,0 +1,51 @@
+# NightDriverStrip #565 fix: ESP32 compile check
+
+Revisions: upstream main `4d79c290` (baseline) and fork branch `fix/565-buffer-budget-8bit` (`8e3d3515`, one commit on top of `4d79c290`).
+Scope: compile and link only. Nothing was flashed or run on a device. No upstream action was taken.
+
+## Upstream CI
+`.github/workflows/CI.yml` runs `pio run -e <env>` for every env from `tools/show_envs.py` minus `config/ci_exclude.json`. At `4d79c290` the exclude list is `[]`, so CI builds all environments (about 60), including `m5demo` and `mesmerizer`. It runs on push, pull_request and workflow_dispatch, and installs the latest PlatformIO.
+
+## Fork CI
+Actions permissions on aien-dev/NightDriverStrip: `{"enabled":true,"allowed_actions":"all"}`.
+`gh run list -R aien-dev/NightDriverStrip --branch fix/565-buffer-budget-8bit` returned no runs, and `gh run list -R aien-dev/NightDriverStrip -L 3` also returned none. The workflow has not run on the fork. The cause was not investigated.
+
+## Toolchain (linux-aarch64, host `uname -m` = aarch64)
+- PlatformIO Core 6.2.0, in an isolated venv at `~/.local/share/pio-venv` (not inside any repo)
+- Platform espressif32 55.3.37 (pioarduino), framework-arduinoespressif32 3.3.7
+- toolchain-xtensa-esp-elf 14.2.0+20251107 (`xtensa-esp-elf-gcc` esp-14.2.0_20251107). It installed and ran natively on aarch64, so no toolchain was unavailable.
+
+## Finding: upstream main does not build with a fresh library resolve
+`lib_deps` has `fastled/FastLED @ ^3.10.1`. A fresh resolve picked FastLED 3.10.5, and both `m5demo` and `mesmerizer` failed on unmodified upstream main (and on the fix branch) at the same line:
+
+ include/hashing.h:44:8: error: using typedef-name 'using CRGB = struct fl::CRGB' after 'struct'
+ *** [.pio/build/m5demo/src/debug_cli.cpp.o] Error 1
+
+This is independent of the fix. Only 3.10.5 (failing) and 3.10.1 (passing) were tried. To get a baseline, a local, uncommitted edit pinned `fastled/FastLED @ 3.10.1` in `platformio.ini` in both worktrees. That edit is not part of the fix branch.
+
+## Commands
+ python3 -m venv ~/.local/share/pio-venv && ~/.local/share/pio-venv/bin/pip install platformio
+ git worktree add --detach ../nd565-main 4d79c290 # baseline; fix branch in ../nd565-fix
+ # in each worktree:
+ grep -v "^#define cszSSID" include/secrets.example.h > include/secrets.h
+ echo '#define cszSSID ""' >> include/secrets.h # same as CI
+ sed -i 's|FastLED @ ^3.10.1|FastLED @ 3.10.1|' platformio.ini # local pin, not committed
+ nice -n 19 pio run -j4 -e m5demo
+ nice -n 19 pio run -j4 -e mesmerizer
+
+## Results (FastLED 3.10.1)
+| env | board class | main 4d79c290 | fix 8e3d3515 |
+|---|---|---|---|
+| m5demo | classic ESP32, no PSRAM (changed `#else` branch is compiled) | SUCCESS | SUCCESS |
+| mesmerizer | ESP-WROVER, `USE_PSRAM=1` via `psram_lx6_flags` (changed branch is preprocessed out) | SUCCESS | SUCCESS |
+
+Size (`xtensa-esp32-elf-size` text/data/bss, and firmware.bin bytes):
+| env | main | fix | delta |
+|---|---|---|---|
+| m5demo | 1572464 / 644260 / 37105; bin 2193552; RAM 64680 B, Flash 2193143 B | identical | 0 |
+| mesmerizer | 1766432 / 891121 / 53980; bin 2634384; RAM 80596 B, Flash 2633972 B | identical | 0 |
+
+For `m5demo`, `systemcontainer.cpp.o` and `firmware.bin` differ by hash between the two revisions (the code did change) while section sizes are equal. Both revisions compile without errors. No warnings were reviewed beyond the build exit code.
+
+## Not covered
+Other envs (CI builds about 60), S3/octal-PSRAM envs, any runtime behaviour. No code change to the fix was needed.