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

Bump transcriber #900

Merged
merged 3 commits into from
Nov 7, 2024
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
36 changes: 1 addition & 35 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,33 +52,6 @@ jobs:
compression-level: 0
retention-days: 1

build-calls-transcriber:
runs-on: ubuntu-22.04
steps:
- name: e2e/checkout-transcriber-repo
uses: actions/checkout@v4
with:
repository: mattermost/calls-transcriber
path: calls-transcriber

- name: e2e/setup-docker-buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0

- name: e2e/build-image
working-directory: ./calls-transcriber
run: |
make docker-build CI=false
docker save --output calls-transcriber.tar calls-transcriber:master

- name: e2e/persist-mattermost-calls-transcriber-image
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: mattermost-plugin-calls-transcriber-image
path: ${{ github.workspace }}/calls-transcriber/calls-transcriber.tar
if-no-files-found: error
compression-level: 0
retention-days: 1

generate-matrix:
runs-on: ubuntu-22.04
outputs:
Expand All @@ -95,14 +68,14 @@ jobs:
runs-on: ubuntu-22.04
needs:
- build-mattermost-plugin-calls
- build-calls-transcriber
- generate-matrix
env:
COMPOSE_PROJECT_NAME: playwright_tests
DOCKER_NETWORK: playwright_tests
CONTAINER_SERVER: playwright_tests_server
IMAGE_CALLS_OFFLOADER: mattermost/calls-offloader:v0.8.0
IMAGE_CALLS_RECORDER: mattermost/calls-recorder:v0.7.6
IMAGE_CALLS_TRANSCRIBER: mattermost/calls-transcriber:v0.5.0
IMAGE_SERVER: mattermostdevelopment/mattermost-enterprise-edition:master
IMAGE_CURL: curlimages/curl:8.7.1
CI_NODE_INDEX: ${{ matrix.run_id }}
Expand Down Expand Up @@ -149,12 +122,6 @@ jobs:
name: mattermost-plugin-calls-package
path: dist

- name: e2e/download-calls-transcriber-image
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
name: mattermost-plugin-calls-transcriber-image
path: ${{ github.workspace }}

- name: e2e/docker-login
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
# Do not authenticate on Forks
Expand All @@ -168,7 +135,6 @@ jobs:
DOCKER_CLIENT_TIMEOUT: 120
COMPOSE_HTTP_TIMEOUT: 120
DOCKER_COMPOSE_FILE: ${{ github.workspace }}/e2e/docker/docker-compose.yaml
TRANSCRIBER_IMAGE_PATH: ${{ github.workspace }}/calls-transcriber.tar
run: |
mkdir -p ${{ github.workspace }}/logs
mkdir -p ${{ github.workspace }}/config
Expand Down
6 changes: 4 additions & 2 deletions e2e/scripts/prepare-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ echo "Pulling ${IMAGE_CALLS_RECORDER} in order to be quickly accessible ... "
# Pull calls-recorder image to be used by calls-offloader.
docker pull ${IMAGE_CALLS_RECORDER}

## Load calls-transcriber image
docker load --input ${TRANSCRIBER_IMAGE_PATH}
echo "Pulling ${IMAGE_CALLS_TRANSCRIBER} in order to be quickly accessible ... "
# Pull calls-transcriber image to be used by calls-offloader.
docker pull ${IMAGE_CALLS_TRANSCRIBER}

# We retag the official images so they can be run instead of the expected local
# one (DEV_MODE=true). Alternatively we'd have to build our own image from scratch or make
# some CI specific changes on the offloader.
docker image tag ${IMAGE_CALLS_RECORDER} calls-recorder:master
docker image tag ${IMAGE_CALLS_TRANSCRIBER} calls-transcriber:master

## Print images info
docker images
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,6 @@
"min_rtcd_version": "v0.17.0",
"min_offloader_version": "v0.8.0",
"calls_recorder_version": "v0.7.6",
"calls_transcriber_version": "v0.4.0"
"calls_transcriber_version": "v0.5.0"
}
}