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

Delay log file creation #196

Closed
wants to merge 24 commits into from
Closed

Delay log file creation #196

wants to merge 24 commits into from

Conversation

wigging
Copy link
Collaborator

@wigging wigging commented Jan 8, 2025

The current version of flowcept creates an empty log file even when no log message is received. This pull request delays the creation of the log file until a log message is actually received. Resolves issue #172 .

@wigging
Copy link
Collaborator Author

wigging commented Jan 8, 2025

This is ready for review. By the way, there is a ridiculous number of workflows and tests running in the GitHub Actions. It took a total of 239 minutes for the checks to run. That's almost 4 hours!

@wigging wigging requested a review from renan-souza January 8, 2025 21:02
@wigging wigging self-assigned this Jan 8, 2025
@wigging
Copy link
Collaborator Author

wigging commented Jan 9, 2025

I rebased this with the dev branch to keep things in sync hence the force-pushed in the timeline.

@wigging
Copy link
Collaborator Author

wigging commented Jan 9, 2025

Ugh. I pulled in something from the dev branch that makes the formatter checks fail.

@wigging
Copy link
Collaborator Author

wigging commented Jan 9, 2025

What is the purpose of this in the run-tests.yml? Why do you need to clean up things at the end of the workflow? Without this, sometimes the tests pass, and sometimes they don't pass.

- name: Clean up
  run: |
    make clean
    find /home/runner/runners/ -type f -name "*.log" -exec sh -c 'echo {}; >"{}"' \; || true

wigging and others added 7 commits January 9, 2025 15:20
Plus:
- Strenghtening identifier guarentee to group_ids in FlowceptLoops -- This was the cause of the recent GH workflows to fail
- Removing loggers from client
- Adding counts and deletes for objects and workflows in MongoDAO
- Changing object inserts to objects insert_or_update
- Fixes in torch capture, to support more configurations
- Removing old main.py file
Makefile Show resolved Hide resolved

checks:
runs-on: ubuntu-22.04
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you specify an Ubuntu version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because it makes it explicit on which version of Ubuntu is used in the workflow. Using ubuntu-latest does not make it clear on which version is considered "latest".

Copy link
Collaborator

@renan-souza renan-souza left a comment

Choose a reason for hiding this comment

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

I have fixed the code formats in the branch that I am working on.

To reduce conflicts, can you please rebase this branch with dev and apply your changes only to the file src/flowcept/commons/flowcept_logger.py?

Optionally, you can also apply your changes to the file .github/workflows/checks.yml

Nevermind. I will work on sync'ing the branches.

@renan-souza renan-souza mentioned this pull request Jan 13, 2025
@renan-souza
Copy link
Collaborator

The changes in this PR have been synchronized with the PR #199.
So I'm closing this.

@renan-souza renan-souza deleted the empty-log-file branch January 13, 2025 18:34
@wigging
Copy link
Collaborator Author

wigging commented Jan 13, 2025

I was busy with a different project today and just now seeing all of this. Why did you have to merge this with another branch?

@renan-souza
Copy link
Collaborator

I was busy with a different project today and just now seeing all of this. Why did you have to merge this with another branch?

Because I also created a branch from dev and I was working on it in parallel with your branch. I just synchronized both branches before merging into dev.

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.

2 participants