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

fix: test_get_incomplete_run #1983

Closed
wants to merge 7 commits into from

Conversation

elliotzh
Copy link
Contributor

@elliotzh elliotzh commented Feb 6, 2024

Description

This pull request includes a change in the test_get_incomplete_run method in the src/promptflow/tests/sdk_cli_test/e2etests/test_flow_run.py file. The change replaces the shutil.rmtree function, which was used to delete the entire directory, with the os.remove function to only delete the flow.dag.yaml file. This change is due to the .promptflow directory being occupied, which prevents the deletion of the entire directory. A comment was added to remind to check whether this behavior is expected.

https://github.com/microsoft/promptflow/actions/runs/7795616592/job/21258881713

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.

Ying Chen and others added 7 commits February 5, 2024 18:34
# Description

Please add an informative description that covers that changes made by
the pull request and link all relevant issues.

# 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](../CONTRIBUTING.md).**
- [ ] **Create an issue and link to the pull request to get dedicated
review from promptflow team. Learn more: [suggested
workflow](../CONTRIBUTING.md#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](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

### Testing Guidelines
- [ ] Pull request includes test coverage for the included changes.
# Description

Please add an informative description that covers that changes made by
the pull request and link all relevant issues.

# All Promptflow Contribution checklist:
- [x] **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](../CONTRIBUTING.md).**
- [ ] **Create an issue and link to the pull request to get dedicated
review from promptflow team. Learn more: [suggested
workflow](../CONTRIBUTING.md#suggested-workflow).**

## General Guidelines and Best Practices
- [x] 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](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

### Testing Guidelines
- [x] Pull request includes test coverage for the included changes.
@elliotzh elliotzh requested a review from a team as a code owner February 6, 2024 07:01
Copy link

github-actions bot commented Feb 6, 2024

Test Results

    42 files      42 suites   9h 57m 6s ⏱️
 1 447 tests  1 413 ✅  22 💤 10 ❌ 2 🔥
17 226 runs  16 880 ✅ 311 💤 33 ❌ 2 🔥

For more details on these failures and errors, see this check.

Results for commit ef57970.

Copy link

github-actions bot commented Feb 6, 2024

SDK CLI Global Config Test Result zhangxingzhi/fix-get-incomplete-run

2 tests   2 ✅  49s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit ef57970.

Copy link

github-actions bot commented Feb 6, 2024

promptflow SDK CLI Azure E2E Test Result zhangxingzhi/fix-get-incomplete-run

  4 files    4 suites   3m 20s ⏱️
147 tests 126 ✅ 21 💤 0 ❌
588 runs  504 ✅ 84 💤 0 ❌

Results for commit ef57970.

Copy link

github-actions bot commented Feb 6, 2024

SDK CLI Test Result zhangxingzhi/fix-get-incomplete-run

   12 files     12 suites   39m 25s ⏱️
  416 tests   398 ✅ 18 💤 0 ❌
1 664 runs  1 592 ✅ 72 💤 0 ❌

Results for commit ef57970.

@@ -1295,7 +1295,9 @@ def test_get_incomplete_run(self, local_client, pf) -> None:
)

# remove run dag
shutil.rmtree(f"{temp_dir}/print_env_var")
# TODO 2945229: Han to check whether this is expected - can't delete the whole directory given .promptflow
# is occupied
Copy link
Contributor

Choose a reason for hiding this comment

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

why .promptflow is occupied?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also curious with the same thing

Copy link
Contributor

Choose a reason for hiding this comment

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

This is temporary directory like /tmp/xxxx/print_env_var or C:\User\xxx\Temp\print_env_var.
But it is still weird why the folder is not released after pf run.

Base automatically changed from release/promptflow/1.5.0 to main February 6, 2024 10:55
@YingChen1996 YingChen1996 requested review from a team as code owners February 6, 2024 10:55
Copy link

github-actions bot commented Mar 3, 2024

Hi, thank you for your interest in helping to improve the prompt flow experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment.

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue/pull request label Mar 3, 2024
Copy link

Hi, thank you for your contribution. Since there has not been recent engagement, we are going to close this out. Feel free to reopen if you'd like to continue working on these changes. Please be sure to remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.

@github-actions github-actions bot closed this Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-recent-activity There has been no recent activity on this issue/pull request promptflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants