ci(FR-2791): add backend.ai-client lint/typecheck/test/build workflow#7203
Open
ci(FR-2791): add backend.ai-client lint/typecheck/test/build workflow#7203
Conversation
Member
Author
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a dedicated GitHub Actions workflow to validate the packages/backend.ai-client workspace package on PRs and on pushes to main, aligning the monorepo with package-scoped CI checks.
Changes:
- Introduces
.github/workflows/backend-ai-client-ci.ymlto run lint, TypeScript typecheck, tests, and build forbackend.ai-client. - Adds path-based triggers and concurrency cancellation to avoid redundant runs.
eb50c51 to
4586d75
Compare
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.

Resolves #7198(FR-2791)
Epic: FR-2792 (backend.ai-client production readiness)
Summary
Adds a dedicated GitHub Actions workflow that validates
packages/backend.ai-clienton PRs and onmainpushes. The repo's existingscripts/verify.shonly covers the React app, so library-only regressions (lint, typecheck, test, build) currently slip through.Workflow
.github/workflows/backend-ai-client-ci.ymlruns on PRs and pushes that touch the package or the lockfile, and executes:pnpm install --merge-git-branch-lockfiles --no-frozen-lockfile(matches thevitest.ymlpattern; the repo usesgitBranchLockfile: true)pnpm --filter backend.ai-client run lintpnpm --filter backend.ai-client exec tsc --noEmitpnpm --filter backend.ai-client run testpnpm --filter backend.ai-client run buildPath filter covers
packages/backend.ai-client/**,pnpm-lock.yaml, and the workflow file itself; concurrency is set to cancel in-flight runs of the same head ref.Soft dependency
The lint step depends on FR-2790 / #7204 landing first (that PR adds
eslint.config.js). Both PRs are in the same Epic FR-2792 and intended to merge together; CI will be green onmainafter both land.Out of scope
npm publishworkflow — separate ticket once a publishing strategy is decided.Verification
python3 -c "yaml.safe_load(...)").actions/checkout@v5,pnpm/action-setup@v5,actions/setup-node@v5,actions/cache@v5) match what's already used byvitest.ymlandpublish-backend.ai-ui.yml.