Skip to content

fix(ci): pin nightly toolchain for rustfmt - #537

Open
Arowolokehinde wants to merge 1 commit into
bitcoindevkit:masterfrom
Arowolokehinde:fix-ci-fmt-nightly
Open

Arowolokehinde wants to merge 1 commit into
bitcoindevkit:masterfrom
Arowolokehinde:fix-ci-fmt-nightly

Conversation

@Arowolokehinde

Copy link
Copy Markdown

Fixes #535

Description

The CI fmt job ran cargo fmt on the stable toolchain resolved from rust-toolchain.toml, so the nightly-only options in rustfmt.toml (wrap_comments, comment_width, format_code_in_doc_comments) were silently ignored and never enforced. PRs could pass CI with formatting that just p would reject locally.

Point the fmt job at a pinned nightly (nightly-2026-08-01) with the rustfmt component, and pin the same version in the justfile recipes so CI and local just runs produce identical formatting output.

Before submitting

The CI fmt job ran cargo fmt on the stable toolchain resolved from
rust-toolchain.toml, so the nightly-only options in rustfmt.toml
(wrap_comments, comment_width, format_code_in_doc_comments) were
silently ignored and never enforced. PRs could pass CI with formatting
that just p would reject locally.

Point the fmt job at a pinned nightly (nightly-2026-08-01) with the
rustfmt component, and pin the same version in the justfile recipes so
CI and local just runs produce identical formatting output.

Fixes bitcoindevkit#535
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.91%. Comparing base (6fc6846) to head (d43f639).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #537   +/-   ##
=======================================
  Coverage   81.91%   81.91%           
=======================================
  Files          25       25           
  Lines        6535     6535           
  Branches      302      302           
=======================================
  Hits         5353     5353           
  Misses       1075     1075           
  Partials      107      107           
Flag Coverage Δ
rust 81.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ValuedMammal ValuedMammal 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.

ACK d43f639

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[cont_integration] fmt job should pin the nightly compiler

2 participants