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

copyright are wrongly updated when doing 'make update' #3

Closed
dingyin opened this issue Feb 4, 2020 · 2 comments
Closed

copyright are wrongly updated when doing 'make update' #3

dingyin opened this issue Feb 4, 2020 · 2 comments
Assignees
Labels
area/project-infra Issues related to project quality improvement

Comments

@dingyin
Copy link
Collaborator

dingyin commented Feb 4, 2020

What happened:
After running 'make update', a lot of unchanged files are updated with new copyright.

What you expected to happen:
No change for unchanged files.

How to reproduce it (as minimally and precisely as possible):
Clean clone Arktos repo, then run 'make update'.

Anything else we need to know?:

  • Seen these error messages on screen:
    Inspecting copyright files, writing logs to _output/ArktosCopyrightTool.log
    sed: 1: "/Users/yinding/workspac ...": transform strings are not the same length

  • In log file, sample error messages are:
    Copied file /Users/yinding/workspace/src/k8s.io/kubernetes/pkg/cloudfabric-controller/replicaset/doc.go has K8s copyright but not Arktos copyright. Skipping.
    Copied file /Users/yinding/workspace/src/k8s.io/kubernetes/pkg/cloudfabric-controller/replicaset/replica_set_utils.go has K8s copyright but not Arktos copyright. Skipping.

Environment:

  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Network plugin and version (if this is a network-related bug):
  • Others:
@Sindica
Copy link
Collaborator

Sindica commented Feb 4, 2020

I did not make any changes. Running ./hack/arktos-up.sh on master, got the following files modified:

modified:   cmd/kubeadm/app/apis/kubeadm/v1beta1/zz_generated.conversion.go
modified:   pkg/apis/apps/v1/zz_generated.defaults.go
modified:   pkg/apis/apps/v1beta1/zz_generated.defaults.go
modified:   pkg/apis/apps/v1beta2/zz_generated.defaults.go
modified:   pkg/apis/batch/v1/zz_generated.defaults.go
modified:   pkg/apis/core/v1/zz_generated.defaults.go
modified:   pkg/apis/extensions/v1beta1/zz_generated.defaults.go

Changes:
-Copyright 2020 Authors of Arktos - file modified.

@vinaykul
Copy link
Member

Closing this issue - this was not a copyright tool problem. It was triggered due to a missed custom_metric generated file checkin between Jan 24 and Feb 18.

Generated file changes and gofmt changes seem to be often missed in PRs due to missed make update before sending PRs. One possible way to prevent this is to reject PRs if make update, make all , make quick-release steps leave any checked-out files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/project-infra Issues related to project quality improvement
Projects
None yet
Development

No branches or pull requests

4 participants