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

Support extract timestamp from patterned datetime string in LAL. #11489

Merged

Conversation

weixiang1862
Copy link
Member

extract timestamp from patterned datetime string in LAL

  • If this is non-trivial feature, paste the links/URLs to the design doc.

  • Update the documentation to include this new feature.

  • Tests(including UT, IT, E2E) are added to verify the new feature.

  • If it's UI related, attach the screenshots below.

  • If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes Support extract timestamp with specified pattern in LAL. #11484.

  • Update the CHANGES log.

@wu-sheng wu-sheng requested a review from kezhenxu94 November 2, 2023 10:34
@wu-sheng wu-sheng added this to the 9.7.0 milestone Nov 2, 2023
@wu-sheng wu-sheng added backend OAP backend related. enhancement Enhancement on performance or codes labels Nov 2, 2023
weixiang1862 and others added 3 commits November 2, 2023 18:38
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
…mp-in-lal' into feature/extract-patterned-timstamp-in-lal
kezhenxu94
kezhenxu94 previously approved these changes Nov 2, 2023
Copy link
Member

@kezhenxu94 kezhenxu94 left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM after CI passed


# This file is used to show how to write configuration files and can be used to test.

setup:
Copy link
Member

@wu-sheng wu-sheng Nov 2, 2023

Choose a reason for hiding this comment

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

Your new e2e seems not to be added to the GHA control file.

Copy link
Member

Choose a reason for hiding this comment

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

So, all the tests are not running.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I forgot it. I will update it.

Copy link
Member

Choose a reason for hiding this comment

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

I am a little confused. Where do you set this log test with the new timestamp style? I can't find it.

Copy link
Member

Choose a reason for hiding this comment

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

And I can see this has been tested through UT. I don't think this is so complex that we have to test it through e2e again, right? @kezhenxu94

Copy link
Member

Choose a reason for hiding this comment

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

If so, and if you want to keep the e2e, you could add this LAL and verification into simple case, it should work too, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

If so, and if you want to keep the e2e, you could add this LAL and verification into simple case, it should work too, right?

I add another UT in LogTestQueryTest, it can check the extract result.

Copy link
Member Author

Choose a reason for hiding this comment

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

Could you please show me how to ref the code in comment? I can not find it, I have to pin a picture every time I want show you the code.

Copy link
Member

Choose a reason for hiding this comment

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

image

You could get this from the Github pages.

And the permlink is locked for this commit.

Copy link
Member Author

Choose a reason for hiding this comment

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

image

You could get this from the Github pages.

And the permlink is locked for this commit.

Thanks, I will try this way next.

wu-sheng
wu-sheng previously approved these changes Nov 3, 2023
Copy link
Member

@wu-sheng wu-sheng left a comment

Choose a reason for hiding this comment

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

LGTM

@wu-sheng
Copy link
Member

wu-sheng commented Nov 3, 2023

Is this change somehow breaking zabbix case? It fails twice.

@weixiang1862
Copy link
Member Author

Is this change somehow breaking zabbix case? It fails twice.

I am not sure, I will check it in my local.

@weixiang1862
Copy link
Member Author

Is this change somehow breaking zabbix case? It fails twice.

zabbix release latest agent image 21 hours ago, it can not start up in my local, maybe this broken the test case?

image

@weixiang1862
Copy link
Member Author

Is this change somehow breaking zabbix case? It fails twice.

zabbix release latest agent image 21 hours ago, it can not start up in my local, maybe this broken the test case?

image

I change zabbix tag to alpine-latest, the case passed.

@kezhenxu94
Copy link
Member

Is this change somehow breaking zabbix case? It fails twice.

zabbix release latest agent image 21 hours ago, it can not start up in my local, maybe this broken the test case?
image

I change zabbix tag to alpine-latest, the case passed.

Can you also push the changes in this PR?

@weixiang1862
Copy link
Member Author

Is this change somehow breaking zabbix case? It fails twice.

zabbix release latest agent image 21 hours ago, it can not start up in my local, maybe this broken the test case?
image

I change zabbix tag to alpine-latest, the case passed.

Can you also push the changes in this PR?

Ok, I will.

@wu-sheng wu-sheng merged commit 0f8c678 into apache:master Nov 3, 2023
167 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend OAP backend related. enhancement Enhancement on performance or codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants