-
Notifications
You must be signed in to change notification settings - Fork 7
Fix core bootstrapping #929
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
Conversation
WalkthroughReplaced a piped/bootstrap invocation in Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant User as Runner
participant Script as scripts/core-testing.sh
participant Bootstrap as script/bootstrap
participant Pip as pip/install steps
User->>Script: execute core-testing.sh
Note right of Script: set -ex (trace & exit-on-error)
Script->>Bootstrap: sh "${coredir}/script/bootstrap"
Bootstrap->>Pip: prepare environment / packages
Pip-->>Bootstrap: install complete
Bootstrap-->>Script: return
Script->>Script: proceed with remaining install steps
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
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. Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
scripts/core-testing.sh (1)
2-2: Avoid globalset -x; add pipefail and gate tracing to prevent secret leakageGlobal tracing can leak tokens/credentials in CI logs and adds noise. Prefer failing fast with pipefail and enable tracing only when needed (e.g., local DEBUG or non‑CI).
Apply:
-set -ex +set -Eeuo pipefail +# Trace only when debugging locally to avoid leaking secrets in CI logs +[ -z "${GITHUB_ACTIONS:-}" ] && [ -n "${DEBUG:-}" ] && set -x
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
scripts/core-testing.sh(2 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: CoMPaTech
PR: plugwise/plugwise-beta#789
File: .pre-commit-config.yaml:3-3
Timestamp: 2024-12-08T11:23:47.692Z
Learning: CoMPaTech considers Python 3.13 stable and prefers to use it in the project.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Prepare
- GitHub Check: Prepare
- GitHub Check: Prepare
🔇 Additional comments (1)
scripts/core-testing.sh (1)
184-184: Do not change — script/bootstrap uses /bin/shVerified remote script/bootstrap has a shebang of "#!/bin/sh" (so invoking with sh matches the script); switching to bash is unnecessary.
Likely an incorrect or invalid review comment.
|
|
Fixes #928 |



Summary by CodeRabbit
Tests
Chores