Skip to content

Conversation

@KyleAMathews
Copy link
Contributor

Previously, linting/formatting errors would cause multiple CI jobs to fail simultaneously (often 7+ jobs), making it confusing to identify the actual issue and slowing down CI feedback.

Changes:

  • Created new autoformat.yml workflow that runs all linting/formatting checks in a single job:

    • TypeScript prettier formatting check
    • TypeScript eslint checks (all packages)
    • Elixir mix format check
    • Elixir compilation warnings check
  • Removed redundant linting checks from other workflows:

    • ts_test.yml: Removed stylecheck and format:check from package and example checking jobs (kept typecheck for actual type errors)
    • elixir_tests.yml: Removed the separate formatting job
    • integration_tests.yml: Removed --warnings-as-errors flag from compile step

Now linting/formatting errors will only cause the single autoformat job to fail, while other test jobs focus on functional testing.

Previously, linting/formatting errors would cause multiple CI jobs to
fail simultaneously (often 7+ jobs), making it confusing to identify
the actual issue and slowing down CI feedback.

Changes:
- Created new autoformat.yml workflow that runs all linting/formatting
  checks in a single job:
  - TypeScript prettier formatting check
  - TypeScript eslint checks (all packages)
  - Elixir mix format check
  - Elixir compilation warnings check

- Removed redundant linting checks from other workflows:
  - ts_test.yml: Removed stylecheck and format:check from package
    and example checking jobs (kept typecheck for actual type errors)
  - elixir_tests.yml: Removed the separate formatting job
  - integration_tests.yml: Removed --warnings-as-errors flag from
    compile step

Now linting/formatting errors will only cause the single autoformat
job to fail, while other test jobs focus on functional testing.
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 17, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@electric-sql/react@3445
npm i https://pkg.pr.new/@electric-sql/client@3445
npm i https://pkg.pr.new/@electric-sql/y-electric@3445

commit: deb452f

@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.37%. Comparing base (6bb011b) to head (097cc53).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3445      +/-   ##
==========================================
+ Coverage   67.45%   73.37%   +5.91%     
==========================================
  Files         180       28     -152     
  Lines        9671     1198    -8473     
  Branches      359      107     -252     
==========================================
- Hits         6524      879    -5645     
+ Misses       3145      318    -2827     
+ Partials        2        1       -1     
Flag Coverage Δ
elixir 73.94% <ø> (+9.90%) ⬆️
elixir-client 73.94% <ø> (-0.53%) ⬇️
packages/experimental 87.73% <ø> (ø)
packages/react-hooks 86.48% <ø> (ø)
packages/typescript-client ?
packages/y-electric 55.12% <ø> (ø)
postgres-140000 ?
postgres-170000 ?
postgres-180000 ?
sync-service ?
typescript 72.39% <ø> (-14.67%) ⬇️
unit-tests 73.37% <ø> (+5.91%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Separate the formatting checks into two independent jobs that run in
parallel:
- typescript_formatting: Prettier and ESLint checks for TS/JS code
- elixir_formatting: mix format and compilation warnings for Elixir

This ensures failures in one language ecosystem don't block feedback
from the other, and both can run concurrently.
Copy link
Member

@alco alco left a comment

Choose a reason for hiding this comment

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

Nice!

@netlify
Copy link

netlify bot commented Nov 18, 2025

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit c862009
🔍 Latest deploy log https://app.netlify.com/projects/electric-next/deploys/691c593617b2d20008656ed8
😎 Deploy Preview https://deploy-preview-3445--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@KyleAMathews KyleAMathews merged commit c7adffa into main Nov 18, 2025
20 of 28 checks passed
@KyleAMathews KyleAMathews deleted the claude/consolidate-linting-ci-016xvNjnWVXhLGTq3t7u1VVD branch November 18, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants