Skip to content

Bump fbuild 2.2.18 → 2.2.20 to restore and the regression gate #2946

Closed

Description

@zackees

Goal

Bump `fbuild==2.2.18` → `fbuild==2.2.20` in `pyproject.toml` so `bash bloat esp32s3` (and therefore the Stage-6 bloat-regression CI gate from #2886) can actually run.

Parent: #2886 — measurement infrastructure.

Symptom (post-#2945)

PR #2945 bumped `astral-sh/setup-uv` from v3 → v6 and unstuck the bloat-regression workflow's setup step. The workflow now reaches the actual test step and fails there with:

```
esp32s3-bloat-regression: invoking `bash bloat esp32s3 --build --no-summary` ...
Bloat: `fbuild symbols --help` returned but doesn't mention the symbols/bloat subcommand. Likely a stale fbuild binary.
esp32s3-bloat-regression: `bash bloat esp32s3` exited 1 — cannot enforce regression gate.
```

Root cause

`pyproject.toml:41` pins `fbuild==2.2.18`. `ci/bloat.py:142-171` (`assert_fbuild_has_symbols`) checks that `fbuild symbols --help` mentions the subcommand and rejects with the message above when it doesn't.

`ci/bloat.py:158-162` even documents the cause directly:

```
Bloat: `fbuild symbols` rejected. fbuild 2.2.18 (the released
wheel) does NOT carry the symbols subcommand — it was merged
to fbuild#main after the 2.2.18 tag. Rebuild fbuild from main
(or wait for the 2.2.19 wheel) and drop the binary into
.venv/Scripts/fbuild.exe.
```

The 2.2.19 wheel was superseded by 2.2.20 (currently the latest on PyPI). The 2.2.20 GitHub release notes confirm the bloat/symbols subcommand is present:

(There is no v2.2.19 GitHub release tag — fbuild jumped from v2.2.18 → v2.2.20 directly.)

Deliverable

`pyproject.toml` — bump fbuild pin

```diff

  • "fbuild==2.2.18",
  • "fbuild==2.2.20",
    ```

Update the pin comment to reflect the 2.2.20 contents:

Preserve the prior pin comments (2.2.15-2.2.18) for context.

`uv.lock` — regenerate

`uv lock` (or equivalent) so the lock matches the new constraint.

`ci/bloat.py:158-162` — stale guidance

Remove the "rebuild fbuild from main / wait for 2.2.19 wheel" remark from the error message; it's no longer accurate now that 2.2.20 ships the subcommand.

Acceptance

  1. `bash bloat esp32s3 --build --no-summary` runs to completion locally (produces `.build/symbols/esp32s3/report.json` + `report.md`).
  2. `uv run python tests/test_esp32s3_bloat_regression.py` passes locally (flash ≤ pinned baseline 339,962 B).
  3. On this PR's bloat-regression run: the workflow reaches the gate step and reports a real verdict (pass or honest fail with a measured flash number — not the "stale fbuild" error).
  4. `bash lint` passes.

Out of scope

  • Pinning fbuild more loosely (e.g. `>=2.2.20,<2.3`). Keeping the exact-version pin matches the existing convention.
  • Ratcheting `tests/data/esp32s3_bloat_baseline.txt`. If the post-merge run reveals a drift, file a follow-up.

Related

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions