Conversation
… tar.gz, zip) The ESP32-C2 build was failing with "not an lzma file" because framework_esp32.py hardcoded tarfile.open(archive_path, "r:xz"). Changed to auto-detect format using "r:*" for tar archives and zipfile for .zip archives. Also added format-aware magic byte validation and fixed the esp32c2.ino test sketch to use a specific GPIO pin instead of LED_BUILTIN which may not be defined. Agent-Logs-Url: https://github.com/FastLED/fbuild/sessions/565e62a0-9fa2-4594-b7b0-0ef03f2489b9 Co-authored-by: zackees <6856673+zackees@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FastLED/fbuild/sessions/565e62a0-9fa2-4594-b7b0-0ef03f2489b9 Co-authored-by: zackees <6856673+zackees@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Test ESP32-C2 and fix build badge issues
Fix ESP32-C2 build: support multiple archive formats in framework extraction
Mar 26, 2026
zackees
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ESP32-C2 CI builds fail with
tarfile.ReadError: not an lzma filebecauseframework_esp32.pyhardcodestarfile.open(path, "r:xz")for all framework archives, but pioarduino packages may use.tar.gzor.zip.Changes
src/fbuild/packages/framework_esp32.py: Usetarfile.open(path, "r:*")for auto-detection, addzipfileextraction path, extend magic byte validation to cover gzip and zip formatstests/esp32c2/esp32c2.ino: ReplaceLED_BUILTIN(undefined on C2) with explicitGPIO 8tests/unit/packages/test_framework_archive_formats.py: 7 tests covering magic byte validation and extraction for.tar.xz,.tar.gz,.zip, plus a regression test proving"r:xz"fails on.tar.gzWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
example.com/usr/bin/python python -m pytest tests/unit/packages/test_framework_archive_formats.py -v(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.