Skip to content

fix(test): use fbuild_paths in compile_scratch_root test (Dylint red on main) - #1586

Merged
zackees merged 1 commit into
mainfrom
fix/dylint-raw-fbuild-path
Sep 29, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/dylint-raw-fbuild-path

Conversation

@zackees

@zackees zackees commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

#1582 added compile_scratch_root_is_the_object_dir_not_the_project with hand-spelled .fbuild/build literals. Dylint's ban_raw_fbuild_path rejects them (4 errors in crates/fbuild-build-engine/src/compiler_tests.rs). main's Dylint run after the merge was cancelled, so this landed unnoticed, and it now fails Dylint on every PR (e.g. #1584, run 36537233036).

Same assertions, with the paths built from fbuild_paths::FBUILD_DIR_NAME / BUILD_DIR_NAME, as elsewhere in that file. The test passes, clippy is clean, and there are no other raw .fbuild literals in #1582's diff.

Summary by CodeRabbit

  • Tests
    • Updated build test paths to use shared directory names for both absolute and project-relative object-file inputs.

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: FastLED/fbuild/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: b3a022c3-f959-4121-98c5-2a6c863a2273

📥 Commits

Reviewing files that changed from the base of the PR and between f4528f0 and 0c75e97.

📒 Files selected for processing (1)
  • crates/fbuild-build-engine/src/compiler_tests.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The compile_scratch_root test now builds object paths and the expected scratch root from FBUILD_DIR_NAME and BUILD_DIR_NAME constants. It checks absolute and project-relative object paths.

Changes

Scratch root path test

Layer / File(s) Summary
Build test paths from constants
crates/fbuild-build-engine/src/compiler_tests.rs
The test uses directory-name constants to build object paths and the expected scratch root. It checks both absolute and project-relative object paths.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 0c75e

The test still covers absolute and project-relative object paths using the same expected scratch root. No concrete merge-blocking risk is indicated; the focused test could not run in the offline environment because logos was unavailable.

Architecture Summary

Architecture risk: 🔵 Low · up to 0c75e

The change affects 1 system.

Changed systems: crates

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — crates (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in crates/fbuild-build-engine/src/compiler_tests.rs: The test replaces hard-coded .fbuild/build/o paths and expected values with paths assembled from the directory-name constants. It continues to assert that both absolute and project-relative object paths resolve to the absolute object directory as the scratch root.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the test fix and the use of fbuild_paths. It matches the main change described in the pull request.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

#1582's test spelled '.fbuild/build' by hand, which Dylint's
ban_raw_fbuild_path rejects; main's Dylint run was cancelled so it
landed red and now fails every PR's Dylint check. Same assertions,
built from FBUILD_DIR_NAME / BUILD_DIR_NAME.
@zackees
zackees force-pushed the fix/dylint-raw-fbuild-path branch from 1ab7710 to 0c75e97 Compare September 29, 2026 08:33
@zackees
zackees merged commit c65f099 into main Sep 29, 2026
20 of 22 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Sep 30, 2026
@zackees
zackees deleted the fix/dylint-raw-fbuild-path branch October 16, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant