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

Include unit tests for micro services #624

Merged
merged 4 commits into from
Nov 20, 2018

Conversation

suryajak
Copy link
Contributor

@suryajak suryajak commented Nov 17, 2018

Description of the Change

Include unit tests for micro services so that they run as part of the PR process. Also fixed broken unit tests.

Benefits

Catch issues early during the review process.

Possible Drawbacks

Time for automated PR checks will increase

Applicable Issues

@suryajak suryajak requested a review from devsatishm November 17, 2018 02:25
@devsatishm
Copy link
Contributor

Let's merge them to events before merging them to master.

@suryajak
Copy link
Contributor Author

I am not sure I follow why this would go to events branch? This is an independent feature that has been validated as a stand alone and it has no relation to events.

@suryajak suryajak requested a review from bleggett November 20, 2018 08:52
@bleggett
Copy link
Contributor

bleggett commented Nov 20, 2018

For failing tests, my preference would be to either fix them or delete them entirely.

Disabling is usually the worst option.

@suryajak
Copy link
Contributor Author

We have an issue added here to address the broken unit test. If the question is about dead code (commented out unit test), I can swing either way.

@bleggett
Copy link
Contributor

bleggett commented Nov 20, 2018

If the logged issue will be picked up in the current or next sprint, then we can leave as is, otherwise would prefer they be deleted.

@suryajak suryajak merged commit e085d6b into tmobile:master Nov 20, 2018
@devsatishm
Copy link
Contributor

devsatishm commented Nov 20, 2018

I am not sure I follow why this would go to events branch? This is an independent feature that has been validated as a stand alone and it has no relation to events.

How did we test these changes? Did they go into any of the feature branch (new is fine too) and got validated? We'll need to avoid merging changes to master directly. Intention behind asking them to be merged to events branch is to have these changes validated end to end as part of daily stack validation.

@suryajak
Copy link
Contributor Author

This PR is only for integrating and fixing unit tests. By design unit tests don't need the full stack to come up (except for when you are refactoring the code against which the unit tests are running, which isn't the case here). The validation was done locally as well as by travis as part of the PR.

screen shot 2018-11-20 at 11 50 52 am

@devsatishm
Copy link
Contributor

This PR is only for integrating and fixing unit tests. By design unit tests don't need the full stack to come up (except for when you are refactoring the code against which the unit tests are running, which isn't the case here). The validation was done locally as well as by travis as part of the PR.

screen shot 2018-11-20 at 11 50 52 am

Sure, agreed. But that doesn't qualify these changes to go to master branch directly. Irrespective of the changes, it is required for all them to go into a non-master branch (hotfix-*, feature-*, patch-*, develop) first and then get merged into master. Changes cannot go directly from a developer's fork to the master branch.

@suryajak
Copy link
Contributor Author

Is this a new policy change that all changes have to go through a non-master branch? #582

@devsatishm
Copy link
Contributor

Is this a new policy change that all changes have to go through a non-master branch? #582

There is no policy change. This is the development workflow that this project follows. And, like any others, there can be exceptions like fixing high priority security vulnerabilities in code flagged by Github or hot-fixes that can't wait for the entire development lifecycle to complete. Fixing unit tests doesn't belong to this category. Changes in #582 are tested in the daily stack.

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.

3 participants