Lint does not block a merge, and the same test step runs twice

Offen Anfängerfreundlich
#243 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@spikedeeev arbeitet bereits daran.

Seit 23.11.2026.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
82/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, shell, typescript, yaml
Bereich
build-system, ci-cd

Rechercherichtung

Beginne in .github/workflows/ci.yml: Lösche den zweiten Schritt Test http-server und entferne continue-on-error: true aus dem Schritt Lint. Führe pnpm run lint lokal aus, um zu sehen, ob in apps/frontend noch eslint-Fehler übrig sind; deren Behebung ist die einzige eigentliche Arbeit. Fertig ist, wenn CI bei einem Lint-Fehler fehlschlägt und Test http-server genau einmal im Workflow vorkommt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Backend first issue bug good first issue help wanted

Two problems in .github/workflows/ci.yml, both small.

1. Lint is advisory
      - name: Lint
        run: pnpm run lint
        continue-on-error: true

The step is allowed to fail. It was set that way while apps/frontend had around twenty eslint errors, with a note to drop the flag once they were cleared. Worth checking whether they still exist:

pnpm run lint

If it passes, remove continue-on-error: true and lint becomes a real gate. If some remain, fixing them is the issue — and the count is probably small now, since the type gate and the tests have both been tightened since.

2. Test http-server runs twice
      - name: Test http-server
        run: pnpm --filter http-server run test

      # The ws-server authorization tests ...
      - name: Test ws-server
        run: pnpm --filter ws-server run test

      # The auth middleware tests sign real tokens and need no services.
      - name: Test http-server          # <- again
        run: pnpm --filter http-server run test

Two pull requests added the same step independently and both merged. Harmless beyond wasting a minute of CI on every run, but it is the kind of thing that makes a workflow harder to read and encourages the next duplicate.

Worth doing while in there

Each service has its own step, so adding a sixth service means remembering to add a seventh line. A test task in turbo.json plus a root "test": "turbo run test" would collapse all of them into one step and make pnpm test locally mean the same thing as CI. That is a slightly bigger change — fine to do separately, but mention it if you take it on.

Definition of done
  • A pull request with a lint error fails CI
  • Test http-server appears once
  • The full suite still passes

Good first issue: the duplicate is a two-line deletion, and the lint flag is one more. The only real work is whatever pnpm run lint reports.

Vorherrschende Sprache
TypeScript
Sterne
21
Forks
7
Ø Merge
7 Std. 54 Min.
Gemergte PRs (30 T.)
28

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TheCodeHeist-Coder/Rexial

Alle Issues in TheCodeHeist-Coder/Rexial

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.