Skip to content

Add lint, i18n and unit tests to CI pipeline#63

Open
kyoto wants to merge 2 commits into
openshift:mainfrom
kyoto:add-lint-integration-test
Open

Add lint, i18n and unit tests to CI pipeline#63
kyoto wants to merge 2 commits into
openshift:mainfrom
kyoto:add-lint-integration-test

Conversation

@kyoto

@kyoto kyoto commented Jun 25, 2026

Copy link
Copy Markdown
Member

No description provided.

@openshift-ci

openshift-ci Bot commented Jun 25, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign raptorsun for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot requested review from joshuawilson and onmete June 25, 2026 05:59
@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 0d91eb10-62f9-4add-9cf5-c7220fa04485

📥 Commits

Reviewing files that changed from the base of the PR and between 382e0cf and 811a227.

📒 Files selected for processing (4)
  • .tekton/integration-tests/lightspeed-agentic-console-pre-commit.yaml
  • locales/en/plugin__lightspeed-agentic-console-plugin.json
  • src/components/proposals/ProposalDetailPage.tsx
  • src/hooks/useStageApproval.ts
✅ Files skipped from review due to trivial changes (3)
  • src/hooks/useStageApproval.ts
  • src/components/proposals/ProposalDetailPage.tsx
  • locales/en/plugin__lightspeed-agentic-console-plugin.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • .tekton/integration-tests/lightspeed-agentic-console-pre-commit.yaml

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added clearer messaging for the agentic system’s suspended state.
    • Updated approval retry labels to consistently include the retry count (e.g., “{{num}} retries”).
  • Bug Fixes
    • Improved formatting of approval tooltips and proposal approval page layout, preserving existing behavior and permissions.

Walkthrough

Adds a Tekton pre-commit pipeline for the agentic console, and updates proposal locale strings plus formatting in approval-related UI code.

Changes

Tekton pre-commit pipeline

Layer / File(s) Summary
Pipeline manifest and metadata
.tekton/integration-tests/lightspeed-agentic-console-pre-commit.yaml
Defines the new lightspeed-agentic-console-pre-commits pipeline and its SNAPSHOT and test-name parameters.
Snapshot extraction and lint tasks
.tekton/integration-tests/lightspeed-agentic-console-pre-commit.yaml
Adds extract-snapshot-metadata to parse SNAPSHOT into console-image and commit, then runs lint after cloning and checking out that commit.

Proposal UI text and layout

Layer / File(s) Summary
Locale strings
locales/en/plugin__lightspeed-agentic-console-plugin.json
Adds suspension-state messaging and removes the standalone Approve with retries label.
Approval tooltips
src/components/proposals/ProposalDetailPage.tsx
Reformats the approval and execution-approval tooltips into multiline t(...) calls without changing trigger conditions.
Page layout and hook formatting
src/components/proposals/ProposalDetailPage.tsx, src/hooks/useStageApproval.ts
Reformats the trigger-bootstrap section, proposal detail layout, and useStageApproval return object without changing rendered conditions or returned fields.
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive No pull request description was provided, so there is not enough content to assess beyond the code changes. Add a brief description of the CI pipeline changes and what the new pre-commit pipeline validates.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: adding lint, i18n, and unit test steps to the CI pipeline.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.tekton/integration-tests/lightspeed-agentic-console-pre-commit.yaml:
- Around line 44-46: The Tekton step in lightspeed-agentic-console-pre-commit
currently writes the jq results directly into the console-image and commit
result files without verifying they are present. Add explicit checks around the
jq lookups for lightspeed-agentic-console in the snapshot, and if
.containerImage or .source.git.revision is empty or null, emit a clear error and
exit non-zero before writing results. Keep the validation in the same step
script so the failure is caught before later git commands consume bad values.
- Around line 10-12: The default SNAPSHOT payload is missing the
source.git.revision field that the commit extraction path expects, so the lint
task ends up with a null commit. Update the SNAPSHOT default in the pipeline
parameter definition to include a valid source.git.revision value that matches
what the extraction logic in the lint task reads, and keep the structure aligned
with the application snapshot consumed by the pre-commit flow.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: ab400503-5186-4177-a29f-632f45e0403f

📥 Commits

Reviewing files that changed from the base of the PR and between f2b5c33 and 382e0cf.

📒 Files selected for processing (4)
  • .tekton/integration-tests/lightspeed-agentic-console-pre-commit.yaml
  • locales/en/plugin__lightspeed-agentic-console-plugin.json
  • src/components/proposals/ProposalDetailPage.tsx
  • src/hooks/useStageApproval.ts

Comment thread .tekton/integration-tests/lightspeed-agentic-console-pre-commit.yaml Outdated
kyoto and others added 2 commits June 25, 2026 15:40
Runs lint, unit tests, and i18n validation on PRs via a Tekton
integration test pipeline, following the same pattern used in
lightspeed-console.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kyoto kyoto force-pushed the add-lint-integration-test branch from 382e0cf to 811a227 Compare June 25, 2026 06:41
@JoaoFula

Copy link
Copy Markdown

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2026
@JoaoFula

Copy link
Copy Markdown

/retest

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

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants