Skip to content

fix(fish): update test files to match renamed function files - #1061

Merged
shunkakinoki merged 1 commit into
mainfrom
jiggly-spinning-catmull
Mar 12, 2026
Merged

fix(fish): update test files to match renamed function files#1061
shunkakinoki merged 1 commit into
mainfrom
jiggly-spinning-catmull

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Mar 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Renames spec/fish/_clxte_function_test.fish_cltxe_function_test.fish
  • Renames spec/fish/_clxteh_function_test.fish_cltxeh_function_test.fish
  • Renames spec/fish/_clxwe_function_test.fish_clwxe_function_test.fish
  • Renames spec/fish/_clxweh_function_test.fish_clwxeh_function_test.fish
  • Updates internal source paths and function call names in each test file

Context

The abbreviation naming refactor (#1057) renamed the function files in home-manager/programs/fish/functions/ but did not update the corresponding test files in spec/fish/, causing CI fish-test failures with "No such file or directory" errors.

Test plan

  • CI fish-test passes for all four affected test files

🤖 Generated with Claude Code


Summary by cubic

Aligns fish spec tests with renamed function files from the abbreviation naming refactor (#1057). Fixes CI fish-test “No such file or directory” errors.

  • Bug Fixes
    • Renamed tests to match functions: _clxte_cltxe, _clxteh_cltxeh, _clxwe_clwxe, _clxweh_clwxeh.
    • Updated source paths and function calls; interactive flag checks and empty-prompt assertions remain unchanged (rejects and returns 1).

Written for commit 6de5ddc. Summary will update on new commits.

Copilot AI review requested due to automatic review settings March 12, 2026 10:52
@mesa-dot-dev

mesa-dot-dev Bot commented Mar 12, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

@coderabbitai

coderabbitai Bot commented Mar 12, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0bf06ad1-8328-4bba-a4fa-2b0ac73f046d

📥 Commits

Reviewing files that changed from the base of the PR and between 57582a4 and 6de5ddc.

📒 Files selected for processing (4)
  • spec/fish/_cltxe_function_test.fish
  • spec/fish/_cltxeh_function_test.fish
  • spec/fish/_clwxe_function_test.fish
  • spec/fish/_clwxeh_function_test.fish

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Summary by CodeRabbit

  • Tests
    • Updated and corrected test suite function references for consistency.
    • Enhanced test assertions to verify prompt building functionality.

Walkthrough

Four Fish shell test files are updated to correct function naming references, replacing incorrectly ordered function names with corrected versions across invocations and file sourcing. Two tests also add assertions verifying prompt construction with specific input strings.

Changes

Cohort / File(s) Summary
Function naming corrections
spec/fish/_cltxe_function_test.fish, spec/fish/_cltxeh_function_test.fish, spec/fish/_clwxe_function_test.fish, spec/fish/_clwxeh_function_test.fish
Updated function references to correct naming: clxtecltxe, clxtehcltxeh, clxweclwxe, clxwehclwxeh. Additional assertions added in two tests to verify prompt building with "hello world" verification.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Scrambled letters dance and fix,
Test names corrected—no more mix,
Each function finds its proper place,
Our whiskers twitch with pride and grace! 🐾

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch jiggly-spinning-catmull

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 and usage tips.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request resolves critical CI failures in the fish-test suite by synchronizing test file references with recently renamed function files. A prior refactor had updated function file names without corresponding changes in their test counterparts, leading to "No such file or directory" errors during CI runs. This change ensures the test suite correctly locates and executes tests against the updated function names, thereby restoring the stability and accuracy of the continuous integration process.

Highlights

  • File Renames: Renamed spec/fish/_clxte_function_test.fish to _cltxe_function_test.fish.
  • File Renames: Renamed spec/fish/_clxteh_function_test.fish to _cltxeh_function_test.fish.
  • File Renames: Renamed spec/fish/_clxwe_function_test.fish to _clwxe_function_test.fish.
  • File Renames: Renamed spec/fish/_clxweh_function_test.fish to _clwxeh_function_test.fish.
  • Test File Updates: Updated internal source paths and function call names within the renamed test files to reflect the new function names.
Changelog
  • spec/fish/_cltxe_function_test.fish
    • Updated the source path and function calls to reference _cltxe_function instead of _clxte_function.
  • spec/fish/_cltxeh_function_test.fish
    • Introduced new test content for the renamed file, including sourcing _cltxeh_function.fish and testing its behavior with an empty prompt.
  • spec/fish/_clwxe_function_test.fish
    • Modified the source path and function calls to correctly point to _clwxe_function from _clxwe_function.
  • spec/fish/_clwxeh_function_test.fish
    • Provided new test content for the renamed file, sourcing _clwxeh_function.fish and verifying its response to an empty prompt.
Activity
  • No human activity has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@mesa-dot-dev

mesa-dot-dev Bot commented Mar 12, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Aligns fish spec tests with renamed function files from the abbreviation naming refactor (#1057) to fix CI fish-test "No such file or directory" errors.

What changed?

  • spec/fish/_cltxe_function_test.fish: Renamed _clxte_function to _cltxe_function and updated its source command and function calls.
  • spec/fish/_cltxeh_function_test.fish: Added a new test file to verify _cltxeh_function.fish's behavior, specifically handling of empty prompts (outputs error to stderr, returns exit status 1).
  • spec/fish/_clwxe_function_test.fish: Updated to reflect the rename of the tested function from _clxwe_function to _clwxe_function, including changes to the source path and all function calls.
  • spec/fish/_clwxeh_function_test.fish: Added a new test file for _clwxeh_function.fish, asserting its correct handling of empty prompt input by outputting an error to stderr and returning an exit status of 1.
  • spec/fish/_clxteh_function_test.fish: Removed, as its functionality is now covered by _cltxeh_function_test.fish.
  • spec/fish/_clxweh_function_test.fish: Removed two test cases that previously validated _clxweh_function's empty prompt behavior.

Description generated by Mesa. Update settings

@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 6 files

Follows up on the abbreviation naming refactor (#1057) which renamed
_clxte/_clxteh/_clxwe/_clxweh function files but missed updating the
corresponding spec/fish test files.

Closes the CI failure in fish-test.
@shunkakinoki
shunkakinoki force-pushed the jiggly-spinning-catmull branch from 882c338 to 6de5ddc Compare March 12, 2026 10:54

Copilot AI 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.

Pull request overview

Updates fishtape test files under spec/fish/ to align with the fish function file renames introduced by the abbreviation naming refactor, fixing CI failures caused by stale source paths and old function names.

Changes:

  • Rename/replace fishtape test files to match new fish function basenames (clxteh→cltxeh, clxweh→clwxeh).
  • Update source paths and invoked function names inside the affected tests (clxte→cltxe, clxwe→clwxe).
  • Remove the obsolete test files that referenced the pre-refactor function names.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Show a summary per file
File Description
spec/fish/_clxweh_function_test.fish Removed obsolete test file for pre-refactor _clxweh_function.
spec/fish/_clxteh_function_test.fish Removed obsolete test file for pre-refactor _clxteh_function.
spec/fish/_clwxeh_function_test.fish Added test file targeting renamed _clwxeh_function and correct source path.
spec/fish/_clwxe_function_test.fish Updated source path and invoked function name from _clxwe_function to _clwxe_function.
spec/fish/_cltxeh_function_test.fish Added test file targeting renamed _cltxeh_function and correct source path.
spec/fish/_cltxe_function_test.fish Updated source path and invoked function name from _clxte_function to _cltxe_function.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@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

The pull request effectively addresses the CI failures by updating the test files to reflect the correct function names and source paths. The changes are consistent with the intended renaming of the function files, ensuring that the tests now correctly reference the updated functions. This resolves the "No such file or directory" errors previously encountered in the fish-test CI pipeline.

@shunkakinoki
shunkakinoki merged commit 02acde6 into main Mar 12, 2026
12 of 22 checks passed
@shunkakinoki
shunkakinoki deleted the jiggly-spinning-catmull branch March 12, 2026 10:54
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.

2 participants