Skip to content

fix(ci): restore Stage Gate command contracts - #156

Open
KooshaPari wants to merge 2 commits into
mainfrom
fix/stage-gate-scripts-20260828
Open

fix(ci): restore Stage Gate command contracts#156
KooshaPari wants to merge 2 commits into
mainfrom
fix/stage-gate-scripts-20260828

Conversation

@KooshaPari

@KooshaPari KooshaPari commented Aug 28, 2026

Copy link
Copy Markdown
Owner

User description

Summary

Restores the three command contracts invoked by Stage Gates without changing the workflow:

  • Declares and locks @biomejs/biome 2.5.11; adds format:check as biome check ..
  • Adds a root unit-test command using existing Bun test suites only: runtime source tests, runtime unit tests, desktop unit tests, package tests, script tests, and root unit tests.
  • Adds test:coverage, delegating to the existing tools/gates/runtime-coverage.mjs threshold gate (default 85%).

Scope

Only package.json and bun.lock changed. The Stage Gates workflow, lint command, synthetic coverage manifest, secrets, and dependencies unrelated to Biome are untouched.

Validation

  • Hosted failing baseline: run 33149107083 reports all three aliases absent.
  • bun add --dev --lockfile-only --save-text-lockfile @biomejs/biome@2.5.11 generated a narrow lockfile delta: root devDependency plus Biome and its eight platform binaries.
  • Remote branch diff verified: 4 package.json additions and 19 bun.lock additions.
  • Full source command execution is delegated to this PR’s hosted Stage Gates run because the task explicitly prohibits creating a HeliosLab checkout.

CodeAnt-AI Description

Restore the commands required for Stage Gates

What Changed

  • Restores formatting checks using the pinned Biome formatter.
  • Adds a root test command covering runtime, desktop, package, script, and unit test suites.
  • Adds a coverage command that runs the existing runtime coverage threshold check.

Impact

✅ Stage Gates can run all required commands
✅ Consistent formatting checks across CI
✅ Coverage thresholds enforced in CI

💡 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.

Copilot AI lite review requested due to automatic review settings August 28, 2026 06:59
@codeant-ai

codeant-ai Bot commented Aug 28, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 58b3916 Aug 28, 2026 · 06:59 06:59

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 reached their quota limit.

@codeant-ai

codeant-ai Bot commented Aug 28, 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

@github-actions

Copy link
Copy Markdown

⚠️ Self-merge is blocked due to missing requirements:

  • ❌ Not all quality gates have passed
  • ❌ PR does not have required review approval

Please ensure all checks pass before merging.

@github-actions

Copy link
Copy Markdown

Compliance Check ✅

All constitution compliance checks passed!

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Aug 28, 2026
@socket-security

socket-security Bot commented Aug 28, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​biomejs/​biome@​2.5.1110010010099100

View full report

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 58b3916a36

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread package.json
"scripts": {
"setup": "bun run scripts/setup-deps.ts",
"format:check": "biome check .",
"test": "bun test apps/runtime/src apps/runtime/tests/unit apps/desktop/tests/unit packages/*/tests scripts/tests tests/unit",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Install dependencies for every selected test suite

On a clean Stage Gates runner, unit-check performs only the root bun install, but the root manifest declares no workspaces before this command selects nested package tests. For example, packages/logger/tests/logger.test.ts loads pino, which is declared only in packages/logger/package.json, and six selected provider tests import vitest, which is not declared by any manifest. Consequently bun run test terminates with module-resolution errors before running the assertions; either install the nested projects and declare vitest, or restrict this alias to suites supported by the root installation.

Useful? React with 👍 / 👎.

Comment thread package.json Outdated
"main": "index.js",
"scripts": {
"setup": "bun run scripts/setup-deps.ts",
"format:check": "biome check .",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Format the checked tree before enabling the Biome gate

In every Stage Gates context, format-check now runs this command against the entire tracked tree, but existing files do not conform to the active Biome configuration. For example, biome.json requires double-quoted JavaScript while packages/logger/src/index.ts:9 uses single quotes, and multiple nested manifests use spaces rather than Biome's default tab indentation. Because biome check reports these formatter diagnostics without applying fixes, the newly restored command still leaves the format job red for every PR; format the baseline or narrow/exclude the legacy tree before making this the gate.

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown

⚠️ Self-merge is blocked due to missing requirements:

  • ❌ Not all quality gates have passed
  • ❌ PR does not have required review approval

Please ensure all checks pass before merging.

@github-actions

Copy link
Copy Markdown

Compliance Check ✅

All constitution compliance checks passed!

@github-actions

Copy link
Copy Markdown

Quality Gate Report

❌ Unit Tests: FAILED
✅ E2E Tests: PASSED
⏭️ Integration Tests: SKIPPED (no integration directory)
✅ FR Annotations: VALID

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Quality Gate Report

✅ Unit Tests: PASSED
✅ E2E Tests: PASSED
⏭️ Integration Tests: SKIPPED (no integration directory)
✅ FR Annotations: VALID

Comment thread package.json
"main": "index.js",
"scripts": {
"setup": "bun run scripts/setup-deps.ts",
"format:check": "biome check --config-path=biome.json apps packages scripts src tests",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: format:check uses biome check, which runs lint rules in addition to format checks. If the gate is intended to validate only formatting, biome format would be more precise; lint failures unrelated to formatting will also block this command.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

Comment thread package.json
"scripts": {
"setup": "bun run scripts/setup-deps.ts",
"format:check": "biome check --config-path=biome.json apps packages scripts src tests",
"test": "bun test apps/runtime/src apps/runtime/tests/unit apps/desktop/tests/unit packages/*/tests scripts/tests tests/unit",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: packages/*/tests relies on shell glob expansion. If no package directory contains a tests subdirectory, Bash passes the literal string packages/*/tests to bun test, which then fails to resolve the non-existent path.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

Code Review Summary

Status: 2 Warnings | Recommendation: Approve with notes

Overview

Severity Count
WARNING 2
Issue Details (click to expand)

WARNING

File Line Issue
package.json 9 format:check uses biome check which includes lint rules; if the intent is format-only, use biome format
package.json 10 packages/*/tests glob may not match, causing bun test to receive a literal non-existent path
Files Reviewed (2 files)
  • package.json - 2 warnings
  • bun.lock - no issues

Fix these issues in Kilo Cloud


Reviewed by free · Input: 33.6K · Output: 9.6K · Cached: 135K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants