Conversation
Co-authored-by: SMSDAO <144380926+SMSDAO@users.noreply.github.com>
Co-authored-by: SMSDAO <144380926+SMSDAO@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI/CD pipeline issues with dependency health checks
Fix CI/CD pipeline: enable repair script, add concurrency controls, fix test configuration
Jan 30, 2026
Member
|
@copilot apply changes CastQuest V3 Build & Deploy / build (pull_request) |
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes CI/CD reliability by enabling dependency repair actions, adding workflow-level concurrency controls, and making Vitest run non-interactively in CI.
Changes:
- Enabled non-dry-run execution of
scripts/repair-dependencies.shand made repair/health/typecheck/lint/test/build steps fail the workflow on error. - Added
concurrencyblocks across workflows to avoid overlapping runs per ref (with deploy workflows not cancelling in-progress runs). - Updated
packages/core-servicestest scripts so CI runsvitest runinstead of watch mode.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/core-services/package.json | Switches tests to non-watch mode by default; adds test:ci for coverage. |
| .github/workflows/v3-build.yaml | Adds concurrency; enables active dependency repair and makes health/typecheck blocking. |
| .github/workflows/ci.yml | Adds concurrency; makes lint/typecheck/test/build steps blocking; removes CI watch workaround. |
| .github/workflows/dependency-health.yml | Adds concurrency; enables active dependency repair and makes health checks blocking. |
| .github/workflows/deploy.yml | Adds concurrency (non-cancelling) and removes BOM from the workflow header. |
| .github/workflows/deploy-v3.yml | Adds concurrency (non-cancelling) for v3 deploy workflow. |
Copilot stopped work on behalf of
SMSDAO due to an error
January 30, 2026 15:00
Copilot stopped work on behalf of
SMSDAO due to an error
January 30, 2026 15:00
Copilot stopped work on behalf of
SMSDAO due to an error
January 30, 2026 15:00
SMSDAO
reviewed
Jan 30, 2026
Copilot stopped work on behalf of
SMSDAO due to an error
January 30, 2026 15:02
SMSDAO
approved these changes
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI/CD pipeline had 268 failing runs and 14+ automated issues due to repair scripts running in dry-run mode (detecting but not fixing issues), missing concurrency controls causing port conflicts and race conditions, and tests misconfigured for CI environments.
Changes
Enabled active repair mode
--dry-runflag fromscripts/repair-dependencies.shcalls inv3-build.yamlanddependency-health.ymlcontinue-on-error: true→falsefor repair and health check stepsAdded concurrency controls
All 5 workflows now prevent simultaneous runs:
event_nameto allow independent cron runsFixed test configuration for CI
packages/core-services/package.json:{ "test": "vitest run", // was "vitest" (watch mode) "test:watch": "vitest", // for development "test:ci": "vitest run --coverage" }Removed
-- --watch=falseworkaround fromci.yml- now handled in package.json.Fixed error handling
Changed
continue-on-errorfromtruetofalsefor critical checks:Kept
truefor informational checks (security audit, oracle analysis).Impact
Original prompt
Problem Statement
The repository has 14+ open automated "Dependency Health Check Failed" issues and 268 failing workflow runs. The CI/CD pipeline is broken due to:
Required Changes
1. Fix Workflow Dry-Run Mode
Files to modify:
.github/workflows/v3-build.yaml.github/workflows/dependency-health.yml.github/workflows/ci.yml.github/workflows/deploy.ymlChanges needed:
--dry-runflag from allscripts/repair-dependencies.shcalls2. Add Concurrency Controls
Add concurrency groups to ALL workflow files to prevent simultaneous runs:
This prevents:
3. Fix Test Configuration
Current issues:
--watch=falseflagcontinue-on-error: truemask real failuresRequired fixes:
continue-on-error: truewhere tests should actually passFiles to check/modify:
packages/core-services/vitest.config.ts.spec.tsor.test.tsfiles with known issues4. Workflow-Specific Fixes
.github/workflows/v3-build.yaml.github/workflows/dependency-health.yml.github/workflows/ci.yml5. Update Package.json Test Scripts
Ensure all
package.jsonfiles have proper test scripts for CI:{ "scripts": { "test": "vitest run", // Non-watch mode for CI "test:watch": "vitest", // Watch mode for dev "test:ci": "vitest run --coverage" } }Success Criteria
After these changes:
Important Constraints
DO NOT CHANGE:
apps/web,apps/admin,packages/*/srcONLY CHANGE:
.github/workflows/vitest.config.ts, jest configs)package.jsonfilesTesting Instructions
After implementing changes:
References
scripts/repair-dependencies.shscripts/master.shThis pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.