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

issue:4151975-Log analyzer telemetry file extract #272

Merged
merged 9 commits into from
Nov 7, 2024

Conversation

boazhaim
Copy link
Collaborator

@boazhaim boazhaim commented Nov 6, 2024

What

Extracting telemetry logs

Why ?

We need them in order to support analysis of them

How ?

Adding support to extract them from tar/directory.

Testing ?

Local testing with dump + directory.

Special triggers

Use the following phrases as comments to trigger different runs

  • bot:retest rerun Jenkins CI (to rerun GitHub CI, use "Checks" tab on PR page and rerun all jobs)
  • bot:upgrade run additional update tests

Copy link
Collaborator

@shmufeld shmufeld left a comment

Choose a reason for hiding this comment

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

I think you should add a documentation for all this code..

@@ -125,7 +125,18 @@ def full_analysis(self):
Run all the analysis and returns a list of all the graphs created and their title
"""
for func in self._funcs_for_analysis:
func()
try:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you should add documentation

logs_with_dirs[dir_name].add(base_name)
else:
single_name_logs.add(base_name)
return single_name_logs, logs_with_dirs
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wish someone will love me as you love tuples

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What is a tuple? do explain!

I think it is one of the nice benefits python gives...

files_to_extract = set(files_to_extract)
directories_to_extract = set(directories_to_extract)
found_files = set()
not_found_files = set(files_to_extract)
_, logs_with_dirs = self._split_based_on_dir(files_to_extract)
Copy link
Collaborator

Choose a reason for hiding this comment

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

why _?
please rename to a meaningfull name

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since it is not used.
This function returns 2 items, for this case one is not needed but for the other cases it is needed

@boazhaim boazhaim merged commit 1dd3aa4 into main Nov 7, 2024
2 checks passed
@boazhaim boazhaim deleted the log-analyzer-telemetery-file-extract branch November 7, 2024 08:17
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