Skip to content

ci: skip release-installer gates when install.sh is deliberately disabled - #346

Merged
KooshaPari merged 3 commits into
masterfrom
fix/ci-baseline-gates-2026-10-22
Nov 24, 2026
Merged

KooshaPari merged 3 commits into
masterfrom
fix/ci-baseline-gates-2026-10-22

Conversation

@KooshaPari

@KooshaPari KooshaPari commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

User description

Part of #271

Problem

Two CI gate scripts drive scripts/install.sh end to end and assert on behaviour that this fork deliberately removed. scripts/install.sh line 4 is:

echo 'KCode release downloads are disabled. Build KooshaPari/KCode and run scripts/install_release.sh.' >&2

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):

$ bash scripts/setup_friction_eval.sh            # rc=1  (scorecard fails)
$ bash scripts/test_install_conversion.sh        # rc=1

With this branch:

$ bash scripts/setup_friction_eval.sh
SKIP  setup friction scorecard: scripts/install.sh is intentionally disabled in this fork.
      Release-install PATH, idempotency, retention and Windows-parity sections are not applicable.
rc=0
$ 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.
rc=0

Design note

The skip is keyed off the sentinel grep, not unconditional: if install.sh is ever restored, the sentinel disappears and both gates re-arm themselves. That keeps the gates honest instead of silencing them. setup_friction_eval.sh already 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 -n clean 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

  • Installer conversion tests and the setup-friction scorecard now report SKIP instead of failing when release downloads are intentionally disabled.
  • Both checks run normally again if the disabled-installer marker is removed.

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:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

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:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

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.

…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
Copilot AI balanced review requested due to automatic review settings November 24, 2026 00:42
@codeant-ai

codeant-ai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

CodeAnt  CodeAnt Review Status

✅  Review completed

Status Commit Started (UTC) Finished (UTC)
✅  #cbcb2 Reviewed your PR 62d01b6 Nov 24, 2026 · 00:42 00:45

@codeant-ai

codeant-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: aa8e94f6-fa8f-4a54-a0ad-ef65478a0a41
Commits

Reviewing files that changed from the base of the PR and between c129e15 and 62d01b6.

Files selected for processing: 2

  • scripts/setup_friction_eval.sh
  • scripts/test_install_conversion.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@codeant-ai codeant-ai Bot added the size:M This PR changes 30-99 lines, ignoring generated files label Nov 24, 2026
@kilo-code-bot

kilo-code-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: 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)
  • scripts/setup_friction_eval.sh - 0 issues
  • scripts/test_install_conversion.sh - 0 issues

Reviewed by free · Input: 51.8K · Output: 1.2K · Cached: 201.6K

@codeant-ai

codeant-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown

CodeAnt  CodeAnt PR Risk

🟢  Low Risk

  • The PR appears safe to merge; no actionable issues were identified in the review.

Assessed commit: 62d01b69b735

@sonarqubecloud

Copy link
Copy Markdown

@KooshaPari
KooshaPari merged commit bea20bc into master Nov 24, 2026
23 checks passed
@KooshaPari
KooshaPari deleted the fix/ci-baseline-gates-2026-10-22 branch November 24, 2026 01:16
@KooshaPari
KooshaPari restored the fix/ci-baseline-gates-2026-10-22 branch November 25, 2026 11:37
@KooshaPari
KooshaPari deleted the fix/ci-baseline-gates-2026-10-22 branch November 26, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants