Skip to content

chore: update - #112

Merged
shunkakinoki merged 1 commit into
mainfrom
update-agents-script
Apr 3, 2026
Merged

chore: update#112
shunkakinoki merged 1 commit into
mainfrom
update-agents-script

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Apr 3, 2026

Copy link
Copy Markdown
Owner

Summary by cubic

Update the skills-install Makefile target to continue installing other repos when one fails and show a final summary. This avoids aborting on the first error and makes bulk installs more reliable.

  • Bug Fixes
    • Replaced early exits with a failed flag to keep processing remaining repos.
    • Added a final success/failure summary message after all repos are processed.

Written for commit 545ae21. Summary will update on new commits.

Copilot AI review requested due to automatic review settings April 3, 2026 06:36
@coderabbitai

coderabbitai Bot commented Apr 3, 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: 1e88564c-49f1-420a-ac6a-7b53b522f4b2

📥 Commits

Reviewing files that changed from the base of the PR and between df761a8 and 545ae21.

📒 Files selected for processing (1)
  • Makefile

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • Enhanced fault-tolerance during skill installation. The process now continues through errors instead of failing immediately, completing all installation attempts and providing a consolidated failure report at the end.

Walkthrough

Updated the skills-install Makefile recipe to continue processing all skills instead of exiting immediately on failure. Failures are tracked with a flag and reported after all skills are processed, improving fault tolerance.

Changes

Cohort / File(s) Summary
Makefile Error Handling
Makefile
Modified skills-install target to change from fail-fast (exit 1) to fail-continue pattern: added a failed flag initialized to 0, set to 1 when bunx skills add fails, and report success or failure message after processing all entries in SKILLS.txt.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

Little Makefile learns to persist through the rain,
No hasty exits when skills can't be gained.
It tracks every stumble with care and with grace,
Then reports what went wrong, at a measured pace! 🐰✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-agents-script

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.

@shunkakinoki
shunkakinoki enabled auto-merge (squash) April 3, 2026 06:36
@shunkakinoki
shunkakinoki disabled auto-merge April 3, 2026 06:37
@shunkakinoki
shunkakinoki merged commit bed8560 into main Apr 3, 2026
3 of 4 checks passed
@shunkakinoki
shunkakinoki deleted the update-agents-script branch April 3, 2026 06:37

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

No issues found across 1 file

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 the skills-install Makefile target to continue installing skills after individual failures and report an aggregate result at the end.

Changes:

  • Track install failures via a failed flag instead of exiting on first error.
  • Update failure messaging to indicate continuation.
  • Add a final summary message based on whether any installs failed.
Comments suppressed due to low confidence (1)

Makefile:1

  • The failed flag is set inside a while loop that is fed by a pipeline (... | while ...), which runs the loop in a subshell in many /bin/sh implementations. As a result, failed=1 won’t reliably persist to line 114, so the target may report success even when installs failed. To make this work reliably, avoid piping into the while loop (e.g., read the file directly and skip comments/blank lines inside the loop, or otherwise structure it so the loop runs in the main shell), and consider returning a non-zero exit status when any install failed so make/CI can detect the failure.
.DEFAULT_GOAL := help

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

Comment thread Makefile
skills-install: ## Install skills from SKILLS.txt (supports per-repo skill selection).
@grep -v '^\s*#' $(SKILLS_FILE) | grep -v '^\s*$$' | while IFS= read -r line; do \
@failed=0; \
grep -v '^\s*#' $(SKILLS_FILE) | grep -v '^\s*$$' | while IFS= read -r line; do \

Copilot AI Apr 3, 2026

Copy link

Choose a reason for hiding this comment

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

The grep patterns use \s (e.g., ^\s*#), which is not portable in POSIX/basic grep and is typically treated as a literal s unless using PCRE modes. This can cause comment/blank-line filtering to behave incorrectly on some systems. Prefer a POSIX-compatible character class like [[:space:]] (e.g., ^[[:space:]]*# and ^[[:space:]]*$$) or move this filtering into the shell loop with a case check.

Suggested change
grep -v '^\s*#' $(SKILLS_FILE) | grep -v '^\s*$$' | while IFS= read -r line; do \
grep -v '^[[:space:]]*#' $(SKILLS_FILE) | grep -v '^[[:space:]]*$$' | while IFS= read -r line; do \

Copilot uses AI. Check for mistakes.
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