Skip to content

fix(spec): register night-shift script in shell coverage list - #2093

Merged
shunkakinoki merged 1 commit into
mainfrom
claude/session-2f48ac
Jul 17, 2026
Merged

fix(spec): register night-shift script in shell coverage list#2093
shunkakinoki merged 1 commit into
mainfrom
claude/session-2f48ac

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the Shell workflow failure on main.

spec/coverage_spec.sh asserts that every tracked *.sh file outside spec/ appears in a hardcoded covered_scripts list. #2091 added home-manager/services/night-shift/apply-night-shift.sh (and spec/night_shift_spec.sh) but never registered the script in that list, so the coverage assertion has failed on every push since.

88d87
< home-manager/services/night-shift/apply-night-shift.sh
MISMATCH: Update coverage_spec.sh when adding new shell scripts

Changes

  • Add apply-night-shift.sh to covered_scripts.
  • Add the matching has spec file for ... assertion, consistent with every other home-manager/services script.

Verification

Full suite locally: 1629 examples, 0 failures (was 1628 with 1 failure; +1 is the new existence assertion).

Notes on the other red workflows

Checked but out of scope, no code fix needed:


Summary by cubic

Fixes the failing Shell workflow by registering the night‑shift script in the coverage list and adding its spec check.

  • Bug Fixes
    • Added home-manager/services/night-shift/apply-night-shift.sh to covered_scripts in spec/coverage_spec.sh.
    • Added assertion for spec/night_shift_spec.sh to match other service scripts.

Written for commit 17bf75a. Summary will update on new commits.

Review in cubic

Closes the shell-test failure introduced in #2091, which added
apply-night-shift.sh and its spec without registering the script in
coverage_spec.sh.
@indent-zero

indent-zero Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor
PR Summary

Fixes the shell coverage test failure introduced in #2091, which added apply-night-shift.sh and its spec but forgot to register the script in spec/coverage_spec.sh. This restores CI green on main by satisfying both invariants enforced by that spec.

  • Add an It block asserting spec/night_shift_spec.sh exists for home-manager/services/night-shift/apply-night-shift.sh.
  • Append home-manager/services/night-shift/apply-night-shift.sh to the covered_scripts whitelist so it matches git ls-files '*.sh'.

Issues

No issues found.

CI Checks

Waiting for CI checks...

@cursor

cursor Bot commented Jul 17, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates spec/coverage_spec.sh to include coverage checks for the new home-manager/services/night-shift/apply-night-shift.sh script and its corresponding specification file spec/night_shift_spec.sh. There are no review comments, and we have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5bc8a30e-0d74-483d-895d-f94417b4c5d7

📥 Commits

Reviewing files that changed from the base of the PR and between 7581f9d and 17bf75a.

📒 Files selected for processing (1)
  • spec/coverage_spec.sh

📝 Walkthrough

Summary by CodeRabbit

  • Tests
    • Added coverage validation for the Night Shift application script.
    • Updated coverage checks to ensure all shell scripts have corresponding specifications.

Walkthrough

The coverage spec now requires a night-shift spec file and includes the night-shift shell script in the repository-wide covered scripts list.

Changes

Night Shift Coverage

Layer / File(s) Summary
Register night-shift script coverage
spec/coverage_spec.sh
Adds an assertion for spec/night_shift_spec.sh and registers home-manager/services/night-shift/apply-night-shift.sh in covered_scripts.

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

Possibly related PRs

Poem

A bunny checks the night-shift trail,
With coverage stars that never fail.
One script joins the list with pride,
Its matching spec hops close beside.
Test green, little paws applaud!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: registering the night-shift script in the shell coverage list.
Description check ✅ Passed The description is directly related to the coverage-list fix and the added spec assertion.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/session-2f48ac

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.

@mesa-dot-dev

mesa-dot-dev Bot commented Jul 17, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Fixes the Shell workflow failure on main by registering the apply-night-shift.sh script in the shell coverage assertions.

What changed?

  • spec/coverage_spec.sh:
    • Added home-manager/services/night-shift/apply-night-shift.sh to the covered_scripts list.
    • Added a matching assertion verifying the existence of its corresponding spec file.

Description generated by Mesa. Update settings

@mesa-dot-dev mesa-dot-dev Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Performed full review of 7581f9d...17bf75a

Analysis

• Missing script registration creates CI test failure: The night-shift script was introduced without being added to the centralized coverage manifest (coverage_spec.sh), violating the established architectural pattern that requires explicit registration of all shell scripts and their corresponding spec files.

• Manual registration workflow is error-prone: The codebase relies on developers to manually update the coverage list whenever new shell scripts are added. This human-dependent process has already caused drift and will likely cause future regressions unless automated.

• Lack of automated drift detection: No CI mechanism currently exists to catch unregistered scripts. Implementing automated script discovery (with explicit allowlist/denylist controls) would eliminate this class of error and maintain the explicit coverage contract model.

Tip

Help

Slash Commands:

  • /review - Request a full code review
  • /review latest - Review only changes since the last review
  • /describe - Generate PR description. This will update the PR body or issue comment depending on your configuration
  • /help - Get help with Mesa commands and configuration options

0 files reviewed | 0 comments | Edit Agent SettingsRead Docs

@shunkakinoki
shunkakinoki merged commit a96d270 into main Jul 17, 2026
35 checks passed

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

Re-trigger cubic

@shunkakinoki
shunkakinoki deleted the claude/session-2f48ac branch July 17, 2026 07:12
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