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

NH-69948: upgrade to 14.0.1 #110

Merged
merged 9 commits into from
Jan 25, 2024
Merged

NH-69948: upgrade to 14.0.1 #110

merged 9 commits into from
Jan 25, 2024

Conversation

xuan-cao-swi
Copy link
Contributor

@xuan-cao-swi xuan-cao-swi commented Jan 18, 2024

Description

  • Upgrade core library to 14.0.1
  • Integrate the log_type

Test (if applicable)

  • Standard test case for determining log_type
  • ad hoc test on local to ensure the log is saved to file, and ensure no log if set to disable

@xuan-cao-swi xuan-cao-swi requested a review from a team as a code owner January 18, 2024 19:50
@xuan-cao-swi xuan-cao-swi changed the title Nh 69948 NH-69948: upgrade to 14.0.0 Jan 18, 2024
ext/oboe_metal/src/VERSION Outdated Show resolved Hide resolved
@xuan-cao-swi xuan-cao-swi changed the title NH-69948: upgrade to 14.0.0 NH-69948: upgrade to 14.0.1 Jan 18, 2024
@xuan-cao-swi xuan-cao-swi requested review from cheempz and a team January 19, 2024 14:22
Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

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

Looks good @xuan-cao-swi! I'd like a small enhancement as noted in the comments, lmk if we should discuss.

CONFIGURATION.md Outdated Show resolved Hide resolved
CONFIGURATION.md Outdated Show resolved Hide resolved
options = SolarWindsAPM::OboeInitOptions.instance.array_for_oboe
_(options[21]).must_equal 2
end
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also have tests verify the log_file_path init setting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To create the actual file, we kind need the c library, which is not doable here because we don't compile liboboe anymore for testing

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, but how about verify that the init option for log file is set to the correct value based on env var? And if log level is disabled, I'd assume we don't ask liboboe to create a log file, i.e. env var for log file is ignored (not set in init option).

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually I think liboboe itself will ignore the log file option if log type is set to disabled? It would be good to see at least ad-hoc testing results in the Jira description.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but how about verify that the init option for log file is set to the correct value based on env var?

Yes, we have test for it. I also create new one under logger test section

And if log level is disabled, I'd assume we don't ask liboboe to create a log file, i.e. env var for log file is ignored (not set in init option). Actually I think liboboe itself will ignore the log file option if log type is set to disabled?

Yes, if the log_type is not file based, the option will be invalid, and liboboe logger only create the file when the file path is valid value (here)

It would be good to see at least ad-hoc testing results in the Jira description.

You mean like in testbed? I already did manual testing, it seems work (i.e. no file created if disabled)

Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the revisit @xuan-cao-swi! I updated the config docs in 82c7189, take a look.

@xuan-cao-swi xuan-cao-swi merged commit 9167c79 into main Jan 25, 2024
12 checks passed
@xuan-cao-swi xuan-cao-swi deleted the NH-69948 branch January 25, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants