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

Auto event log generation when operation finishes #2088

Merged
merged 6 commits into from
Apr 5, 2021

Conversation

uruwhy
Copy link
Contributor

@uruwhy uruwhy commented Mar 18, 2021

Description

Event logs are automatically generated and written to disk when an operation finishes. The event log directory is placed in the event_logs subdirectory of the reports_dir directory as specified in the CALDERA configuration (e.g. /tmp/event_logs). The event log file is of the format operation_$ID.json, where $ID is the operation's ID number.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Added a test to verify the operation method to generate the event log file.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@codecov
Copy link

codecov bot commented Mar 19, 2021

Codecov Report

Merging #2088 (ff1de3b) into master (a491cfe) will increase coverage by 0.07%.
The diff coverage is 94.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2088      +/-   ##
==========================================
+ Coverage   65.60%   65.68%   +0.07%     
==========================================
  Files          65       65              
  Lines        4876     4890      +14     
==========================================
+ Hits         3199     3212      +13     
- Misses       1677     1678       +1     
Impacted Files Coverage Δ
app/objects/c_operation.py 59.78% <94.44%> (+1.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a491cfe...ff1de3b. Read the comment docs.

protoli
protoli previously approved these changes Mar 24, 2021
Copy link
Contributor

@garunagiri garunagiri left a comment

Choose a reason for hiding this comment

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

Looks pretty good, just one suggestion for clarity

app/objects/c_operation.py Outdated Show resolved Hide resolved
garunagiri
garunagiri previously approved these changes Mar 26, 2021
protoli
protoli previously approved these changes Mar 26, 2021
@uruwhy uruwhy dismissed stale reviews from protoli and garunagiri via 93f897f March 30, 2021 14:30
protoli
protoli previously approved these changes Mar 30, 2021
app/objects/c_operation.py Outdated Show resolved Hide resolved
app/objects/c_operation.py Outdated Show resolved Hide resolved
app/objects/c_operation.py Show resolved Hide resolved
@wbooth wbooth removed their assignment Mar 31, 2021
@wbooth
Copy link
Contributor

wbooth commented Mar 31, 2021

when comments are resolved, please send to @bworrell for review

Adding test for auto event log generation and changing method name

Test style fix

Clearer variable name
@uruwhy uruwhy requested a review from bworrell April 1, 2021 20:36
@uruwhy uruwhy requested a review from wbooth April 1, 2021 20:37
@uruwhy uruwhy removed the request for review from garunagiri April 2, 2021 11:52
@uruwhy uruwhy merged commit b7575c3 into master Apr 5, 2021
@uruwhy uruwhy deleted the VIRTS-1785-event-log-auto branch April 5, 2021 14:02
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.

5 participants