Skip to content

Backward and forward compatibility testing #3799

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

Merged
merged 11 commits into from
Feb 21, 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
50 changes: 43 additions & 7 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,29 @@ on:

env:
TELEPRESENCE_REGISTRY: ghcr.io/telepresenceio
DTEST_REGISTRY: ghcr.io/telepresenceio

jobs:
build_images:
if: github.event.label.name == 'ok to test'
if: github.event.label.name == 'ok to test' || github.event.label.name == 'compatibility test'
runs-on: ubuntu-latest
outputs:
telepresenceVersion: ${{ steps.version.outputs.version }}
telepresenceSemver: ${{ steps.version.outputs.semver }}
steps:
- name: Remove label
- name: Remove ok to test label
if: github.event.label.name == 'ok to test'
uses: buildsville/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: ok to test
type: remove
- name: Remove compatibility test label
if: github.event.label.name == 'compatibility test'
uses: buildsville/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: compatibility test
type: remove
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down Expand Up @@ -55,7 +62,7 @@ jobs:
run: docker logout

run_tests:
if: github.event.label.name == 'ok to test'
if: github.event.label.name == 'ok to test' || github.event.label.name == 'compatibility test'
strategy:
fail-fast: false
matrix:
Expand All @@ -81,8 +88,37 @@ jobs:
- name: Build client
run: make build
- name: Run integration tests
if: github.event.label.name == 'ok to test'
uses: nick-fields/retry/@v3
with:
max_attempts: 3
shell: bash
timeout_minutes: 90
command: |
set -ex
if [[ ${RUNNER_OS} == "Windows" ]]; then
export PATH="$PATH:/C/Program Files/SSHFS-Win/bin:$HOME/kubectl-plugins"
fi
make check-integration
- name: Compatibility with older manager and agent
if: github.event.label.name == 'compatibility test'
env:
DEV_MANAGER_VERSION: "2.21.3"
uses: nick-fields/retry/@v3
with:
max_attempts: 3
shell: bash
timeout_minutes: 90
command: |
set -ex
if [[ ${RUNNER_OS} == "Windows" ]]; then
export PATH="$PATH:/C/Program Files/SSHFS-Win/bin:$HOME/kubectl-plugins"
fi
make check-integration
- name: Compatibility with older client
if: github.event.label.name == 'compatibility test'
env:
SCOUT_DISABLE: "1"
DEV_CLIENT_VERSION: "2.21.3"
uses: nick-fields/retry/@v3
with:
max_attempts: 3
Expand All @@ -93,13 +129,13 @@ jobs:
if [[ ${RUNNER_OS} == "Windows" ]]; then
export PATH="$PATH:/C/Program Files/SSHFS-Win/bin:$HOME/kubectl-plugins"
fi
DEV_TELEPRESENCE_VERSION=${TELEPRESENCE_VERSION} DTEST_KUBECONFIG="${HOME}/.kube/config" make check-integration
make check-integration
- uses: ./.github/actions/upload-logs
env:
LOG_SUFFIX: "${{ runner.os }}-${{ runner.arch }}-${{ matrix.clusters.distribution }}-${{ matrix.clusters.version }}"
if: always()
purge_images:
if: github.event.label.name == 'ok to test'
if: github.event.label.name == 'ok to test' || github.event.label.name == 'compatibility test'
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down
Loading
Loading