Skip to content

⚙️ Disable spot instances on GPU runners (use on-demand)#570

Open
mmcky wants to merge 1 commit into
mainfrom
ci/disable-spot-gpu-runners
Open

⚙️ Disable spot instances on GPU runners (use on-demand)#570
mmcky wants to merge 1 commit into
mainfrom
ci/disable-spot-gpu-runners

Conversation

@mmcky

@mmcky mmcky commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Aligns lecture-python-programming with the other GPU repos — lecture-jax (QuantEcon/lecture-jax#327) and lecture-python.myst (QuantEcon/lecture-python.myst#936) — by forcing on-demand GPU runners: adds spot=false to the RunsOn label in cache.yml and ci.yml.

This repo was the only one of the three g4dn.2xlarge GPU repos still relying on RunsOn's default (spot) instead of explicitly forcing on-demand, so spot-interrupted builds were still possible here. This change makes the runner configuration consistent across the GPU repos.

Runner sizing / image / volume are unchanged — this only sets spot=false.

Surfaced during the Anaconda 2026.06 audit (see QuantEcon/workspace-lectures#7).

programming was the only g4dn.2xlarge GPU repo still on RunsOn's default
(spot); force on-demand with spot=false in cache.yml and ci.yml, matching
QuantEcon/lecture-jax#327 and QuantEcon/lecture-python.myst#936.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 8, 2026 11:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the GitHub Actions GPU runner configuration to explicitly request on-demand capacity (instead of the RunsOn default spot behavior), aligning this repo with the other QuantEcon GPU lecture repos.

Changes:

  • Add /spot=false to the RunsOn runs-on label in .github/workflows/ci.yml.
  • Add /spot=false to the RunsOn runs-on label in .github/workflows/cache.yml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/ci.yml Forces on-demand GPU runner for PR preview builds by appending /spot=false to the RunsOn label.
.github/workflows/cache.yml Forces on-demand GPU runner for scheduled/manual cache builds by appending /spot=false to the RunsOn label.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants