Skip to content

Cache Research image compilation before Docker packaging #236

Description

@proerror77

Change contract

When the full Prediction Markets research-image smoke is selected, compile the six release binaries in a cacheable Debian Bookworm job and make Docker package those exact binaries without recompiling Rust.

Acceptance evidence

  • The binary-build job uses the repository existing Rust and sccache cache path in a Debian Bookworm environment compatible with the runtime image.
  • The Docker prebuilt target contains all six expected executable entrypoints.
  • Existing policy-snapshot and alpha-harness image probes pass against the prebuilt image.
  • Existing image-smoke selection tests and actionlint pass.
  • A warm GitHub run records the binary-build and image-package durations for comparison with the current approximately 24-minute image build.

Out of scope

ACR publish changes, cross-workflow artifact reuse, self-hosted runners, research data or database packaging, research behavior, collector deployment, and runtime cutover.

Dependency / merge order

Depends only on merged PR #217. ACR adoption, if needed, is a separate follow-up issue after this packaging target merges.

Rollout / rollback

Rollout changes only the selected CI smoke build path. The default Dockerfile target continues source-building for local compatibility. Rollback returns the CI job to the default source-building Docker target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified and safe for an autonomous agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions