Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump_version: don't require pipeline version in nf-test snapshots #3477

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

mashehu
Copy link
Contributor

@mashehu mashehu commented Mar 4, 2025

No description provided.

@mashehu mashehu changed the title don't require pipeline version in nf-test snapshots bump_version: don't require pipeline version in nf-test snapshots Mar 4, 2025
@mashehu
Copy link
Contributor Author

mashehu commented Mar 4, 2025

@nf-core-bot changelog

Copy link

codecov bot commented Mar 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.53%. Comparing base (67146de) to head (680d2ff).

Additional details and impacted files

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

Copy link

@ningyuxin1999 ningyuxin1999 left a comment

Choose a reason for hiding this comment

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

.

@@ -101,7 +101,7 @@ def bump_pipeline_version(pipeline_obj: Pipeline, new_version: str) -> None:
)
# nf-test snap files
pipeline_name = pipeline_obj.nf_config.get("manifest.name", "").strip(" '\"")
snap_files = [f for f in Path().glob("tests/pipeline/*.snap")]
snap_files = [f for f in Path(pipeline_obj.wf_path).glob("tests/pipeline/*.snap")]
Copy link
Member

Choose a reason for hiding this comment

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

I think the workflow path is not needed, we use relative paths for all other paths in update_file_version , so we should modify the file paths resulting from this glob

@@ -288,7 +289,7 @@ def update_text_file(fn: Path, patterns: List[Tuple[str, str]], required: bool):
updated = True
log.info(f"Updated version in '{fn}'")
log.debug(f"Replaced pattern '{pattern}' with '{replacement}' {count} times")
elif required:
else:
Copy link
Member

Choose a reason for hiding this comment

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

won't this show the error when the version is not found? even if required is false

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.

3 participants