Repository navigation
docs: refresh onboarding and prepare v3.0.0 with CodeRabbit OSS reviews #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
DF-wu
wants to merge
3
commits into
master
Choose a base branch
from
docs/onboarding-release-coderabbit
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json | ||
| language: en-US | ||
| enable_free_tier: true | ||
| tone_instructions: >- | ||
| Use concise engineering English. Prioritize actionable correctness, security, | ||
| and regression findings with concrete evidence. Avoid style-only nitpicks, | ||
| praise, and repeated summaries. | ||
| reviews: | ||
| profile: chill | ||
| auto_approvals: | ||
| enabled: true | ||
| high_level_summary: false | ||
| poem: false | ||
| in_progress_fortune: false | ||
| sequence_diagrams: false | ||
| suggested_labels: false | ||
| suggested_reviewers: false | ||
| auto_review: | ||
| enabled: true | ||
| auto_incremental_review: true | ||
| auto_pause_after_reviewed_commits: 0 | ||
| drafts: false | ||
| base_branches: | ||
| - ".*" | ||
| path_instructions: | ||
| - path: "src/**" | ||
| instructions: >- | ||
| Check Bash quoting, numeric and configuration validation, bounded external | ||
| commands, temperature aggregation, fan-curve boundaries, and fail-safe or | ||
| automatic-restoration regressions. Preserve TUI configuration round trips | ||
| and redaction. Do not suggest live hardware commands as verification. | ||
| - path: "docker-compose.yml" | ||
| instructions: >- | ||
| Check environment defaults, read-only secret mounts, device access and | ||
| persistent logs against the controller's runtime requirements. Preserve | ||
| explicit opt-in for optional temperature sources and hardware access. | ||
| chat: | ||
| auto_reply: false | ||
| art: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Changelog | ||
|
|
||
| ## Unreleased — proposed v3.0.0 | ||
|
|
||
| This is a release proposal, not a published version. The previous published release is [v2.0.1](https://github.com/DF-wu/iDRACFanSpeedControl/releases/tag/v2.0.1), dated 2024-10-23. Review the [complete changes since v2.0.1](https://github.com/DF-wu/iDRACFanSpeedControl/compare/v2.0.1...master) and [publication checklist](docs/RELEASING.md). | ||
|
|
||
| ### Release notes | ||
|
|
||
| - Reworked Bash controller with validated configuration, manual/once/continuous modes, explicit Dell automatic restoration, all-source fail-safe, and persistent cycle logs/healthchecks ([#1](https://github.com/DF-wu/iDRACFanSpeedControl/pull/1), [#2](https://github.com/DF-wu/iDRACFanSpeedControl/pull/2)). | ||
| - Pure Bash setup TUI, redacted configuration display, and diagnostics that read configured dependencies without changing fans ([#3](https://github.com/DF-wu/iDRACFanSpeedControl/pull/3)). | ||
| - Unified temperature source interface: ESXi NVMe, iDRAC sensors, local Linux SMART disks, and local/remote NVIDIA GPUs. Highest valid adjusted reading drives the curve; partial source/target failures retain other usable readings ([#4](https://github.com/DF-wu/iDRACFanSpeedControl/pull/4)). | ||
| - Reject implausible raw readings outside −20…150°C before applying offsets, avoiding packed SMART values being interpreted as temperatures ([#5](https://github.com/DF-wu/iDRACFanSpeedControl/pull/5)). | ||
| - Linear fan-speed interpolation enabled by default, including old configurations that omit the switch; ceiling rounding between four anchors, with stepwise/downshift hysteresis available by setting `FAN_SPEED_INTERPOLATION=false` ([#6](https://github.com/DF-wu/iDRACFanSpeedControl/pull/6)). | ||
| - Docker deployment with host networking, persistent logs, read-only SSH secrets, optional disk mappings/GPU access, and GHCR publication. Pull requests now validate the image build without publishing it. | ||
| - Updated English onboarding, operations, troubleshooting and release instructions, synchronized Traditional Chinese README, and minimal CodeRabbit GitHub App review configuration with owner activation instructions. | ||
|
|
||
| ### Migration and compatibility | ||
|
|
||
| A major version is proposed because cumulative changes since v2.0.1 alter deployment, configuration validation, defaults, and fan-curve behavior. This is not a claim that v3.0.0 has been hardware-certified. | ||
|
|
||
| 1. Stop the old controller and restore Dell automatic control before migration. Keep the known-good image, code, and protected configuration for rollback. | ||
| 2. Merge the current `.env.example` into your configuration instead of blindly reusing a 2024 `.env`. Replace placeholders; explicitly select sources and verify required SSH keys/devices/GPU access. | ||
| 3. Current default thresholds are **65/70/75/80°C**; duties are **30/30/40/50/60%**, with **70% fail-safe**. At the v2.0.1 tag, thresholds were 45/55/65/70°C and low/medium/high/critical duties were 20/30/40/60%. Review every threshold/duty against your hardware. | ||
| 4. Interpolation is now default and ignores hysteresis. Explicitly set `FAN_SPEED_INTERPOLATION=false` to retain the stepwise decision model, then verify your configured anchors; this does not restore older default values automatically. | ||
| 5. Runtime mode still defaults to `manual`; the current template selects `auto`. Keep the restartable Compose service on `auto`; run manual/once as one-off commands and explicitly restore afterward. | ||
| 6. Bare scripts do not read `.env`; Compose does. Logs persist at `./logs/fan_control.log`, SSH secrets mount at `/run/secrets`, and every local disk needs its own device mapping. A local Docker build requires selecting that image in Compose. | ||
| 7. Validate, diagnose, supervise manual/restore checks, then start unattended operation. See [upgrade and rollback](USAGE_GUIDE.md#upgrade-and-rollback). | ||
|
|
||
| Only one Dell PowerEdge R730xd with iDRAC 8 has historical hardware testing. No firmware version range, other server model, new hardware test, or production deployment is certified by this release preparation. Exit restoration remains best-effort; explicit stop and restore plus verification in iDRAC are required. A fresh fail-safe log can be healthy even when every temperature source has failed. | ||
|
|
||
| ## v2.0.1 — 2024-10-23 | ||
|
|
||
| Published as “v2.0.1 hotfix”. Use the actual Git tag `v2.0.1` as the migration baseline. See the [original release](https://github.com/DF-wu/iDRACFanSpeedControl/releases/tag/v2.0.1) for its historical notes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| # Contributing | ||
|
|
||
| Keep changes focused and describe actual behavior. Do not test against iDRAC, SSH targets, GPUs, or disks without the hardware owner's explicit authorization. The repository tests use mocks; do not describe those as hardware verification. | ||
|
|
||
| ## Local checks | ||
|
|
||
| With Bash 4+, GNU coreutils, awk, and Make: | ||
|
|
||
| ```bash | ||
| make test | ||
| make validate-example | ||
| git diff --check | ||
| ``` | ||
|
|
||
| With Docker/Compose, in a disposable checkout using only the example configuration: | ||
|
|
||
| ```bash | ||
| cp .env.example .env | ||
| chmod 600 .env | ||
| docker compose config --quiet | ||
| make docker-build | ||
| ``` | ||
|
|
||
| The example contains intentionally invalid live-target placeholders. Do not start the Compose service with it. `make validate-example` uses an offline iDRAC-only dry run and does not load `.env`. The Dockerfile build runs shell syntax/help checks without hardware access. `make validate` validates a real root `.env` inside the selected image; it does not send fan commands. Do not print expanded Compose configuration containing actual secrets into CI logs. | ||
|
|
||
| CI runs the mocked tests, validates Compose, and builds the image for PRs into `master`; PRs do not log in to GHCR or publish. Only pushes to `master` or `v*` tags publish images. Release preparation is in [docs/RELEASING.md](docs/RELEASING.md). | ||
|
|
||
| ## Documentation and localization contract | ||
|
|
||
| `README.md` is the English reference and `README.zh-TW.md` is its Traditional Chinese localization. Update both in the same PR whenever commands, defaults, warnings, deployment instructions, or supported behavior change. Preserve the language-switch links and equivalent technical content; translate prose while retaining exact command/variable names. New engineering docs, commits, PR descriptions, and review discussions use English. Operations and troubleshooting guides are maintained in English and linked from both READMEs. | ||
|
|
||
| Verify relative Markdown links and anchors, shell examples, source/default tables against `src/FanControlWithEsxiSmart.sh`, TUI choices against `src/fan-control-tui.sh`, and deployment instructions against Compose/Dockerfile. Keep `.env`, keys, logs, and incident files out of Git. | ||
|
|
||
| ## CodeRabbit OSS reviews | ||
|
|
||
| This repository prepares review settings for the **CodeRabbit GitHub App** in [`.coderabbit.yaml`](.coderabbit.yaml); installation and operation must be verified separately. The configuration requests English automatic reviews and incremental review on pushes, skips draft PRs, and uses the default target branch (`master`). No token-based review Action or API secret is required. | ||
|
|
||
| ### Owner enablement | ||
|
|
||
| 1. Open the [CodeRabbit App installation page](https://github.com/apps/coderabbitai/installations/new), sign in as an owner/admin, and select **DF-wu**. | ||
| 2. Choose **Only select repositories** and add **iDRACFanSpeedControl**. If CodeRabbit is already installed with selected access, configure that installation and add only this repository, preserving any existing authorized selection. Do not expand access to all repositories. Review the App permissions and finish installation/authorization. | ||
| 3. Sign in to [CodeRabbit](https://app.coderabbit.ai/) with GitHub, select the DF-wu account, and enable review access for this repository if its repository toggle is off. Keep automatic reviews enabled. Use OSS access; do not add billing, purchase seats, enable usage-based billing, or activate paid products for this setup. | ||
| 4. Open or mark a PR into `master` ready for review and look for an actual CodeRabbit status/comment/review. Configuration alone does not prove operation. Record the PR head SHA and the review evidence. | ||
|
|
||
| [Official pricing](https://docs.coderabbit.ai/management/plans) states that OSS projects receive review features without a paid subscription or credit card. Public repositories below 10 stars currently require a manual trigger; this repository had 10 stars when checked on 2026-11-11. Eligibility and rate limits are service policy, so recheck before claiming ongoing automatic coverage. The general Free plan and an expiring trial are not evidence of permanent OSS review access. | ||
|
|
||
| ### First PR, drafts, and troubleshooting | ||
|
|
||
| The [official YAML guide](https://docs.coderabbit.ai/getting-started/yaml-configuration) says the configuration on the feature branch is used for that PR. The first PR adding `.coderabbit.yaml` can therefore be reviewed before merge, once App access is enabled. With `drafts: false`, keep work in draft until ready, then mark it ready to exercise automatic review. Installation after PR creation may need a one-time manual bootstrap: | ||
|
|
||
| ```text | ||
| @coderabbitai full review | ||
| ``` | ||
|
|
||
| For later updates, `@coderabbitai review` requests an incremental review. These commands are an explicit bootstrap/retry, not proof that automatic triggering works. For missing reviews, check App repository selection, the CodeRabbit repository toggle, ready/draft status, target branch, OSS eligibility/rate limits, and the bot's skip reason. `@coderabbitai configuration` shows the resolved settings. The service can pause incremental reviews after its default reviewed-commit limit; use its resume/review controls as needed. | ||
|
|
||
| Validate `.coderabbit.yaml` against the [current official schema](https://coderabbit.ai/integrations/schema.v2.json), using the [YAML validator](https://docs.coderabbit.ai/configuration/yaml-validator) or a local JSON Schema validator. See [automatic review controls](https://docs.coderabbit.ai/configuration/auto-review) for branch/draft behavior. Do not make CodeRabbit a required merge check until actual repository evidence confirms it is running reliably. | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warning
Configuration preview: This finding used unmerged draft-PR configuration and is non-authoritative.
Correct the automatic review scope.
.coderabbit.yamlsetsbase_branchesto".*", so eligible PRs targeting non-default branches can also receive automatic reviews. This can consume review allowance unexpectedly. Update the guidance or restrict the configuration to the intended branches. (raw.githubusercontent.com)