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

refactor: export and move shared contexts into pkg/model #931

Merged
merged 2 commits into from
Dec 22, 2021

Conversation

ZauberNerd
Copy link
Contributor

This commit moves the githubContext, jobContext and stepResult structs
from the runner package to the model package in preparation for #908
because the expression.go file lives in the runner package and would
introduce cyclic dependencies with the exprparser package.

@ZauberNerd ZauberNerd requested a review from a team as a code owner December 16, 2021 13:42
@mergify

This comment has been minimized.

@mergify mergify bot added the needs-work Extra attention is needed label Dec 16, 2021
@mergify

This comment has been minimized.

@codecov
Copy link

codecov bot commented Dec 16, 2021

Codecov Report

Merging #931 (b94b333) into master (0f04942) will increase coverage by 7.71%.
The diff coverage is 64.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #931      +/-   ##
==========================================
+ Coverage   49.27%   56.98%   +7.71%     
==========================================
  Files          23       29       +6     
  Lines        2401     4224    +1823     
==========================================
+ Hits         1183     2407    +1224     
- Misses       1090     1610     +520     
- Partials      128      207      +79     
Impacted Files Coverage Δ
pkg/common/executor.go 46.90% <0.00%> (+2.03%) ⬆️
pkg/common/job_error.go 0.00% <0.00%> (ø)
pkg/common/outbound_ip.go 0.00% <0.00%> (ø)
pkg/common/testflag.go 0.00% <0.00%> (ø)
pkg/container/docker_volume.go 0.00% <0.00%> (ø)
pkg/model/action.go 0.00% <0.00%> (ø)
pkg/model/step_result.go 0.00% <0.00%> (ø)
pkg/container/docker_run.go 5.54% <14.15%> (+3.61%) ⬆️
pkg/common/git.go 49.82% <31.81%> (-9.97%) ⬇️
pkg/runner/logger.go 65.43% <37.50%> (+1.28%) ⬆️
... and 36 more

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 5580812...b94b333. Read the comment docs.

@mergify mergify bot removed the needs-work Extra attention is needed label Dec 16, 2021
@ZauberNerd
Copy link
Contributor Author

@catthehacker if this PR is a change you'd be willing to merge before #908 then it is ready for review from our side.

catthehacker
catthehacker previously approved these changes Dec 16, 2021
Copy link
Member

@catthehacker catthehacker left a comment

Choose a reason for hiding this comment

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

I guess it looks ok, @cplee opinion on this will be more valuable

cplee
cplee previously approved these changes Dec 22, 2021
Copy link
Contributor

@cplee cplee left a comment

Choose a reason for hiding this comment

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

These should have been in model package from start...i was lazy 🤷‍♂️

@mergify

This comment has been minimized.

@mergify mergify bot added the needs-work Extra attention is needed label Dec 22, 2021
@mergify
Copy link
Contributor

mergify bot commented Dec 22, 2021

@ZauberNerd this pull request has failed checks 🛠

@mergify
Copy link
Contributor

mergify bot commented Dec 22, 2021

@ZauberNerd this pull request is now in conflict 😩

@mergify mergify bot added the conflict PR has conflicts label Dec 22, 2021
This commit moves the githubContext, jobContext and stepResult structs
from the runner package to the model package in preparation for nektos#908
because the expression.go file lives in the runner package and would
introduce cyclic dependencies with the exprparser package.

Co-authored-by: Markus Wolf <[email protected]>
@ZauberNerd ZauberNerd dismissed stale reviews from cplee and catthehacker via 6efaf9f December 22, 2021 19:27
@mergify mergify bot removed conflict PR has conflicts needs-work Extra attention is needed labels Dec 22, 2021
@mergify mergify bot requested a review from a team December 22, 2021 19:34
@mergify mergify bot requested a review from a team December 22, 2021 19:35
@mergify mergify bot merged commit ed01f46 into nektos:master Dec 22, 2021
@ZauberNerd ZauberNerd deleted the move-shared-contexts branch December 22, 2021 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants