Skip to content

Remove deprecated fast/monobase build system#2675

Merged
mfainberg-cf merged 3 commits intomainfrom
md/remove-monobase
Feb 3, 2026
Merged

Remove deprecated fast/monobase build system#2675
mfainberg-cf merged 3 commits intomainfrom
md/remove-monobase

Conversation

@michaeldwan
Copy link
Copy Markdown
Member

Remove the deprecated fast/monobase/monobeam build system and cog_runtime config option. This functionality was experimental, never shipped to users, and is being removed.

Removed

  • pkg/monobeam/ package
  • pkg/docker/fast_push.go, monobase.go
  • pkg/dockerfile/fast_generator.go, monobase_matrix.go
  • pkg/weights/fast_weights.go
  • --x-fast CLI flag
  • build.fast, build.cog_runtime, build.python_overrides config fields
  • Related integration tests

Result

62 files changed, ~2500 lines removed. The standard build path is now the only path.

@michaeldwan michaeldwan requested a review from a team as a code owner February 2, 2026 20:36
Copy link
Copy Markdown
Contributor

@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

one q. otherwise lgtm!!

Comment thread integration-tests/tests/build_base_image_sha.txtar
Remove the deprecated fast build system that used monobase/monobeam.
This functionality was experimental, never shipped to users, and is
being removed.

Removed:
- pkg/monobeam/ package (monobeam client)
- pkg/docker/fast_push.go, monobase.go (fast push logic)
- pkg/dockerfile/fast_generator.go, monobase_matrix.go
- pkg/weights/fast_weights.go (fast weights handling)
- --x-fast CLI flag from all commands
- build.fast, build.cog_runtime, build.python_overrides config fields
- Related integration tests (fast_build.txtar, run_fast_build.txtar, overrides.txtar)

Also fixed:
- Removed incorrect [cog_dataclass] and [coglet_rust] skip directives from
  --use-cog-base-image tests. These were incorrectly labeled as monobase tests.
- Renamed cog_runtime_int/float tests to int/float_input_output (removed
  cog_runtime: true from cog.yaml)
- Updated README references from 'monobase' to '--use-cog-base-image'
- Updated stale 'Monobase' comment in version_check.go

The standard build path is now the only path. Wheel selection is controlled
via COG_WHEEL env var (cog, coglet, URL, or file path).
Tests that were only validated with fast build mode now skip for coglet_rust:
- complex_types.txtar
- complex_types_list.txtar
- install_requires_packaging.txtar
- local_whl_install.txtar

Also re-add [cog_dataclass] and [coglet_rust] skips to build_cog_version_match
due to version date mismatch causing flaky test failures.
Delete integration tests that relied on monobase/fast build system features:
- complex_types.txtar: used cog.coder module (monobase-only)
- complex_types_list.txtar: used cog.coder module (monobase-only)
- install_requires_packaging.txtar: monobase-specific packaging handling
- local_whl_install.txtar: monobase-specific local wheel handling

Add [cog] condition to test framework and skip build_cog_version_match
for all wheel types due to flaky date mismatch when CI runs cross
day boundaries from wheel build time.
@mfainberg-cf mfainberg-cf merged commit 415d87c into main Feb 3, 2026
27 checks passed
@mfainberg-cf mfainberg-cf deleted the md/remove-monobase branch February 3, 2026 01:10
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.

3 participants