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

Updates and Improvements to Unit Tests #298

Merged

Conversation

Kpopovs1
Copy link
Contributor

@Kpopovs1 Kpopovs1 commented Feb 15, 2023

Pull Request

Issue Number: #290

Summary

As a Carbon Aware application developer, I want to know that all the existing codepaths have been unit tested to ensure bugs are caught.

Changes

  • Reviewed unit tests throughout the project and added new tests to improve code coverage.

Checklist

  • Local Tests Passing?
  • CICD and Pipeline Tests Passing?
  • Added any new Tests?
  • Documentation Updates Made?
  • Are there any API Changes? If yes, please describe below.
  • This is not a breaking change. If it is, please describe it below.

Are there API Changes?

No.

Is this a breaking change?

No.

Please follow
GitHub's suggested syntax
to link Pull Requests to Issues via keywords

This PR Closes #290

@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2023

Codecov Report

Merging #298 (5edd0e7) into dev (159f99c) will increase coverage by 2.17%.
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

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #298      +/-   ##
==========================================
+ Coverage   79.55%   81.73%   +2.17%     
==========================================
  Files          69       69              
  Lines        2392     2392              
  Branches      244      244              
==========================================
+ Hits         1903     1955      +52     
+ Misses        408      355      -53     
- Partials       81       82       +1     

see 5 files with indirect coverage changes

@Kpopovs1 Kpopovs1 marked this pull request as ready for review February 15, 2023 13:57
Copy link
Contributor

@juzuluag juzuluag left a comment

Choose a reason for hiding this comment

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

This is looking good. Added a couple of comments and nits. Thanks for doing this @Kpopovs1 , @in4margaret and @JenMadiedo

Copy link
Contributor

@juzuluag juzuluag left a comment

Choose a reason for hiding this comment

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

More comments.

Copy link
Contributor

@juzuluag juzuluag left a comment

Choose a reason for hiding this comment

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

Few comments. Looking good 👍

Copy link
Contributor

@pritipath pritipath left a comment

Choose a reason for hiding this comment

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

Thanks for improving the test coverage. Left a small nit comment, otherwise looks great

Copy link
Contributor

@juzuluag juzuluag left a comment

Choose a reason for hiding this comment

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

Great work!. 👍

Kristjana Popovski added 2 commits February 21, 2023 12:30
PR Reviews from Juan pt. 2

updated schema filter tests

Changes per PR reviews Pt. 3
@Kpopovs1
Copy link
Contributor Author

This is ready for review @vaughanknight , @gfmatthews

Copy link
Contributor

@JenMadiedo JenMadiedo left a comment

Choose a reason for hiding this comment

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

🚢 -it

@Willmish Willmish added the Ready for Review PR Ready for review with the GSF team for merge label Mar 6, 2023
Copy link
Contributor

@vaughanknight vaughanknight left a comment

Choose a reason for hiding this comment

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

Approved.

Copy link
Collaborator

@Willmish Willmish left a comment

Choose a reason for hiding this comment

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

See Merge conflicts after merging other PRs @Kpopovs1 - this one does not render in GH, and @vaughanknight looked at it locally and is unsure on documentation merge conflicts.

@Willmish
Copy link
Collaborator

Willmish commented Mar 17, 2023

Hi @Kpopovs1 - I can see that you are struggling with getting the DCO check to pass - its a new requirement in all GSF repositories. Please see #309 for more info.

As you are the sole author of these commits, you can rebase them and add signoff to each one of them. (this is not the preferred way, but it works)

However, and I can see that you are using the preferred way of adding a remediation commit. Since it looks like you have sign-offs from two seperate github emails, might be easier for you to reset the remediation commits and force push a clean remediation commit with the proper signoffs.

So more specifically - git reset both 5edd0e7 and 1dd1f12, and add in its a place a single remediation commit, which only has one sign-off at the bottom of it (only your MS email). You would need to force push those changes, but at least you don't have to modify the entire history of this branch by rebasing.

You can set the account name and email which are used for sign offs by default for a specific repository via:

git config --local user.name "Kristjana Popovski"
git config --local user.email "[email protected]"

I, Kristjana Popovski <[email protected]>, hereby add my Signed-off-by to this commit: 5830bc1
I, Kristjana Popovski <[email protected]>, hereby add my Signed-off-by to this commit: 27872f9

Signed-off-by: Kristjana Popovski <[email protected]>
@Kpopovs1
Copy link
Contributor Author

Should be good to go! Let me know if you notice anything else @vaughanknight , @Willmish

Copy link
Contributor

@vaughanknight vaughanknight left a comment

Choose a reason for hiding this comment

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

Second round of reviews, looks good.

@vaughanknight vaughanknight merged commit 43de9b0 into Green-Software-Foundation:dev Mar 21, 2023
@danuw danuw removed the Ready for Review PR Ready for review with the GSF team for merge label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Contribution]: Improve unit test coverage and style
8 participants