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

Release 0.9.58 #1301

Merged
merged 8 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ runs:
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.9.9'
python-version: '3.9.21'

- name: Get full Python version
id: full-python-version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_integration_test_shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
truss-integration-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -28,7 +28,7 @@ jobs:
report_paths: "report-${{ matrix.split_group }}.xml"

chains-integration-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-context-builder-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
detect-version:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
version: ${{ steps.versions.outputs.version }}
steps:
Expand All @@ -22,7 +22,7 @@ jobs:
echo "version=$VERSION" >> $GITHUB_OUTPUT

build-n-push-context-builder-image:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [detect-version]
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
detect-version-changed:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
version_changed: ${{ steps.versions.outputs.version_changed }}
new_version: ${{ steps.versions.outputs.new_version }}
Expand All @@ -29,7 +29,7 @@ jobs:
build-and-push-truss-base-images-if-needed:
needs: [detect-version-changed]
if: needs.detect-version-changed.outputs.build_base_images == 'true'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11"]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:

jobs:
detect-version-changed:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
version_changed: ${{ steps.versions.outputs.version_changed }}
new_version: ${{ steps.versions.outputs.new_version }}
Expand All @@ -32,7 +32,7 @@ jobs:
build-and-push-truss-base-images-if-needed:
needs: [detect-version-changed]
if: needs.detect-version-changed.outputs.build_base_images == 'true'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11"]
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
publish-rc-to-pypi:
needs: [detect-version-changed]
if: ${{ !failure() && !cancelled() && needs.detect-version-changed.outputs.release_version == 'true' && needs.detect-version-changed.outputs.is_prerelease_version == 'true' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: "Git tag release"
uses: actions/checkout@v4
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -27,7 +27,7 @@ jobs:

test:
timeout-minutes: 30
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -36,15 +36,15 @@ jobs:
- run: poetry install --with=dev,dev-server --extras=all
- name: run tests
run: poetry run pytest --durations=0 -m 'not integration' --junitxml=report.xml
- name: Publish Test Report # Not sure how to display this in the UI for non PRs.
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always()
with:
commit: ${{github.event.workflow_run.head_sha}} # Doest that work outside PR?
commit: ${{ github.event.workflow_run.head_sha }}
report_paths: "report.xml"

markdown-link-check:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-truss-utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:

jobs:
publish-to-pypi:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: "Git tag release"
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:

jobs:
detect-version-changed:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
version_changed: ${{ steps.versions.outputs.version_changed }}
new_version: ${{ steps.versions.outputs.new_version }}
Expand All @@ -31,7 +31,7 @@ jobs:
build-n-push-context-builder-image:
needs: [detect-version-changed]
if: ${{ !failure() && !cancelled() && needs.detect-version-changed.outputs.release_version == 'true' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
publish-release-to-pypi:
needs: [detect-version-changed]
if: ${{ !failure() && !cancelled() && needs.detect-version-changed.outputs.release_version == 'true' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: "Git tag release"
uses: actions/checkout@v4
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/smoketests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Truss CLI E2E tests

on:
workflow_dispatch:
inputs:
truss_version:
description: "The version of Truss to test"
required: false
leave_deployments:
description: "If set, deployments are not deleted."
required: false
default: false
type: boolean
jobs:
test-chains:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Setup Python
uses: ./.github/actions/setup-python/
- name: Poetry Install
run: poetry install --with=dev,dev-server --extras=all
- name: Install Truss
run: |
python -m venv truss_env
TRUSS_VERSION=${{ github.event.inputs.truss_version || 'latest' }}
if [ "$TRUSS_VERSION" = "latest" ]; then
echo "Installing the latest version of Truss"
truss_env/bin/pip install truss
else
echo "Installing Truss version $TRUSS_VERSION"
truss_env/bin/pip install truss==$TRUSS_VERSION
fi
- name: Run tests
env:
TRUSS_ENV_PATH: ${{ github.workspace }}/truss_env
run: |
BASETEN_API_KEY_STAGING="${{ secrets.BASETEN_API_KEY_STAGING }}" \
LEAVE_DEPLOYMENTS="${{ github.event.inputs.leave_deployments }}" \
poetry run pytest smoketests \
--durations=0 \
--junitxml=report.xml \
-s --log-cli-level=INFO
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always()
with:
commit: ${{ github.sha }}
report_paths: "report.xml"
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ repos:
entry: poetry run mypy
language: python
types: [python]
exclude: ^examples/|^truss/test.+/|model.py$|^truss-chains/.*
exclude: ^examples/|^truss/test.+/|model.py$|^truss-chains/.*|^smoketests/.*
pass_filenames: true
- id: mypy
name: mypy-local (3.9)
entry: poetry run mypy
language: python
types: [python]
files: ^truss-chains/.*
files: ^truss-chains/.*|^smoketests/.*
args:
- --python-version=3.9
pass_filenames: true
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python 3.9.11
poetry 1.8.0
python 3.9.21
poetry 2.0.0
Loading