-
Notifications
You must be signed in to change notification settings - Fork 280
🌱 e2e: Change logging to avoid use of By #1417
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
🌱 e2e: Change logging to avoid use of By #1417
Conversation
✅ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Revert the workaround in clusterctl upgrade
3daf0ce
to
c4229c9
Compare
Checking that this actually solves the issue. |
What? 😳 |
func Byf(format string, a ...interface{}) { | ||
By("[" + time.Now().Format(time.RFC3339) + "] " + fmt.Sprintf(format, a...)) | ||
func Logf(format string, a ...interface{}) { | ||
fmt.Fprintf(GinkgoWriter, "["+time.Now().Format(time.RFC3339)+"] "+format+"\n", a...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the key thing we refer from CAPZ?
isntead of By, we use fmt.Fprintf(GinkgoWriter
, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a link to their implementation: https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/00d08a3b63cf822474548a1046768a4a1bbe01f0/test/e2e/log.go#L35-L42
/hold cancel |
/lgtm |
/approve thanks :) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lentzi90, tobiasgiese 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 |
What this PR does / why we need it:
Changes the e2e logging solution to avoid
By
, sinceBy
can only be used insideIt
blocks and similar.Reverted the workaround for clusterctl upgrade also.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1414
Special notes for your reviewer:
TODOs:
/hold