Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

feat: allows skipping of specific nextflow files from being cached #414

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

OhCloud
Copy link
Contributor

@OhCloud OhCloud commented Apr 20, 2022

Issue #, if available:

Description of Changes

Running a nextflow workflow generates lots of cache files and logs that may crash before the workflow has started/completed. Allowing nextflow to cache specific large files will make it so that a developer can ensure the workflow is running locally (with small files vs large files that dont allow the run) as expected.

Description of how you validated changes

Units tests have been added and verified.

Checklist

  • If this change would make any existing documentation invalid, I have included those updates within this PR
  • I have added unit tests that prove my fix is effective or that my feature works
  • I have linted my code before raising the PR
  • Title of this Pull Request follows Conventional Commits standard: https://www.conventionalcommits.org/en/v1.0.0/

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@OhCloud OhCloud force-pushed the lcloudy_CacheFilesExcluded branch from 2b73987 to 4f948c2 Compare April 20, 2022 20:58
if dirEntry == nil {
// There are several use cases when it can happen:
// 1. provided path doesn't exist
// 2. file or sub-directory got deleted after being listed by WalkDir
return fmt.Errorf("file '%s' doesn't exist", currentPath)
}

if dirEntry.Name() == ".nextflow" ||
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than having specific hardcoded paths that AGC knows about, can you make it more generic? For example, have an .agc-ignore file in the project or workflow levels, or both, that works like a .gitignore that defines patterns that are ignored during workflow bundling?

@github-actions
Copy link

Greetings! Sorry to say but this is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants