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

[Executor] Support passing connection provider to script executor #3004

Merged

Conversation

lumoslnt
Copy link
Contributor

@lumoslnt lumoslnt commented Apr 25, 2024

Description

Currently we use ConnectionProvider.get_instance to get connections in script executor, and it doesn't support passing connections to it directly, while the flow executor can accept connections, which is inconsistent. For flow serving, we want the behaviors to be consistent to refine the conenction resolving logic, so in this PR, we support directly passing connections to script executor.

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.

Copy link

github-actions bot commented Apr 25, 2024

promptflow SDK CLI Azure E2E Test Result dev/linatang/support-connection-provider-in-script-executor

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

Results for commit 0b007f2.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

promptflow-core test result

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 0b007f2.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

SDK CLI Global Config Test Result dev/linatang/support-connection-provider-in-script-executor

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

Results for commit 0b007f2.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Executor Unit Test Result dev/linatang/support-connection-provider-in-script-executor

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

Results for commit 0b007f2.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Executor E2E Test Result dev/linatang/support-connection-provider-in-script-executor

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

Results for commit 0b007f2.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

SDK CLI Test Result dev/linatang/support-connection-provider-in-script-executor

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

Results for commit 0b007f2.

♻️ This comment has been updated with latest results.

@lumoslnt lumoslnt changed the title [Executor] Support passing connection provider to script executor [Do no review] Support passing connection provider to script executor Apr 25, 2024
@lumoslnt lumoslnt changed the title [Do no review] Support passing connection provider to script executor [Executor] Support passing connection provider to script executor Apr 25, 2024
@lumoslnt lumoslnt force-pushed the dev/linatang/support-connection-provider-in-script-executor branch from 976ae5b to 9abfbe0 Compare April 26, 2024 09:43
@lumoslnt lumoslnt force-pushed the dev/linatang/support-connection-provider-in-script-executor branch from 9abfbe0 to 1169daf Compare April 26, 2024 10:00
thy09
thy09 previously approved these changes Apr 29, 2024
@lumoslnt lumoslnt merged commit 0bc314c into main Apr 30, 2024
51 checks passed
@lumoslnt lumoslnt deleted the dev/linatang/support-connection-provider-in-script-executor branch April 30, 2024 06:44
crazygao pushed a commit that referenced this pull request May 6, 2024
)

# Description

Currently we use `ConnectionProvider.get_instance` to get connections in
script executor, and it doesn't support passing connections to it
directly, while the flow executor can accept connections, which is
inconsistent. For flow serving, we want the behaviors to be consistent
to refine the conenction resolving logic, so in this PR, we support
directly passing connections to script executor.

# 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.**
- [x] **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.
- [x] 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.

Co-authored-by: Lina Tang <[email protected]>
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.

3 participants