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

github: backend-test: Skip coverage except for PRs #2119

Merged
merged 2 commits into from
Jul 5, 2024
Merged

Conversation

illume
Copy link
Collaborator

@illume illume commented Jul 2, 2024

Prior to this PR, tests running from branches (not PRs) would fail in the backend coverage scripts.

  • github: backend-test: Skip coverage steps unless PR
  • github: backend-test: Add tracing to steps for easy debugging

testing done

I created a testing-rc- branch which triggers the CI on branch pushes. You can see the testing-rc-... branch CI run passes now: https://github.com/headlamp-k8s/headlamp/actions/runs/9760869672 Whereas before this would fail.


NOTE: the charts CI failure is unrelated. There's a PR to fix it here: #2122

illume added 2 commits July 2, 2024 14:15
Because they are not used on branch builds like on main.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
So we can see which of the bash commands in a run block are failing.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
@illume illume requested review from yolossn and a team July 2, 2024 13:08
@illume illume added bug Something isn't working backend Issues related to the backend CI Issue related to CI labels Jul 2, 2024
@illume illume linked an issue Jul 2, 2024 that may be closed by this pull request
Copy link
Contributor

@knrt10 knrt10 left a comment

Choose a reason for hiding this comment

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

+1

@knrt10
Copy link
Contributor

knrt10 commented Jul 4, 2024

We should first merge the template fix though.

@illume illume merged commit a2451d1 into main Jul 5, 2024
42 of 43 checks passed
@illume illume deleted the skip-coverage branch July 5, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Issues related to the backend bug Something isn't working CI Issue related to CI
Projects
Development

Successfully merging this pull request may close these issues.

bug: backend test coverage fails on rc testing branch (and main branch)
2 participants