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

fix: forward context in idler reconciler #495

Merged

Conversation

filariow
Copy link
Contributor

@filariow filariow commented Nov 7, 2023

Signed-off-by: Francesco Ilario [email protected]

@filariow
Copy link
Contributor Author

filariow commented Nov 8, 2023

/retest

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #495 (275ec7e) into master (ddc404e) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #495      +/-   ##
==========================================
+ Coverage   82.34%   82.39%   +0.05%     
==========================================
  Files          29       29              
  Lines        3183     3193      +10     
==========================================
+ Hits         2621     2631      +10     
  Misses        426      426              
  Partials      136      136              
Files Coverage Δ
controllers/idler/idler_controller.go 93.42% <100.00%> (+0.14%) ⬆️

Comment on lines 145 to 146
lctx, lcancel := context.WithCancel(ctx)
defer lcancel()
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's an error due to an improper use of log.IntoContext. let me refactor this

@filariow
Copy link
Contributor Author

filariow commented Nov 9, 2023

/retest

Copy link
Contributor

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

openshift-ci bot commented Nov 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: filariow, MatousJobanek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot removed the lgtm label Nov 14, 2023
@alexeykazakov
Copy link
Contributor

/lgtm

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@openshift-ci openshift-ci bot added the lgtm label Nov 14, 2023
@openshift-merge-bot openshift-merge-bot bot merged commit 1992c36 into codeready-toolchain:master Nov 14, 2023
10 checks passed
@filariow filariow deleted the context-idler branch November 27, 2023 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants