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

Migrate from junit4 to junit5 #692

Merged
merged 4 commits into from
Jan 19, 2023
Merged

Migrate from junit4 to junit5 #692

merged 4 commits into from
Jan 19, 2023

Conversation

kaibocai
Copy link
Member

@kaibocai kaibocai commented Jan 7, 2023

Issue describing the changes in this PR

Migrate from junit4 to junit5

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Additional PR information

kamperiadis
kamperiadis previously approved these changes Jan 12, 2023
Copy link
Collaborator

@kamperiadis kamperiadis left a comment

Choose a reason for hiding this comment

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

LGTM but it looks like you have some build issues to resolve.

@@ -25,7 +25,6 @@ public InvocationRequestHandler(JavaFunctionBroker broker) {

@Override
String execute(InvocationRequest request, InvocationResponse.Builder response) throws Exception {
WorkerLogManager.getSystemLogger().log(Level.INFO, "Java version - " + getJavaVersion());

Choose a reason for hiding this comment

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

Any reason this log is removed? This was added to make it easier to get java version in kusto logs specifically for consumption apps as they use placeholders. I suggest we retain this.

Copy link
Member Author

Choose a reason for hiding this comment

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

we can check the version by using log here

WorkerLogManager.getSystemLogger().info("Loading JavaMethodExecutorImpl");
, and from applens we can also tell the version.

My concern is that put it in invocation is not a good place, when cx is having thousands rps, this can be kind of annoying and it may impact the throughput and performance when the rps is high as we need to run getJavaverion very frequently and log them to host from stdout.

So if we have a way to tell the java version, let's just save the resources as much as possible.

Choose a reason for hiding this comment

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

Understand your concern. I feel it is better to retain it with a lower log level. This log specifically informs not only the java version but also the java path which is useful for the customer and us. Some customers had reached out asking how to get this information. The time we would save with one log is quite miniscule. Feel free to combine java version with the next log if it saves time.

Copy link
Member Author

Choose a reason for hiding this comment

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

I moved the log to function load request handler as function load is far fewer than function invocation.

@kaibocai
Copy link
Member Author

/azp run

1 similar comment
@kaibocai
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kaibocai kaibocai merged commit 3d29724 into dev Jan 19, 2023
@kaibocai kaibocai deleted the kaibocai/housekeeping branch January 19, 2023 17:41
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