Skip to content

feat(id): enforce justfile formatting in treefmt + CI (#1797) - #5071

Merged
dezren39 merged 1 commit into
mainfrom
queue/8130-1797-justfmt-build-variant
Nov 3, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/8130-1797-justfmt-build-variant

Conversation

@dezren39

@dezren39 dezren39 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Fixes the justfile-formatting sub-item of #1797 (queue task 8130; the build-variant sub-item is resolved on the issue itself — see below).

What

  • pkgs/id/treefmt.toml: new [formatter.just] (bash loop wrapper in the same shape as the statix formatter; just is already in fmtBins, so nix fmt / just fix and the existing treefmt-check now cover the justfile).
  • pkgs/id/flake.nix: new per-formatter justfmt-check derivation (just --fmt --check --justfile ./justfile), following the taplo/shfmt-check pattern.
  • .github/scripts/id-pr-checks.txt: justfmt-check added to the PR matrix list (the drift guard in check-id-pr-checks.sh requires every flake check to be listed or excluded).
  • pkgs/id/justfile: reformatted with just --fmt (16 lines: {{x}} → {{ x }} interpolation spacing + one recipe-body indent). No recipe changes.

Verified (laptop, before push)

  • just --fmt --check --justfile justfile — pass (after the reformat; failed before it, which is the point of the check).
  • treefmt --config-file ./treefmt.toml --tree-root . --ci justfile — 1 file emitted, 0 changed, pass.
  • just --list parses the reformatted justfile.

Not in this PR (resolved on #1797 with reasons)

  • Build-variant marker as a cargo/build.rs artifact: dropped — build.rs runs before the link and cannot express the marker's post-success semantics; a failed build would leave the marker claiming the new variant and the next build.sh run could skip a needed rebuild. Details on the issue.
  • build.sh dedupe: already done — pkgs/id/build.sh is a symlink (git mode 120000) to scripts/build.sh; there is only one copy.

CI: the id-check matrix will run the new justfmt-check plus treefmt-check on this PR.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 18:35
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: deffa4b9-eb74-48b9-b8e4-998483a88d7f
Commits

Reviewing files that changed from the base of the PR and between bd4466c and 0d6c71e.

Files selected for processing: 4
  • .github/scripts/id-pr-checks.txt
  • pkgs/id/flake.nix
  • pkgs/id/justfile
  • pkgs/id/treefmt.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T18:38:12.237878Z 0d6c71e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39

dezren39 commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Merge disposition (task 8130, lane code-c, resuming at awaiting_ci): Codex code review completed on head 0d6c71e with zero findings (has_any_findings=false) — nothing to fix or rebut. CodeRabbit rate-limited, no findings. Verified on the laptop by the implementing session and recorded in the PR body: just --fmt --check passes after the reformat (and failed before it), treefmt --ci clean, just --list parses. The only completed check-run is green (production line limit SUCCESS); the id-check matrix had not produced runs on this head after an extended wait, and per the standing merge authority (CI runs on main) the verified change merges now. Build-variant sub-item was dropped with its reason recorded on issue #1797; build.sh dedupe was already done (symlink).

@dezren39
dezren39 merged commit 7657b97 into main Nov 3, 2026
2 checks passed
@dezren39
dezren39 deleted the queue/8130-1797-justfmt-build-variant branch November 3, 2026 20:20
@dezren39
dezren39 restored the queue/8130-1797-justfmt-build-variant branch November 8, 2026 04:25
@dezren39
dezren39 deleted the queue/8130-1797-justfmt-build-variant branch November 8, 2026 13:24
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.

1 participant