Skip to content

[codex] switch to environment.yaml activation contract#216

Merged
iamh2o merged 3 commits intomainfrom
codex/environment-yaml-contract
Apr 3, 2026
Merged

[codex] switch to environment.yaml activation contract#216
iamh2o merged 3 commits intomainfrom
codex/environment-yaml-contract

Conversation

@iamh2o
Copy link
Copy Markdown
Contributor

@iamh2o iamh2o commented Apr 3, 2026

What changed

  • switched Bloom's local environment contract from bloom_env.yaml to repo-root environment.yaml
  • updated activate, README.md, and pyproject.toml to point at source ./activate <deploy-name> as the canonical entry path
  • removed the obsolete bloom_env.yaml and requirements.txt files
  • added a deploy-contract test covering the new root environment layout
  • included the rollout note for sibling-repo activation cleanup in docs/remove_siblings.md

Why

The repo was in the middle of moving to deployment-scoped activation through source ./activate <deploy-name>, but parts of the docs and tool metadata still referenced the old environment files. This change makes the environment contract internally consistent.

Validation

  • source ./activate local && pytest --no-cov tests/test_deploy_contract.py -q
  • source ./activate local && pytest tests/test_deploy_contract.py -q exercises the test successfully, but the repo-wide coverage gate fails when run as a one-file slice

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 28cf74d9e6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +232 to +234
if [[ -f "$BLOOM_ROOT/environment.yaml" ]]; then
echo -e " ${_CYAN}→${_NC} Installing conda environment from environment.yaml..."
if conda env create -n "${_BLOOM_CONDA_ENV_NAME}" -f "$BLOOM_ROOT/environment.yaml"; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Update CI to use renamed conda environment file

Switching activation to environment.yaml and deleting bloom_env.yaml leaves GitHub Actions pointing at a file that no longer exists (.github/workflows/ci.yml:177 still sets environment-file: bloom_env.yaml). In this state, the test job cannot create its conda env on a fresh runner, so CI will fail immediately after this migration unless the workflow is updated in the same change.

Useful? React with 👍 / 👎.

- sqlalchemy>=2.0.23
- starlette>=0.35.1
- uvicorn>=0.28.0
- zebra-day==3.5.2
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Align zebra-day pin with project dependency contract

The new conda contract pins zebra-day==3.5.2, but the package metadata still requires zebra-day==4.0.0 in pyproject.toml. Because activation performs editable install with --no-deps, this mismatch is not corrected automatically, so fresh environments can run Bloom against an older zebra-day than the declared requirement, which risks runtime incompatibilities.

Useful? React with 👍 / 👎.

@iamh2o iamh2o merged commit 1e037f1 into main Apr 3, 2026
5 checks passed
@iamh2o iamh2o deleted the codex/environment-yaml-contract branch April 3, 2026 06:58
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