Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web app karma tests are flaky #3619

Closed
1 task done
Tracked by #2782
tmetzke opened this issue Jul 28, 2023 · 2 comments
Closed
1 task done
Tracked by #2782

Web app karma tests are flaky #3619

tmetzke opened this issue Jul 28, 2023 · 2 comments
Assignees
Labels
group:build-failure All issues that describe CI instabilities/flaky tests. DRI: Thorben scope:ci Changes to the CI, e.g. Jenkins pipelines. scope:webapp Changes to all the webapps. type:subtask Issues that are subtasks of another issue. Must always be part of the breakdown of the parent issue. version:7.20.0-alpha6 version:7.20.0

Comments

@tmetzke
Copy link
Member

tmetzke commented Jul 28, 2023

Acceptance Criteria (Required on creation)

  • Web app Karma test stages are either stabilized or removed from the CI if their value is not high enough.

Hints

  • The value of the tests is limited, they are unit tests for the web app UI and easily break.
  • We have unit tests for the web apps backend as well as E2E tests for the UI parts of the web apps.

Links

Breakdown

Pull Requests

@tmetzke
Copy link
Member Author

tmetzke commented Jul 28, 2023

@tasso94, please assess the value of the Karma tests and decide whether we want to stabilize or remove them in the long run.

@tmetzke tmetzke added group:build-failure All issues that describe CI instabilities/flaky tests. DRI: Thorben scope:ci Changes to the CI, e.g. Jenkins pipelines. scope:webapp Changes to all the webapps. type:subtask Issues that are subtasks of another issue. Must always be part of the breakdown of the parent issue. version:7.20.0 labels Jul 28, 2023
@tasso94
Copy link
Member

tasso94 commented Aug 21, 2023

Context

  • Unit tests are easy to write and maintain with stable API and when doing black box tests.
    • We are developing a web application with no stable API (the most stable API is the User Interface itself which we test through E2E tests) – whenever introducing new features or refactoring code, the unit tests break and must be maintained.
  • We didn't introduce new karma tests for at least seven years.
  • Tests should be a safety net for developers to ensure that changes don't break existing behavior and to reduce bugs.
    • This is not the case for these tests; they usually break while refactoring code but don't uncover actual problems.
  • Our E2E test suite uncovers more problems and is a real developer's safety net.
  • The unit tests are flaky.

Decision

Let's remove the karma unit tests since they don't bring any value; maintaining them is unjustified extra effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group:build-failure All issues that describe CI instabilities/flaky tests. DRI: Thorben scope:ci Changes to the CI, e.g. Jenkins pipelines. scope:webapp Changes to all the webapps. type:subtask Issues that are subtasks of another issue. Must always be part of the breakdown of the parent issue. version:7.20.0-alpha6 version:7.20.0
Projects
None yet
Development

No branches or pull requests

3 participants