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

Reenabling tests for the UI projects in CI #1807

Merged
merged 4 commits into from
Apr 29, 2023
Merged

Conversation

rob-baldwin
Copy link
Contributor

@rob-baldwin rob-baldwin commented Apr 27, 2023

What this PR does / why we need it:

CI tests were not running for the UI projects, this PR makes minimal changes to get the UI tests to run again.

Which issue(s) this PR fixes:

Mentioned as a pain point in: #1714

Special notes for your reviewer:

I've disabled one test, as I could not figure out why it was failing and guessed it was more important to have the majority of tests running than none.

Does this PR introduce a user-facing change?:

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Unit tests passing
  • End-to-end tests passing

@github-actions github-actions bot added github_actions Pull requests that update Github_actions code UI labels Apr 27, 2023
@rob-baldwin
Copy link
Contributor Author

@dotnet-policy-service agree

@rob-baldwin rob-baldwin marked this pull request as ready for review April 27, 2023 04:25
@@ -60,11 +60,17 @@ jobs:
6.0.x
7.0.x
- name: Restore UI
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's join all restore commands into one step with name Restore.

run: dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI/HealthChecks.UI.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1)
run: |
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI/HealthChecks.UI.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1)
- name: Check formatting UI.Client
Copy link
Collaborator

Choose a reason for hiding this comment

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

The same suggestion for that step - use Check formatting name.

@@ -102,13 +114,17 @@ jobs:
run: dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1)

- name: Build UI
Copy link
Collaborator

Choose a reason for hiding this comment

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

Again - Build.

# flags: UI
# directory: .coverage

- name: Test UI
Copy link
Collaborator

Choose a reason for hiding this comment

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

And again - one step with name Test and && to chain calls to dotnet test.

@codecov-commenter
Copy link

Codecov Report

Merging #1807 (9c439f1) into master (1cc6b67) will increase coverage by 0.70%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master    #1807      +/-   ##
==========================================
+ Coverage   66.26%   66.96%   +0.70%     
==========================================
  Files         145      212      +67     
  Lines        3910     7744    +3834     
  Branches      388      527     +139     
==========================================
+ Hits         2591     5186    +2595     
- Misses       1230     2422    +1192     
- Partials       89      136      +47     
Flag Coverage Δ
UI 67.32% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 70 files with indirect coverage changes

@sungam3r
Copy link
Collaborator

@rob-baldwin Thank you very much.

@sungam3r sungam3r merged commit 38ad069 into Xabaril:master Apr 29, 2023
@sungam3r sungam3r mentioned this pull request Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update Github_actions code UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants