Skip to content

Conversation

@pawelangelow
Copy link
Contributor

@pawelangelow pawelangelow commented Dec 18, 2025

What

Adds ESLint as a blocking step in CI before tests run:

  1. New lint.yml workflow - Runs ESLint as a required check that blocks test execution if linting fails
  2. Fix import/extensions rule - Fixed ESLint config to ignore api/dist folder
  3. Remove redundant Code analysis steps - Removed the non-blocking lint steps from frontend and backend test workflows (these only sent Slack reports, didn't block on errors)

Changes

  • Tests now wait for lint to pass before running
  • Lint failures block the pipeline (previously lint errors were just reported to Slack)
  • Faster feedback - lint runs in parallel, fails fast if there are issues

Testing

CI pipeline runs on the branch.

Success pipeline

Screenshot 2025-12-19 at 11 27 57

Exit as soon as the linting fails

Screenshot 2025-12-18 at 16 52 09

Pull Request opened by Augment Code with guidance from the PR author


Note

Introduces a blocking ESLint workflow and makes all test jobs depend on it, while removing legacy non-blocking lint steps; adds ESLint import-extension ignores for desktop server imports.

  • CI/CD:
    • Blocking ESLint workflow: Adds /.github/workflows/lint.yml to run yarn lint.
    • Test gating: Updates tests.yml to add a lint job and set frontend-tests, backend-tests, and integration-tests to needs: [changes, lint].
    • Cleanup: Removes prior "Code analysis" lint steps from tests-frontend.yml and tests-backend.yml that only posted Slack reports.
  • Desktop:
    • ESLint compatibility: Adds eslint-disable import/extensions comments for api/dist imports in redisinsight/desktop/src/lib/server/server.ts.

Written by Cursor Bugbot for commit 030f55b. This will update automatically on new commits. Configure here.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 18, 2025

Code Coverage - Integration Tests

Status Category Percentage Covered / Total
🟢 Statements 81.52% 16354/20059
🟡 Branches 64.61% 7425/11491
🟡 Functions 70.4% 2289/3251
🟢 Lines 81.16% 15388/18958

@github-actions
Copy link
Contributor

github-actions bot commented Dec 18, 2025

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.86% 21098/25463
🟡 Branches 68.08% 8885/13051
🟡 Functions 78.05% 5783/7409
🟢 Lines 83.25% 20662/24818

Test suite run success

5487 tests passing in 704 suites.

Report generated by 🧪jest coverage report action from 030f55b

@github-actions
Copy link
Contributor

github-actions bot commented Dec 19, 2025

Code Coverage - Backend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 92.33% 13975/15136
🟡 Branches 74.21% 4268/5751
🟢 Functions 85.89% 2148/2501
🟢 Lines 92.14% 13362/14502

Test suite run success

3012 tests passing in 287 suites.

Report generated by 🧪jest coverage report action from 030f55b

valkirilov
valkirilov previously approved these changes Dec 19, 2025
Base automatically changed from feature/optimize-workflow-caching to main December 19, 2025 15:03
@pawelangelow pawelangelow dismissed valkirilov’s stale review December 19, 2025 15:03

The base branch was changed.

- Add lint.yml reusable workflow that runs yarn lint
- Update tests.yml to call lint workflow first
- All test jobs now depend on lint passing
Add inline eslint-disable comments for imports from api/dist
which doesn't exist in CI (clean checkout without build artifacts).
Lint is now run as a blocking step before tests start,
making this Slack-reporting-only step redundant.
@pawelangelow pawelangelow force-pushed the feature/run-eslint-in-ci branch from e92effd to 030f55b Compare December 19, 2025 15:04
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.

3 participants