Repository navigation
ci: skip release-installer gates when install.sh is deliberately disabled - #346
Conversation
…n this fork
The "Setup Friction Eval (Linux installer)" job fails at its
"Installer conversion telemetry tests" step:
$ bash scripts/test_install_conversion.sh
KCode release downloads are disabled. Build KooshaPari/KCode and run scripts/install_release.sh.
##[error]Process completed with exit code 1.
Root cause: KCode disables release downloads on purpose. scripts/install.sh
short-circuits on line 4-5 with that message and `exit 1`, before any of the
logic the harness exercises. All seven scenarios in
scripts/test_install_conversion.sh drive install.sh through mocked
curl/uname/tar and assert on its telemetry, checksum verification and
download-URL behaviour, so every one of them can only observe the stub's
exit 1. The harness was left running against a capability the fork does not
ship, so the gate can never go green.
Fix: assert the harness's own precondition at the top. When install.sh still
carries the "KCode release downloads are disabled" sentinel, print an explicit
SKIP and exit 0. Keying the skip off the sentinel rather than skipping
unconditionally keeps the gate honest - if install.sh is ever restored the
sentinel disappears and all seven scenarios run for real again.
Reproduced and verified on origin/master (0d95c41):
before: $ bash scripts/test_install_conversion.sh
KCode release downloads are disabled. ...
exit 1
after: $ bash scripts/test_install_conversion.sh
SKIP: scripts/install.sh is intentionally disabled in this fork.
Release-download conversion and telemetry scenarios are not applicable.
exit 0
$ bash -n scripts/test_install_conversion.sh -> syntax OK
tx-agent: jcode
tx-validated: test
tx-task: n/a
tx-scope: scripts/test_install_conversion.sh
tx-intent: Stop the installer-telemetry CI gate failing against an installer this fork intentionally disables
… this fork scripts/setup_friction_eval.sh is the step immediately after the installer conversion test in the same "Setup Friction Eval" CI job. Every one of its sections (A-C sandbox-install + real-shell PATH/retention probes, D static audit of install.sh and install.ps1) scores the release installer, which KCode disables on purpose. Without this the job still failed at step 5 even after the conversion test was fixed. Scored as SKIP rather than FAIL to match the script's own documented handling of not-applicable cases. Guard is keyed off the same sentinel as test_install_conversion.sh, and is verified to re-arm when the sentinel is absent. tx-agent: jcode tx-validated: test tx-task: #148 tx-scope: scripts/setup_friction_eval.sh, ci tx-intent: stop the setup friction scorecard from failing on the intentionally disabled release installer
…disabled Both scripts install through scripts/install.sh and assert on its download, telemetry and checksum behaviour. KCode disables release downloads on purpose, so install.sh short-circuits before that behaviour exists and both scripts reported failure for a capability the fork does not ship. Keyed off install.sh's own sentinel line rather than an unconditional skip, so restoring install.sh removes the skip automatically. Measured: before, rc=1 from both; after, rc=0 with a SKIP line. tx-agent: jcode tx-validated: manual tx-scope: ci-baseline-gates-2026-10-22 tx-lane: jcode:session_iwazaru_1795472450499_bcf77f2c366985f8
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 13 minutes. View limit details
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. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge The PR adds a sentinel-keyed SKIP guard to two CI gate scripts so they no longer fail against the deliberately disabled release installer. Guards re-arm automatically if install.sh is restored. Changes are minimal, well-documented, and consistent with each script's existing SKIP vocabulary. Files Reviewed (2 files)
Reviewed by free · Input: 51.8K · Output: 1.2K · Cached: 201.6K |
|



User description
Part of #271
Problem
Two CI gate scripts drive
scripts/install.shend to end and assert on behaviour that this fork deliberately removed.scripts/install.shline 4 is:so it short-circuits before any download, telemetry, checksum or PATH-persistence logic exists. Both scripts therefore reported FAIL for a capability KCode does not ship.
Measured before and after
On current
master(c129e153f):With this branch:
Design note
The skip is keyed off the sentinel grep, not unconditional: if
install.shis ever restored, the sentinel disappears and both gates re-arm themselves. That keeps the gates honest instead of silencing them.setup_friction_eval.shalready documents that "SKIPs don't count against the score but are reported", so SKIP is this script's existing vocabulary for not-applicable, not a new escape hatch.Scope
2 files, +32 lines, no product code. Merge against
master: 0 conflicts.bash -nclean on both.tx-agent: jcode
tx-validated: manual
tx-scope: scripts/setup_friction_eval.sh, scripts/test_install_conversion.sh
tx-intent: stop two CI gates failing on a deliberately disabled installer
CodeAnt-AI Description
Skip installer CI gates when release downloads are disabled
What Changed
Impact
✅ No false CI failures for disabled release installs✅ Installer checks resume when release installation returns💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.