Skip to content

alut: zero rest of buffer to match agave wire encoding #10052

Merged
ripatel-fd merged 1 commit into
firedancer-io:mainfrom
intrigus-lgtm:intrigus/fix/alut-test
Jun 3, 2026
Merged

alut: zero rest of buffer to match agave wire encoding #10052
ripatel-fd merged 1 commit into
firedancer-io:mainfrom
intrigus-lgtm:intrigus/fix/alut-test

Conversation

@intrigus-lgtm

@intrigus-lgtm intrigus-lgtm commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 3, 2026 13:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a Makefile lint target and CI job to catch silent $(call ...) typos and ensure make-unit-test targets are registered to run by default, while fixing/annotating several existing Local.mk test registrations.

Changes:

  • Introduce make lint (and GitHub Actions workflow) to validate Local.mk macro calls and built-vs-run unit tests.
  • Fix several Local.mk issues: add missing run-unit-test registrations and annotate intentional exceptions.
  • Add zero-padding in fd_alut_state_encode payload buffer.

Reviewed changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/vinyl/Local.mk Annotates a unit test as intentionally not auto-run (requires multi-tile setup).
src/util/wksp/Local.mk Adds lint opt-out annotation for a problematic test and adjusts run registrations.
src/util/tpool/Local.mk Registers test_tpool to run by default.
src/util/tmpl/Local.mk Registers additional template/map/sort tests to run by default.
src/util/simd/Local.mk Fixes a typo so a SIMD unit test is actually run.
src/util/shmem/Local.mk Registers test_shmem to run by default.
src/util/sandbox/Local.mk Registers test_sandbox to run by default when supported.
src/util/net/Local.mk Annotates test_pcap as intentionally not auto-run (needs CLI input).
src/util/log/Local.mk Registers test_log to run by default.
src/util/bits/Local.mk Registers test_bits_tg to run by default.
src/tango/cnc/Local.mk Annotates test_cnc as intentionally not auto-run (multi-tile requirement).
src/flamenco/runtime/fd_alut.h Zero-pads remaining payload bytes after encoding.
src/flamenco/runtime/Local.mk Registers additional flamenco unit tests to run by default.
src/flamenco/log_collector/Local.mk Annotates a currently-broken test as intentionally not auto-run.
src/flamenco/accdb/Local.mk Registers test_accdb_v0 to run by default.
src/discof/restore/Local.mk Annotates a unit test as intentionally not auto-run (requires CLI arg).
src/discof/forest/Local.mk Annotates a currently-broken test as intentionally not auto-run.
src/disco/keyguard/Local.mk Registers test_keyload to run by default.
src/choreo/eqvoc/Local.mk Annotates a currently-broken test as intentionally not auto-run.
src/choreo/Local.mk Registers test_choreo_base to run by default.
src/ballet/sbpf/Local.mk Annotates a unit test as intentionally not auto-run (requires CLI arg).
src/ballet/reedsol/Local.mk Registers test_reedsol to run by default.
src/ballet/pb/Local.mk Registers test_pb to run by default.
src/ballet/lthash/Local.mk Registers test_lthash to run by default.
src/ballet/hmac/Local.mk Fixes a typo so test_hmac is actually run.
src/ballet/bigint/Local.mk Fixes a typo in the header-list macro name.
src/ballet/aes/Local.mk Registers test_aes to run by default.
contrib/lint/check_makefiles.py Adds the Local.mk linter (macro-name validation + built-but-not-run detection).
config/everything.mk Adds lint target + help text and wires it into aux rules.
.github/workflows/on_pull_request.yml Adds a lint job to PR CI (non-draft only).
.github/workflows/lint.yml New reusable workflow that runs make lint.

Comment thread src/flamenco/runtime/fd_alut.h
Comment thread contrib/lint/check_makefiles.py Outdated
Comment on lines +88 to +90
m = re.match(r"\s*([A-Za-z0-9_.+-]+)\s*[:!?]?=", line)
if m:
names.add(m.group(1))
Comment thread src/util/wksp/Local.mk Outdated
$(call make-unit-test,test_wksp_admin,test_wksp_admin,fd_util)
$(call make-unit-test,test_wksp_user,test_wksp_user,fd_util)
$(call make-unit-test,test_wksp_helper,test_wksp_helper,fd_util)
$(call make-unit-test,test_wksp_helper,test_wksp_helper,fd_util) # lint-no-run-unit-test, appears broken?

@ripatel-fd ripatel-fd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you split up the CI changes and the ALUT fix please?
For CI, a few of those tests are included in "script tests" instead, btw.

Fixes test_wire_encode_none_matches_agave
FAIL: fd_memeq( actual, expected, sizeof(expected)
@intrigus-lgtm intrigus-lgtm force-pushed the intrigus/fix/alut-test branch from d1ddff1 to 631a076 Compare June 3, 2026 16:52
@intrigus-lgtm

Copy link
Copy Markdown
Contributor Author

Rebased.

@ripatel-fd ripatel-fd merged commit 0f1c31c into firedancer-io:main Jun 3, 2026
17 checks passed
@intrigus-lgtm intrigus-lgtm deleted the intrigus/fix/alut-test branch June 3, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants