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: runtime backward compatibility #3059

Merged
merged 8 commits into from
Apr 29, 2024
Merged

Conversation

elliotzh
Copy link
Contributor

@elliotzh elliotzh commented Apr 28, 2024

Description

there is an issue on pip that, when installing promptflow < 1.8.0 with promptflow >= 1.8.0 installed, it will try to
uninstall promptflow first, but will keep the directory _utils.
after that, both the _utils directory and old _utils.py file will exist in the site-packages directory and cause import error.

So:

  1. we can't recover _utils.py given 1.10.0 already includes directory _utils
  2. instead, we rename _utils to _utilities

PR that bring this change: link

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.

@elliotzh elliotzh requested review from a team and brynn-code as code owners April 28, 2024 09:09
@elliotzh elliotzh changed the title Dev/runtime compatibility hot fix fix: runtime backward compatibility Apr 28, 2024
Copy link

github-actions bot commented Apr 28, 2024

promptflow SDK CLI Azure E2E Test Result dev/runtime-compatibility-hot-fix

  4 files    4 suites   4m 6s ⏱️
238 tests 203 ✅  35 💤 0 ❌
952 runs  812 ✅ 140 💤 0 ❌

Results for commit 4236e7d.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 28, 2024

SDK CLI Global Config Test Result dev/runtime-compatibility-hot-fix

6 tests   6 ✅  1m 16s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 4236e7d.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 28, 2024

Executor Unit Test Result dev/runtime-compatibility-hot-fix

792 tests   792 ✅  3m 44s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit 4236e7d.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 28, 2024

Executor E2E Test Result dev/runtime-compatibility-hot-fix

242 tests   237 ✅  5m 11s ⏱️
  1 suites    5 💤
  1 files      0 ❌

Results for commit 4236e7d.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 28, 2024

SDK CLI Test Result dev/runtime-compatibility-hot-fix

    4 files      4 suites   57m 36s ⏱️
  664 tests   651 ✅ 13 💤 0 ❌
2 656 runs  2 604 ✅ 52 💤 0 ❌

Results for commit 4236e7d.

♻️ This comment has been updated with latest results.

wangchao1230
wangchao1230 previously approved these changes Apr 28, 2024
crazygao
crazygao previously approved these changes Apr 29, 2024
thy09
thy09 previously approved these changes Apr 29, 2024
@elliotzh elliotzh dismissed stale reviews from thy09 and crazygao via 605b88b April 29, 2024 09:51
@elliotzh elliotzh force-pushed the dev/runtime-compatibility-hot-fix branch from 833a0f9 to 605b88b Compare April 29, 2024 09:51
brynn-code
brynn-code previously approved these changes Apr 29, 2024
crazygao
crazygao previously approved these changes Apr 29, 2024
thy09
thy09 previously approved these changes Apr 29, 2024
@elliotzh elliotzh dismissed stale reviews from thy09 and crazygao via 4236e7d April 29, 2024 10:21
@elliotzh elliotzh force-pushed the dev/runtime-compatibility-hot-fix branch from 253bc8f to 4236e7d Compare April 29, 2024 10:21
@elliotzh elliotzh merged commit 1a88195 into main Apr 29, 2024
41 checks passed
@elliotzh elliotzh deleted the dev/runtime-compatibility-hot-fix branch April 29, 2024 10:46
elliotzh added a commit that referenced this pull request Apr 30, 2024
# Description

there is an issue on pip that, when installing promptflow < 1.8.0 with
promptflow >= 1.8.0 installed, it will try to
uninstall promptflow first, but will keep the directory _utils.
after that, both the _utils directory and old _utils.py file will exist
in the site-packages directory and cause import error.

So:
1. we can't recover _utils.py given 1.10.0 already includes directory
_utils
2. instead, we rename _utils to _utilities

PR that bring this change:
[link](https://github.com/microsoft/promptflow/pull/3019/files#diff-928b3b3c5544dade19729ae052cef0161ab1d6f8ea443fee17f8275ee1d6b1b4)

# All Promptflow Contribution checklist:
- [x] **The pull request does not introduce [breaking changes].**
- [x] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [x] **I have read the [contribution guidelines](../CONTRIBUTING.md).**
- [x] **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
- [ ] Pull request includes test coverage for the included changes.

(cherry picked from commit 1a88195)
crazygao pushed a commit that referenced this pull request May 6, 2024
# Description

there is an issue on pip that, when installing promptflow < 1.8.0 with
promptflow >= 1.8.0 installed, it will try to
uninstall promptflow first, but will keep the directory _utils.
after that, both the _utils directory and old _utils.py file will exist
in the site-packages directory and cause import error.

So:
1. we can't recover _utils.py given 1.10.0 already includes directory
_utils
2. instead, we rename _utils to _utilities

PR that bring this change:
[link](https://github.com/microsoft/promptflow/pull/3019/files#diff-928b3b3c5544dade19729ae052cef0161ab1d6f8ea443fee17f8275ee1d6b1b4)

# All Promptflow Contribution checklist:
- [x] **The pull request does not introduce [breaking changes].**
- [x] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [x] **I have read the [contribution guidelines](../CONTRIBUTING.md).**
- [x] **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
- [ ] Pull request includes test coverage for the included changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants