Replicate Nightly Cron with Pinned BoTorch workflow (facebook/Ax)
The Replicate Nightly Cron with Pinned BoTorch workflow from facebook/Ax, explained and optimized by Latchkey.
A
CI health: A - excellent
Run this on Latchkey for self-healing, caching, and up to 58% lower cost.
Grade your own workflow free or run it on Latchkey →What it does
This is the Replicate Nightly Cron with Pinned BoTorch workflow from the facebook/Ax repository, a real project running GitHub Actions. It is shown here with attribution under its MIT license.
Below, Latchkey shows a faster, safer version produced by its optimization engine.
The workflow
workflow (.yml)
name: Replicate Nightly Cron with Pinned BoTorch
on:
workflow_dispatch:
jobs:
tests-and-coverage-minimal:
name: Tests with pinned BoTorch & minimal dependencies
uses: ./.github/workflows/reusable_test.yml
with:
pinned_botorch: true
minimal_dependencies: true
secrets: inherit
tests-and-coverage-full:
name: Tests with pinned BoTorch & full dependencies
uses: ./.github/workflows/reusable_test.yml
with:
pinned_botorch: true
minimal_dependencies: false
secrets: inherit
build-tutorials:
name: Build tutorials with pinned BoTorch
uses: ./.github/workflows/reusable_tutorials.yml
with:
smoke_test: false
pinned_botorch: true
The same workflow, on Latchkey
Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.
name: Replicate Nightly Cron with Pinned BoTorch on: workflow_dispatch: jobs: tests-and-coverage-minimal: timeout-minutes: 30 name: Tests with pinned BoTorch & minimal dependencies uses: ./.github/workflows/reusable_test.yml with: pinned_botorch: true minimal_dependencies: true secrets: inherit tests-and-coverage-full: timeout-minutes: 30 name: Tests with pinned BoTorch & full dependencies uses: ./.github/workflows/reusable_test.yml with: pinned_botorch: true minimal_dependencies: false secrets: inherit build-tutorials: timeout-minutes: 30 name: Build tutorials with pinned BoTorch uses: ./.github/workflows/reusable_tutorials.yml with: smoke_test: false pinned_botorch: true
What changed
- Add a job timeout so a hung step cannot burn hours of runner time.
This workflow runs 3 jobs per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.