-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80264a5
commit e5a8c73
Showing
4 changed files
with
59 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
build-and-push-truss-base-images-if-needed-result: | ||
required: true | ||
type: string | ||
|
||
|
||
integration-tests: | ||
if: ${{ !failure() && !cancelled() && (build-and-push-truss-base-images-if-needed-result == 'success' || build-and-push-truss-base-images-if-needed-result == 'skipped') }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
split_group: [ "1", "2", "3", "4", "5" ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-python/ | ||
- run: poetry install | ||
- run: poetry run pytest truss/tests --durations=0 -m 'integration' --splits 5 --group ${{ matrix.split_group }} -k "not test_requirements_pydantic[1]" | ||
|
||
# Running `test_requirements_pydantic[1]` started failing when running together with the other tests. | ||
# We could pin down the issue to the fact that the built image had v2 installed, despite v1 in `requirements.txt` | ||
# The test passes locally and when running in its own env, suggesting that there is a bug in docker caching / hash | ||
# computation that makes the test falsely run with the wrong version in the image. As a stop gap solution, separating | ||
# this particular test in its own job made it pass again. | ||
integration-tests-pydantic-v1: | ||
if: ${{ !failure() && !cancelled() && (build-and-push-truss-base-images-if-needed-result == 'success' || build-and-push-truss-base-images-if-needed-result == 'skipped') }} | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-python/ | ||
- run: poetry install | ||
- run: poetry run pytest truss/tests/test_model_inference.py::test_requirements_pydantic[1] | ||
|
||
chain-integration-tests: | ||
if: ${{ !failure() && !cancelled() && (build-and-push-truss-base-images-if-needed-result == 'success' || build-and-push-truss-base-images-if-needed-result == 'skipped') }} | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-python/ | ||
- run: poetry install | ||
- run: poetry run pytest truss-chains/tests -s --log-cli-level=INFO --durations=0 -m 'integration' |