From d0ae948a1d3fdeb600a4950e6104627f6e3a60ef Mon Sep 17 00:00:00 2001 From: angelsl Date: Fri, 17 Sep 2021 19:09:32 +0800 Subject: [PATCH] Update Elixir and OTP versions --- .github/workflows/cd.yml | 4 ++-- .github/workflows/ci.yml | 4 ++-- lib/cadet/jobs/autograder/lambda_worker.ex | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b72538cb4..32ed44156 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -24,8 +24,8 @@ jobs: env: MIX_ENV: prod GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ELIXIR_VERSION: '1.11.4' - OTP_VERSION: '24.0' + ELIXIR_VERSION: '1.12.3' + OTP_VERSION: '24.0.6' steps: - uses: rlespinasse/github-slug-action@v3.x - uses: actions/checkout@v2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ff5ce822..5d58830cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,8 @@ jobs: env: MIX_ENV: test GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ELIXIR_VERSION: '1.11.4' - OTP_VERSION: '24.0' + ELIXIR_VERSION: '1.12.3' + OTP_VERSION: '24.0.6' services: postgres: image: postgres:13.1 diff --git a/lib/cadet/jobs/autograder/lambda_worker.ex b/lib/cadet/jobs/autograder/lambda_worker.ex index 350869896..a2a6d3f7a 100644 --- a/lib/cadet/jobs/autograder/lambda_worker.ex +++ b/lib/cadet/jobs/autograder/lambda_worker.ex @@ -44,9 +44,7 @@ defmodule Cadet.Autograder.LambdaWorker do def on_failure(%{answer: answer = %Answer{}, question: %Question{}}, error) do error_message = - "Failed to get autograder result. answer_id: #{answer.id}, error: #{ - inspect(error, pretty: true) - }" + "Failed to get autograder result. answer_id: #{answer.id}, error: #{inspect(error, pretty: true)}" Logger.error(error_message) Sentry.capture_message(error_message)