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

Makefile: don't log verbose from tests by default #3351

Merged
merged 1 commit into from Mar 29, 2022
Merged

Makefile: don't log verbose from tests by default #3351

merged 1 commit into from Mar 29, 2022

Conversation

invidian
Copy link
Member

@invidian invidian commented Mar 25, 2022

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Test logs are mainly useful either when developing/debugging tests or
when the tests are failing. If some test fails, Go will automatically
print the outputs from this tests.

Printing all test logs all the time makes it much difficult to find
which test is actually failing and which output belongs to it, so I
suggest we don't use -v by default.

Similar change has been made in CAPI a while ago:
kubernetes-sigs/cluster-api#4187

Signed-off-by: Mateusz Gozdek mgozdek@microsoft.com

Release note:

NONE

@k8s-ci-robot
Copy link
Contributor

@invidian: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Mar 25, 2022
@k8s-ci-robot
Copy link
Contributor

@invidian: This issue is currently awaiting triage.

If CAPA/CAPI contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 25, 2022
@sedefsavas
Copy link
Contributor

Logs are useful for CI jobs, we can also add test-verbose like CAPI if we want this change.

@invidian
Copy link
Member Author

/test pull-cluster-api-provider-aws-test

@invidian
Copy link
Member Author

Aligned the PR more to what has been done in CAPI.

@invidian
Copy link
Member Author

/test pull-cluster-api-provider-aws-test

@Ankitasw
Copy link
Member

@invidian please rebase your PR.

@Ankitasw
Copy link
Member

@invidian let me know if you still face the issue of flaky test after rebasing.

@sedefsavas
Copy link
Contributor

/approve

Waiting for rebase for lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sedefsavas

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 29, 2022
Test logs are mainly useful either when developing/debugging tests or
when the tests are failing. If some test fails, Go will automatically
print the outputs from this tests.

Printing all test logs all the time makes it much difficult to find
which test is actually failing and which output belongs to it, so I
suggest we don't use -v by default.

Similar change has been made in CAPI a while ago:
kubernetes-sigs/cluster-api#4187

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
@Ankitasw
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 29, 2022
@Ankitasw
Copy link
Member

@invidian can you add release note block, maybe copy from other PRs, as it's removed from template but the plugin to check the label in test-infra is yet to be merged.

@richardcase richardcase removed the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Mar 29, 2022
@invidian
Copy link
Member Author

@Ankitasw I'm not sure what's the right format for the release notes now. And label doesn't want to disappear it seems. Do you mind editing the description yourself if you know what's the current format?

@k8s-ci-robot k8s-ci-robot merged commit 31f02eb into kubernetes-sigs:main Mar 29, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.x milestone Mar 29, 2022
@Ankitasw
Copy link
Member

@invidian looks like @richardcase took care :)

@invidian invidian deleted the invidian/dont-log-verbose-from-tests-by-default branch March 29, 2022 07:19
@invidian
Copy link
Member Author

Thanks for all! It's a small thing but a real quality improvement for development experience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants