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

Move flow folder, fix tool warning and fix progress bar #2520

Merged
merged 8 commits into from
Mar 28, 2024

Conversation

16oeahr
Copy link
Contributor

@16oeahr 16oeahr commented Mar 28, 2024

Description

Move flow folder, fix tool warning and fix progress bar.

Doc CI check: https://github.com/microsoft/promptflow/actions/runs/8464028391

All Promptflow Contribution checklist:

  • The pull request does not introduce [breaking changes].
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: suggested workflow.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@github-actions github-actions bot added the examples Improvements on examples label Mar 28, 2024
log_pattern = re.compile(r".*execution.bulk\s+INFO\s+Finished (\d+) / (\d+) lines\.")
finished_log_pattern = re.compile(r".*execution.bulk\s+INFO\s+Finished (\d+) / (\d+) lines\.")
progress_log_pattern = re.compile(
r".*execution\.bulk\s+INFO\s+\[Lines]\s+\[Finished:\s+(\d+)]\s+\[Processing:\s+(\d+)]\s+\[Pending:\s+(\d+)]"
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 ignore [Lines] from regrex pattern? Maybe more robust.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated. please check again

total = finished + processing + pending
if progress_bar is None:
progress_bar = tqdm(total=total, desc="Processing", miniters=1, file=sys.stdout)
time.sleep(0.1) # wait for 0.1 second to show the progress bar on next line
Copy link
Contributor

Choose a reason for hiding this comment

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

due to tqdm issue, need to wait for 0.1 second between progress bar initialization and first update.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated to use mininterval

@16oeahr 16oeahr marked this pull request as ready for review March 28, 2024 06:55
@16oeahr 16oeahr requested a review from a team as a code owner March 28, 2024 06:55
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 28, 2024
@16oeahr 16oeahr merged commit 59273c7 into feature/test_data_gen Mar 28, 2024
5 checks passed
@16oeahr 16oeahr deleted the user/yalu4/improve_data_gen branch March 28, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation examples Improvements on examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants