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

UPSTREAM: 117349: OCPBUGS-19431: Bump lumberjack.v2 v2.0.0 -> v2.2.1 #1552

Conversation

vrutkovs
Copy link
Member

@vrutkovs vrutkovs commented Apr 19, 2023

What type of PR is this?

/kind bug

What this PR does / why we need it:

Update lumberjack.v2 dependency. In upstream its a regular dep bump, but it fixes an Openshift bug - termination log file would be created with 0600 permission and stay persistent, as we use lumberjack in cmd/watch-termination.

Which issue(s) this PR fixes:

Fixes OCPBUGS-11856

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@openshift-ci-robot openshift-ci-robot added the backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. label Apr 19, 2023
@openshift-ci-robot
Copy link

@vrutkovs: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 19, 2023
@openshift-ci
Copy link

openshift-ci bot commented Apr 19, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added kind/bug Categorizes issue or PR as related to a bug. vendor-update Touching vendor dir or related files labels Apr 19, 2023
@vrutkovs vrutkovs force-pushed the bump-natefinch-lumberjack-2.2.1 branch from 41fade4 to 4f81e4b Compare April 19, 2023 18:40
@openshift-ci-robot
Copy link

@vrutkovs: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@vrutkovs vrutkovs changed the title WIP UPSTREAM: <carry>: Bump lumberjack.v2 v2.0.0 -> v2.2.1 UPSTREAM: <carry>: OCPBUGS-11856: Bump lumberjack.v2 v2.0.0 -> v2.2.1 Apr 20, 2023
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 20, 2023
@openshift-ci-robot
Copy link

@vrutkovs: This pull request references Jira Issue OCPBUGS-11856, which is invalid:

  • expected the bug to target the "4.14.0" version, but it targets "4.13.0" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

What type of PR is this?

/kind bug

What this PR does / why we need it:

Update lumberjack.v2 dependency so that termination log file would be created with 0600 permission and toml dependency being dropped

Which issue(s) this PR fixes:

Fixes OCPBUGS-11856

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


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.

@vrutkovs
Copy link
Member Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 20, 2023
@openshift-ci-robot
Copy link

@vrutkovs: This pull request references Jira Issue OCPBUGS-11856, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (dpunia@redhat.com), skipping review request.

In response to this:

/jira refresh

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.

@openshift-ci-robot
Copy link

@vrutkovs: This pull request references Jira Issue OCPBUGS-11856, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (dpunia@redhat.com), skipping review request.

In response to this:

What type of PR is this?

/kind bug

What this PR does / why we need it:

Update lumberjack.v2 dependency so that termination log file would be created with 0600 permission and toml dependency being dropped.

This PR doesn't bump this dependency in all subcomponents as we need to have it applied to cmd/watch-termination. In upstream repo this dependency is indirect, so if I understood correctly it doesn't need to be upstreamed

Which issue(s) this PR fixes:

Fixes OCPBUGS-11856

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


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.

@vrutkovs vrutkovs marked this pull request as ready for review April 20, 2023 08:36
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 20, 2023
@openshift-ci openshift-ci bot requested review from deads2k and soltysh April 20, 2023 08:39
@vrutkovs vrutkovs force-pushed the bump-natefinch-lumberjack-2.2.1 branch from 4f81e4b to 15fab5e Compare April 20, 2023 16:42
@vrutkovs vrutkovs changed the title UPSTREAM: <carry>: OCPBUGS-11856: Bump lumberjack.v2 v2.0.0 -> v2.2.1 UPSTREAM: 117349: OCPBUGS-11856: Bump lumberjack.v2 v2.0.0 -> v2.2.1 Apr 20, 2023
@openshift-ci-robot
Copy link

@vrutkovs: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci-robot
Copy link

@vrutkovs: This pull request references Jira Issue OCPBUGS-11856, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (dpunia@redhat.com), skipping review request.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

What type of PR is this?

/kind bug

What this PR does / why we need it:

Update lumberjack.v2 dependency. In upstream its a regular dep bump, but it fixes an Openshift bug - termination log file would be created with 0600 permission and stay persistent, as we use lumberjack in cmd/watch-termination.

Which issue(s) this PR fixes:

Fixes OCPBUGS-11856

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


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.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 7, 2023
@vrutkovs vrutkovs changed the base branch from master to release-4.13 May 9, 2023 10:19
@openshift-ci-robot openshift-ci-robot removed the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label May 9, 2023
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 21, 2023
@vrutkovs vrutkovs force-pushed the bump-natefinch-lumberjack-2.2.1 branch from 55a024b to b9e75d7 Compare January 2, 2024 11:31
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 2, 2024
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 2, 2024
@openshift-ci-robot
Copy link

@vrutkovs: the contents of this pull request could be automatically validated.

The following commits are valid:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@wangke19
Copy link

wangke19 commented Jan 4, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2024
Copy link

openshift-ci bot commented Jan 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dgrisonnet, soltysh, tkashem, vrutkovs, wangke19

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

@p0lyn0mial
Copy link

@vrutkovs is this behaviour of lumberjack library documented somewhere ? Since the version of lumberjack differs from upstream how can we ensure that on the "next" bump the version will be increased ? does this pr fix also already existing clusters ?

@p0lyn0mial
Copy link

@vrutkovs in more recent releases of the fork we maintain a patch that addresses the issue. If the behaviour of the library is documented and can be trusted then It seems that releases that have the correct version of lumberjack could remove the patch. WDYT?

@vrutkovs
Copy link
Member Author

vrutkovs commented Jan 4, 2024

is this behaviour of lumberjack library documented somewhere ?

Yes - natefinch/lumberjack#120. Oddly enough its not closed upstream

Since the version of lumberjack differs from upstream how can we ensure that on the "next" bump the version will be increased ?

Not sure I understand the question - how can we ensure that micro bump won't overwrite lumberjack version? That should be taken care of during rebase

does this pr fix also already existing clusters ?

Yes, files will be updated on rotation.

It seems that releases that have the correct version of lumberjack could remove the patch

Yes, I think that needs to be done too

@p0lyn0mial
Copy link

Since the version of lumberjack differs from upstream how can we ensure that on the "next" bump the version will be increased ?

Not sure I understand the question - how can we ensure that micro bump won't overwrite lumberjack version? That should be taken care of during rebase

Yeah, I think it depends on how we handle minor bumps. If the process is to take the upstream branch and apply our patches, then we can easily skip this PR.

It seems that releases that have the correct version of lumberjack could remove the patch

Yes, I think that needs to be done too

Would you be open to addressing this issue ?

@vrutkovs
Copy link
Member Author

vrutkovs commented Jan 4, 2024

If the process is to take the upstream branch and apply our patches, then we can easily skip this PR.

I think we're safe on that - a merge commit is created - https://github.com/openshift/kubernetes/blob/master/REBASE.openshift.md#updating-with-git-merge, so a revert would be noticed.

Created #1841 to revert the carry in 4.15+

@p0lyn0mial
Copy link

is this behaviour of lumberjack library documented somewhere ?

Yes - natefinch/lumberjack#120. Oddly enough its not closed upstream

Also there are no references to PR(s) that changed the behaviour. Do we want to take changes ? I would feel better if this behaviour is documented and tested. How did you arrive at this solution ?

@p0lyn0mial
Copy link

@wangke19 hey, did you test the fix on an already existing cluster ? I'm asking because the issue Vadim referenced is still open and it is not clear whether it works. Thanks.

@vrutkovs
Copy link
Member Author

vrutkovs commented Jan 4, 2024

This was fixed in natefinch/lumberjack#83, previous attempt was to merge this in openshift/cluster-kube-apiserver-operator#385

@soltysh
Copy link
Member

soltysh commented Jan 4, 2024

/label backport-risk-assessed

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Jan 4, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 5c56cc3 into openshift:release-4.14 Jan 4, 2024
20 checks passed
@openshift-ci-robot
Copy link

@vrutkovs: Jira Issue OCPBUGS-19431: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-19431 has been moved to the MODIFIED state.

In response to this:

What type of PR is this?

/kind bug

What this PR does / why we need it:

Update lumberjack.v2 dependency. In upstream its a regular dep bump, but it fixes an Openshift bug - termination log file would be created with 0600 permission and stay persistent, as we use lumberjack in cmd/watch-termination.

Which issue(s) this PR fixes:

Fixes OCPBUGS-11856

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

This PR has been included in build openshift-enterprise-pod-container-v4.14.0-202401041534.p0.g5c56cc3.assembly.stream for distgit openshift-enterprise-pod.
All builds following this will include this PR.

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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. backports/validated-commits Indicates that all commits come to merged upstream PRs. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. qe-approved Signifies that QE has signed off on this PR vendor-update Touching vendor dir or related files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet