-
Notifications
You must be signed in to change notification settings - Fork 117
chore: removes envoy installation requirement for running extproc tests #1385
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
Changes from all commits
25b06e5
2ef6c16
22ad5fe
ad7a4a4
59d02e5
3b34681
4052345
34e909a
9f39c49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 1.36.2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,20 +136,13 @@ jobs: | |
| test_extproc: | ||
| needs: changes | ||
| if: ${{ needs.changes.outputs.code == 'true' }} | ||
| name: External Processor Test (Envoy v${{ matrix.version }} on ${{ matrix.os }}) | ||
| name: External Processor Test (${{ matrix.os }}) | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| # Note: we cannot run the latest Envoy version on macOS due to https://github.com/tetratelabs/archive-envoy/issues/12. | ||
| # Once it's supported, the following "binary installation" steps below can be just removed and | ||
| # we can simply exec.Cmd with "go tool -modfile=tools/go.mod func-e run" with the envoy version configured via ENVOY_VERSION env var. | ||
|
Comment on lines
-143
to
-145
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we no longer need to test on Envoy latest, which made this PR possible There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also i realized that latest installation had been broken since one-two months ago due to the upstream repo change, so it was useless anyways |
||
| include: | ||
| - version: 1.35.0 # NOTE: when updating this, also update the comment in the CONTRIBUTING.md file. | ||
| os: ubuntu-latest | ||
| - version: 1.35.0 # NOTE: when updating this, also update the comment in the CONTRIBUTING.md file. | ||
| os: macos-latest | ||
| - version: latest | ||
| os: ubuntu-latest | ||
| os: | ||
| - ubuntu-latest | ||
| - macos-latest | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
@@ -164,19 +157,6 @@ jobs: | |
| ~/go/pkg/mod | ||
| ~/go/bin | ||
| key: extproc-tests-${{ hashFiles('**/go.mod', '**/go.sum', '**/Makefile') }} | ||
| - name: Install stable Envoy via func-e | ||
| if: matrix.version != 'latest' | ||
| run: | | ||
| go tool -modfile=tools/go.mod func-e use ${{ matrix.version }} | ||
| echo $HOME/.func-e/versions/${{ matrix.version }}/bin >> $GITHUB_PATH | ||
| - name: Install latest Envoy | ||
| if: matrix.version == 'latest' | ||
| run: | | ||
| export ENVOY_BIN_DIR=$HOME/envoy/bin | ||
| mkdir -p $ENVOY_BIN_DIR | ||
| docker run -v $ENVOY_BIN_DIR:/tmp/ci -w /tmp/ci \ | ||
| --entrypoint /bin/cp envoyproxy/envoy-dev:latest /usr/local/bin/envoy . | ||
| echo $ENVOY_BIN_DIR >> $GITHUB_PATH | ||
| - env: | ||
| TEST_AWS_ACCESS_KEY_ID: ${{ secrets.AWS_BEDROCK_USER_AWS_ACCESS_KEY_ID }} | ||
| TEST_AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_BEDROCK_USER_AWS_SECRET_ACCESS_KEY }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,9 +59,7 @@ var ( | |
| Region: "gcp-region", | ||
| ProjectName: "gcp-project-name", | ||
| }}} | ||
| // This always failing backend is configured to have AWS Bedrock schema so that | ||
| // we can test that the extproc can fallback to the different schema. E.g. Primary AWS and then OpenAI. | ||
| alwaysFailingBackend = filterapi.Backend{Name: "always-failing-backend", Schema: awsBedrockSchema} | ||
| alwaysFailingBackend = filterapi.Backend{Name: "always-failing-backend", Schema: openAISchema} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is very hard to explain but this was accidentally working until v1.36 which makes it possible for extproc return the immediate response correctly, so this makes the embedding endpoint test not working: AWS schema doesn't have support for embedding -> try returning immediate response -> previously it was retry-able (due to timeout) vs not retry-able due to extpric immediate response. In practice, this schema diff retry test case is already covered in the e2e test so no harm |
||
|
|
||
| // envoyConfig is the embedded Envoy configuration template. | ||
| // | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: This file is what func-e honors as you can see in the help message by
go tool -modfile=tools/go.mod func-e help run