fix: publish scans [rules.environment] for env files#52
Merged
ShixiangWang merged 1 commit intoJul 17, 2026
Merged
Conversation
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].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
publish scanned each rule for
[rules.env].fileand aconda_envfield, neither of which exists in the schema. The real schema is[rules.environment](EnvironmentSpec) withconda/pixi/venv/venv_requirementsfile 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) andmodules(HPC module names) are not files and are left out. Adds an integration test covering a conda env declared under[rules.environment].make cipasses (fmt/clippy/build/test); the audit leg needscargo-auditinstalled locally.Known follow-up (out of scope here)
Referenced env files are still flattened to their basename on copy:
envs/fastp.yamllands in the bundle asfastp.yaml, but the bundled workflow keeps referencingenvs/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.