From 0e262e844c67de8eb5448b8a9373d7e3defafbfe Mon Sep 17 00:00:00 2001 From: Rongxin Liu <10591665+rongxin-liu@users.noreply.github.com> Date: Thu, 26 Nov 2026 13:39:04 +0000 Subject: [PATCH] Temporarily build main on cs50/cli:python-3.15 to trial Python 3.15 in production The base tag for main builds moves from a literal to MAIN_BASE_TAG, set to python-3.15 (published from cs50/cli#256's branch), so the grading image can run Python 3.15 ahead of cs50/cli's own move (cs50/cli#254) and surface any problems with real submissions. Everything a 3.15 default runtime needs is already in: the TensorFlow checks have their own 3.14 (#53), the shared pins have cp315 wheels (#54), and the CS50P compiled tests ship a build per version (cs50/problems#419). Setting MAIN_BASE_TAG back to latest reverts. Built the image FROM cs50/cli:python-3.15 and ran tests/smoke.sh: default runtime 3.15.2, TensorFlow runtime 3.14.10, every check passes. --- .github/workflows/main.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3a3b26..fa35af5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,9 +4,16 @@ on: - workflow_dispatch # Tags published per build: -# main: cs50/check:, cs50/check:canary, cs50/check:latest (built FROM cs50/cli:latest) +# main: cs50/check:, cs50/check:canary, cs50/check:latest (built FROM cs50/cli:${MAIN_BASE_TAG}) # any other branch: cs50/check:, cs50/check:canary (built FROM cs50/cli:canary) # Nothing is pushed unless the built image passes tests/smoke.sh. +# +# TEMPORARY: main builds on cs50/cli:python-3.15 (cs50/cli#256) rather than cs50/cli:latest, to +# trial Python 3.15 in production grading ahead of cs50/cli's move (cs50/cli#254). Set +# MAIN_BASE_TAG back to latest to revert, or once cs50/cli#256 has merged. + +env: + MAIN_BASE_TAG: python-3.15 jobs: build-and-push: @@ -26,7 +33,7 @@ jobs: with: load: true build-args: | - TAG=${{ github.ref == 'refs/heads/main' && 'latest' || 'canary' }} + TAG=${{ github.ref == 'refs/heads/main' && env.MAIN_BASE_TAG || 'canary' }} tags: | cs50/check:${{ github.sha }} cs50/check:canary