Skip to content

fix: publish scans [rules.environment] for env files#52

Merged
ShixiangWang merged 1 commit into
Traitome:mainfrom
andrewbudge:fix/publish-environment-schema
Jul 17, 2026
Merged

fix: publish scans [rules.environment] for env files#52
ShixiangWang merged 1 commit into
Traitome:mainfrom
andrewbudge:fix/publish-environment-schema

Conversation

@andrewbudge

Copy link
Copy Markdown
Collaborator

publish scanned each rule for [rules.env].file and a conda_env field, neither of which exists in the schema. The real schema is [rules.environment] (EnvironmentSpec) with conda/pixi/venv/venv_requirements file paths.

Result: publish collected zero env files and bundled none — silently, while reporting success. A rule with [rules.environment]/conda = "envs/fastp.yaml" matched nothing.

This scans the environment table's file-bearing fields instead. docker/singularity (image refs) and modules (HPC module names) are not files and are left out. Adds an integration test covering a conda env declared under [rules.environment].

make ci passes (fmt/clippy/build/test); the audit leg needs cargo-audit installed locally.

Known follow-up (out of scope here)

Referenced env files are still flattened to their basename on copy: envs/fastp.yaml lands in the bundle as fastp.yaml, but the bundled workflow keeps referencing envs/fastp.yaml, so the path does not resolve. This PR fixes only the schema-scanning bug (envs bundled at all vs. silently dropped); preserving the relative layout is a separate fix to follow.

publish scanned each rule for [rules.env].file and a conda_env field,
neither of which exists in the schema. The real schema is
[rules.environment] (EnvironmentSpec) with conda/pixi/venv/
venv_requirements file paths. As a result publish collected zero env
files and bundled none — silently, while reporting success.

Scan the environment table's file-bearing fields instead. docker/
singularity (image refs) and modules (HPC module names) are not files
and are left out. Adds an integration test covering a conda env
declared under [rules.environment].
@ShixiangWang
ShixiangWang merged commit 254ae71 into Traitome:main Jul 17, 2026
6 of 7 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.

2 participants