Skip to content

ci: add frontend client sync check#2192

Merged
daryllimyt merged 3 commits intomainfrom
ci/frontend-client-sync-check
Feb 25, 2026
Merged

ci: add frontend client sync check#2192
daryllimyt merged 3 commits intomainfrom
ci/frontend-client-sync-check

Conversation

@daryllimyt
Copy link
Contributor

@daryllimyt daryllimyt commented Feb 25, 2026

Summary

  • Add a "Check frontend client is up to date" step to the frontend CI workflow that runs generate-client-ci and fails if the committed client differs from what the backend generates
  • Expand workflow trigger paths to include tracecat/** and packages/** so the check runs when backend schemas change
  • Add uv/Python setup to support OpenAPI spec generation

Test plan

  • Verify CI passes on a branch with up-to-date client
  • Verify CI fails when backend schemas change without regenerating the client

Summary by cubic

Adds a CI check to keep the frontend API client in sync with the backend OpenAPI schema. The job now formats only the generated client before diffing and runs on backend changes to prevent drift.

  • New Features
    • Verifies client sync by generating the client, normalizing formatting for frontend/src/client with Biome, then diffing that directory.
    • Expands workflow triggers to include tracecat/** and packages/** so backend schema changes run the check.
    • Sets up uv and Python dependencies for OpenAPI spec generation.

Written for commit 7030430. Summary will update on new commits.

@daryllimyt daryllimyt added the cicd Changes to CICD workflows and configurations label Feb 25, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/workflows/lint-frontend.yml">

<violation number="1" location=".github/workflows/lint-frontend.yml:67">
P2: CI linting should not auto-fix; using `--fix`/`ruff format` hides violations. Switch to check-only commands so CI fails when lint/format drift is introduced.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@daryllimyt daryllimyt merged commit d535289 into main Feb 25, 2026
10 checks passed
@daryllimyt daryllimyt deleted the ci/frontend-client-sync-check branch February 25, 2026 23:15
daryllimyt added a commit that referenced this pull request Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cicd Changes to CICD workflows and configurations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant