Compare commits

...

6 Commits

Author SHA1 Message Date
Erick Friis
296e81bc5e Merge branch 'erick/infra-ci-success-for-partner-packages' into erick/test-error 2024-02-23 10:55:35 -08:00
Erick Friis
19287bba50 x 2024-02-23 10:55:07 -08:00
Erick Friis
a43445aaa2 x 2024-02-23 10:47:06 -08:00
Erick Friis
65bf25bd60 format print 2024-02-23 10:46:34 -08:00
Erick Friis
5ed5d54916 always run CI Success 2024-02-23 10:42:51 -08:00
Erick Friis
82dbbd15cd infra: CI success for partner packages 2024-02-23 10:39:32 -08:00
2 changed files with 12 additions and 13 deletions

View File

@@ -129,20 +129,17 @@ jobs:
ci_success:
name: "CI Success"
needs: [build, lint, test, compile-integration-tests, dependencies, extended-tests]
if: |
always()
runs-on: ubuntu-latest
env:
JOBS_JSON: ${{ toJSON(needs) }}
RESULTS_JSON: ${{ toJSON(needs.*.result) }}
EXIT_CODE: ${{!contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && '0' || '1'}}
steps:
- name: "CI Success"
run: |
echo "Success"
exit 0
# this one is just for visibility, where CI success step gets skipped
ci_failure:
name: "CI Failure"
needs: [build, lint, test, compile-integration-tests, dependencies, extended-tests]
if: ${{ !success() }}
runs-on: ubuntu-latest
steps:
- name: "CI Failure"
run: |
echo "Failure"
exit 1
echo $JOBS_JSON
echo $RESULTS_JSON
echo "Exiting with $EXIT_CODE"
exit $EXIT_CODE

View File

@@ -14,6 +14,8 @@ from langchain_core.messages import SystemMessage
from langchain_experimental.agents.agent_toolkits.python.prompt import PREFIX
from langchain_experimental.tools.python.tool import PythonREPLTool
ERROR
def create_python_agent(
llm: BaseLanguageModel,