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

[YUNIKORN-825] The protoc-gen-go version of si.pb.go should be v1.26.… #49

Closed
wants to merge 3 commits into from

Conversation

chia7712
Copy link
Contributor

…0 rather then v1.27.1

What is this PR for?

the protoc version in go.mod (https://github.com/apache/incubator-yunikorn-scheduler-interface/blob/master/go.mod#L27) is v1.26.0

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

Todos

  • - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-825

How should this be tested?

Screenshots (if appropriate)

Questions:

  • - The licenses files need update.
  • - There is breaking changes for older versions.
  • - It needs documentation.

@wilfred-s
Copy link
Contributor

This will not fix the issue.

The commit for YUNIKORN-815 is dirty and has incorrect information in the go.sum file for the protobuf version.

There is also an issue with the way go install works as it was introduced in that change. It automatically upgrades the dependency for the grpc library to the latest version (currently 1.40).
This means that we now have might a moving target. A clean system build will not always build against the same version. Our build system cannot create a reproducible build anymore because the grpc version might just change when running that build.
@yangwwei @kingamarton

@wilfred-s
Copy link
Contributor

I have re-opened YUNIKORN-815 to look at the go install side of things. For this jira we at least need to remove the two offending lines from go.sum so we can proceed with this fix.

@chia7712
Copy link
Contributor Author

For this jira we at least need to remove the two offending lines from go.sum so we can proceed with this fix.

done. BTW, should we keep go.mod and go.sum consistent to the result of go mod tidy? It is fine to run go mod tidy only when making release, but letting them be tidy can avoid unintentional code changes.

@yangwwei
Copy link
Contributor

This will not fix the issue.

The commit for YUNIKORN-815 is dirty and has incorrect information in the go.sum file for the protobuf version.

There is also an issue with the way go install works as it was introduced in that change. It automatically upgrades the dependency for the grpc library to the latest version (currently 1.40).
This means that we now have might a moving target. A clean system build will not always build against the same version. Our build system cannot create a reproducible build anymore because the grpc version might just change when running that build.
@yangwwei @kingamarton

Yes, I am working on this ... our SI build is broken, I am unable to update the dep for core and shim because of this. This is failing even before YUNIKORN-815.

@chia7712
Copy link
Contributor Author

it seems #51 can resolve this issue. close this :)

@chia7712 chia7712 closed this Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants