Skip to content

Fix Colab Julia 1.12 GAMA resolve fallback#15

Merged
bernalde merged 3 commits into
mainfrom
fix/colab-julia-112-gama-resolve
May 20, 2026
Merged

Fix Colab Julia 1.12 GAMA resolve fallback#15
bernalde merged 3 commits into
mainfrom
fix/colab-julia-112-gama-resolve

Conversation

@bernalde

@bernalde bernalde commented May 17, 2026

Copy link
Copy Markdown
Member

Summary:

  • Fixes the Colab Julia 1.12.6 failure where Pkg.resolve() cannot move stale notebook manifests off Julia-1.12-incompatible HDF5_jll 1.14.2 pins.
  • Keeps the fast Pkg.resolve() path, but falls back to Pkg.update() only for Colab manifest/runtime mismatches when resolve fails.
  • Expands the Colab mismatch smoke so CI uses Julia 1.12.6 and instantiates temporary copies of every Julia notebook project: 1-MathProg, 2-QUBO, 3-GAMA, 4-DWave, and 5-Benchmarking.
  • Updates local setup docs for the Julia 1.12.6 mismatch smoke.

Tests run:

  • python -m unittest tests.test_verify_notebooks - passed, 20 tests.
  • python -m py_compile scripts/verify_colab_runtime_smokes.py - passed.
  • /home/bernalde/.julia/juliaup/julia-1.12.6+0.x64.linux.gnu/bin/julia --project=./scripts -e 'include("scripts/notebook_bootstrap.jl"); using .QuIPNotebookBootstrap; println(QuIPNotebookBootstrap.detect_colab())' - passed.
  • make verify-julia-colab-mismatch-smoke - passed under Julia 1.12.6; reproduced stale manifest resolver conflicts, used the fallback update, and printed Julia Colab project instantiate smoke ok for 1-MathProg, 2-QUBO, 3-GAMA, 4-DWave, and 5-Benchmarking.
  • 3-GAMA Julia 1.12 import smoke with a temporary copy of notebooks_jl/envs/3-GAMA - passed and printed 3-GAMA Julia 1.12 import smoke ok.
  • Julia 1.12 --depwarn=error instantiate smoke with a temporary copy of notebooks_jl/envs/3-GAMA - passed and printed depwarn instantiate smoke ok.
  • UV_CACHE_DIR=.uv-cache uv run --group docs python -m unittest discover -s tests - passed, 64 tests.
  • make verify-julia-colab-smokes COLAB_JULIA_SMOKE_NOTEBOOKS=5-Benchmarking - passed.
  • make verify-julia-notebook5-cache-smoke - passed.
  • git diff --check - passed.

Notes:

  • The full QCI notebook was not rerun because it requires live QCI cloud credentials.
  • The temporary Julia smoke projects were not committed; they are only used to exercise the Colab resolver path.

@bernalde bernalde left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Review summary:

  1. Blocking issues: none.
  2. Nonblocking issues: none.
  3. Questions: none.
  4. Tests run and outcomes:
  • python -m unittest tests.test_verify_notebooks passed, 20 tests.
  • python -m py_compile scripts/verify_colab_runtime_smokes.py passed.
  • UV_CACHE_DIR=.uv-cache uv run --group docs python -m unittest discover -s tests passed, 64 tests.
  • make verify-julia-colab-mismatch-smoke passed under Julia 1.12.6; it exercised the mismatch policy, resolve fallback, and temporary instantiate smoke for 1-MathProg, 2-QUBO, 3-GAMA, 4-DWave, and 5-Benchmarking.
  • git diff --check origin/main...HEAD passed.
  • gh pr checks 15 --watch --fail-fast passed for build and julia-notebook-smokes; deploy was skipped as expected for a PR.
  1. Merge as-is: yes. The fallback is gated to Colab manifest/runtime mismatches, the automated smoke covers the stale manifest resolver cases across all Julia notebook envs, and the PR is clean/mergeable.

Review disposition note: I attempted to submit this as APPROVE, but GitHub rejected the review because the authenticated account is the PR author, so this is submitted as COMMENT.

@bernalde bernalde merged commit 3d47108 into main May 20, 2026
3 checks passed
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.

1 participant