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

feat(sdk): Add MakeItStop #613

Merged
merged 1 commit into from
Jan 8, 2021
Merged

Conversation

AlexCuse
Copy link
Contributor

@AlexCuse AlexCuse commented Dec 21, 2020

Store reference on the sdk to a CancelFunc created in MakeItRun and
expose to enable clean programmatic exits.

Signed-off-by: Alex Ullrich [email protected]

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Currently there is no way to exit the service programmatically.

Issue Number:
#612

What is the new behavior?

Adds a MakeItStop method to the sdk instance that allows calling a cancel function managed by MakeItRun.

Does this PR introduce a breaking change?

  • Yes
  • No

Are there any new imports or modules? If so, what are they used for and why?

No

Are there any specific instructions or things that should be known prior to reviewing?

No

Other information

@AlexCuse AlexCuse changed the title fea(sdk): Add MakeItStop feat(sdk): Add MakeItStop Dec 21, 2020
@AlexCuse
Copy link
Contributor Author

I'm pretty sure that the test failure is not related to my change. Is there an easy-ish way to run the arm64 tests without access to an arm64 system?

lenny-goodell
lenny-goodell previously approved these changes Jan 7, 2021
Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

LGTM, we'll need to add documentation issue for Ireland for this.

@AlexCuse
Copy link
Contributor Author

AlexCuse commented Jan 7, 2021

Cool I will rebase right now. If you want to assign documentation issue to me I will knock it out tomorrow @lenny-intel

Store reference on the sdk to a CancelFunc created in MakeItRun and
expose to enable clean programmatic exits.

Signed-off-by: Alex Ullrich <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #613 (3061cd0) into master (8220514) will decrease coverage by 0.08%.
The diff coverage is 44.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #613      +/-   ##
==========================================
- Coverage   60.90%   60.81%   -0.09%     
==========================================
  Files          31       31              
  Lines        1798     1807       +9     
==========================================
+ Hits         1095     1099       +4     
- Misses        630      635       +5     
  Partials       73       73              
Impacted Files Coverage Δ
appsdk/sdk.go 33.33% <44.44%> (+0.46%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8220514...3061cd0. Read the comment docs.

Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

LGTM

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