Skip to content

refactor: hpc.env_vars() is now a function; skip exporting sing cache - #222

Open
kelly-sovacool wants to merge 8 commits into
mainfrom
sing-cache-dir
Open

refactor: hpc.env_vars() is now a function; skip exporting sing cache#222
kelly-sovacool wants to merge 8 commits into
mainfrom
sing-cache-dir

Conversation

@kelly-sovacool

@kelly-sovacool kelly-sovacool commented Aug 18, 2026

Copy link
Copy Markdown
Member

Changes

do not export a singularity cachedir by default. it gets overridden by the nextflow config anyway, making troubleshooting more confusing than it needs to be.

Issues

resolves #212

PR Checklist

(Strikethrough any points that are not applicable.)

  • This comment contains a description of changes with justifications, with any relevant issues linked.
  • Write unit tests for any new features, bug fixes, or other code changes.
  • Update docs if there are any API changes.
  • Update CHANGELOG.md with a short description of any user-facing changes and reference the PR number. Guidelines: https://keepachangelog.com/en/1.1.0/

@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.51%. Comparing base (3e8c326) to head (92223d5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #222      +/-   ##
==========================================
+ Coverage   73.42%   73.51%   +0.08%     
==========================================
  Files          28       28              
  Lines        1938     1948      +10     
==========================================
+ Hits         1423     1432       +9     
- Misses        515      516       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds runtime environment-variable forwarding for Nextflow execution while removing the default Singularity cache export.

Changes:

  • Converts HPC environment exports into methods.
  • Adds environment-variable support and tests for local/SLURM runs.
  • Updates Python metadata, lockfile, and GSEA CLI program names.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/test_pipeline_hpc.py Updates HPC environment assertions.
tests/test_nextflow.py Tests environment-variable forwarding.
src/ccbr_tools/pyproject.toml Updates Python and development dependencies.
src/ccbr_tools/pipeline/nextflow.py Adds Nextflow environment-variable support.
src/ccbr_tools/pipeline/hpc.py Refactors cluster environment exports.
src/ccbr_tools/GSEA/multitext2excel.py Sets the CLI program name.
src/ccbr_tools/GSEA/deg2gs.py Sets the CLI program name.
pixi.lock Refreshes locked development dependencies.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

elif mode == "local":
if hpc:
nextflow_command = f'bash -c "module load {hpc_modules} && {hpc.env_vars} && {nextflow_command}"'
nextflow_command = f'bash -c "module load {hpc_modules} && {hpc.env_vars()} && {" && ".join(env_vars)} && {nextflow_command}"'
Comment on lines +137 to +139
nextflow_command = f'bash -c "module load {hpc_modules} && {hpc.env_vars()} && {" && ".join(env_vars)} && {nextflow_command}"'
elif env_vars:
nextflow_command = " && ".join((*env_vars, nextflow_command))
pipeline_name=None,
nextflow_args=None,
debug=False,
env_vars=None,
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.

support setting nxf env vars on the fly

2 participants