Skip to content

Fix e2e tests trigger #4850

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Fix e2e tests trigger #4850

wants to merge 8 commits into from

Conversation

KrumTy
Copy link
Collaborator

@KrumTy KrumTy commented Aug 13, 2025

Description

Currently, when a PR is approved for the first time, it is labeled as e2e-approved. And when a e2e-approved label is added, it should trigger e2e tests.

In reality what happens is when a PR is approved, the e2e-approved label is added, but the workflow for tests does not trigger. However if the PR is labeled manually via Github ui as e2e-approved, the tests do trigger.

Potential solution could be adding github secret to the label action to mimic authorized labeling

Solution summary

This PR reworks how E2E tests are triggered:

  • Replace label-based triggering with approval-based triggering and deduplication
  • Add a reusable workflow for “approve + dedupe by PR head SHA” logic
  • Update E2E workflow to use the reusable workflow and only run heavy jobs on Approved reviews of unique commit sha

E2E tests run only after a PR is approved (or when manually dispatched), per on commit sha

  • No runs on commit/push
  • Duplicate approvals/reviews for the same commit do not trigger e2e runs: the new run waits for or mirrors the previous run’s result. It also logs the link to the run it copied.
  • When a new commit is pushed, the head SHA changes, so the next approval will trigger a fresh E2E run

Copy link
Contributor

github-actions bot commented Aug 13, 2025

Code Coverage - Integration Tests

Status Category Percentage Covered / Total
🟢 Statements 81.53% 16219/19891
🟡 Branches 64.41% 7308/11345
🟡 Functions 70.36% 2270/3226
🟢 Lines 81.17% 15257/18796

Copy link
Contributor

github-actions bot commented Aug 13, 2025

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 81.74% 19661/24053
🟡 Branches 67.13% 8524/12698
🟡 Functions 75.71% 5206/6876
🟢 Lines 82.17% 19247/23423

Test suite run success

5048 tests passing in 663 suites.

Report generated by 🧪jest coverage report action from 12f2a87

Copy link
Contributor

github-actions bot commented Aug 13, 2025

Code Coverage - Backend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 92.34% 13840/14988
🟡 Branches 74.04% 4176/5640
🟢 Functions 85.85% 2129/2480
🟢 Lines 92.14% 13229/14358

Test suite run success

2950 tests passing in 286 suites.

Report generated by 🧪jest coverage report action from 12f2a87

pawelangelow
pawelangelow previously approved these changes Aug 13, 2025
@KrumTy KrumTy requested a review from pawelangelow August 13, 2025 10:42
pawelangelow
pawelangelow previously approved these changes Aug 13, 2025
pd-redis
pd-redis previously approved these changes Aug 13, 2025
@KrumTy KrumTy dismissed stale reviews from pd-redis and pawelangelow via 56e5367 August 13, 2025 11:25
pd-redis
pd-redis previously approved these changes Aug 13, 2025
Comment on lines +50 to +51
builds-complete:
needs: [build-docker, build-appimage]
Copy link
Collaborator Author

@KrumTy KrumTy Aug 13, 2025

Choose a reason for hiding this comment

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

intermediate job to wait for both builds to complete (~5mins) to avoid running tests when the other build has failed and the whole workflow will be marked as failed in the end anyway

KIvanow
KIvanow previously approved these changes Aug 13, 2025
@KrumTy KrumTy marked this pull request as ready for review August 13, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants