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-2416] Cleanup replace directives #172

Closed
wants to merge 3 commits into from

Conversation

chenyulin0719
Copy link
Contributor

@chenyulin0719 chenyulin0719 commented Feb 22, 2024

What is this PR for?

Base on the discussion under apache/yunikorn-k8shim#794
and reference to the original Jira https://issues.apache.org/jira/browse/YUNIKORN-2416

Align the replace modules across projects:

  • golang.org/x/crypto to v0.18.0 => v0.19.0 (Indrect require have higer verion)
  • golang.org/x/net v0.20.0 => v0.21.0
  • golang.org/x/sys v0.16.0 => v0.17.0(Indrect require have higer verion)
  • golang.org/x/text v0.14.0
  • golang.org/x/tools v0.17.0

For perf-tool,

  • Update the yunikorn-core/yunikorn-sheduler-interface version (Previous versions are 2023-06-09, 2023-05-17 )
  • Change to use scoped logger. and remove logLevel config. (Can't use the old logger with lastest core version.)

What type of PR is it?

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

Todos

NA

What is the Jira issue?

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

How should this be tested?

go run perf-tools/main.go

Screenshots (if appropriate)

perf-tools completed:
image

CVE check passed:

image

Questions:

Please feel free to close it if yunikorn-release is not in the Jira scope.

}

func SetLogLevel(level int) {
log.InitAndSetLevel(zapcore.Level(level))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we rewrite this function by log.UpdateLoggingConfig?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just moved it back.

image

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