Add lint, i18n and unit tests to CI pipeline#63
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (3)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a Tekton pre-commit pipeline for the agentic console, and updates proposal locale strings plus formatting in approval-related UI code. ChangesTekton pre-commit pipeline
Proposal UI text and layout
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (4)
.tekton/integration-tests/lightspeed-agentic-console-pre-commit.yamllocales/en/plugin__lightspeed-agentic-console-plugin.jsonsrc/components/proposals/ProposalDetailPage.tsxsrc/hooks/useStageApproval.ts
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>
382e0cf to
811a227
Compare
|
/lgtm |
|
/retest |
No description provided.