Implementation of Git multiple revisions#6620
Merged
bentsherman merged 144 commits intomasterfrom Dec 17, 2025
Merged
Conversation
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
… operation Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
…f "master" Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
Signed-off-by: Dr Marco De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
pditommaso
requested changes
Dec 15, 2025
modules/nextflow/src/main/groovy/nextflow/scm/GithubRepositoryProvider.groovy
Show resolved
Hide resolved
Member
|
Little glitch, but likely there isn't much it can be done here |
Contributor
Author
Is this when running |
Member
|
Yes |
Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Signed-off-by: Jorge Ejarque <jorgee@users.noreply.github.com>
Contributor
Author
|
I can create another PR with a patch ignoring the path to backport to stable releases. |
…) [ci skip] Update the multi-revision asset management ADR: - Fix directory structure to match implementation: - bare/ instead of .nextflow/bare_repo/ - commits/ instead of .nextflow/commits/ - Legacy repo at separate location ~/.nextflow/assets/<project>/ - Merge Option 4 (Strategy Pattern) into Option 3 since the Strategy Pattern is an implementation detail of the multi-revision approach, not a standalone option Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
pditommaso
reviewed
Dec 15, 2025
adr/20251205-multi-revision-asset-management-strategy-pattern.md
Outdated
Show resolved
Hide resolved
pditommaso
reviewed
Dec 15, 2025
adr/20251205-multi-revision-asset-management-strategy-pattern.md
Outdated
Show resolved
Hide resolved
adr/20251205-multi-revision-asset-management-strategy-pattern.md
Outdated
Show resolved
Hide resolved
adr/20251205-multi-revision-asset-management-strategy-pattern.md
Outdated
Show resolved
Hide resolved
adr/20251205-multi-revision-asset-management-strategy-pattern.md
Outdated
Show resolved
Hide resolved
adr/20251205-multi-revision-asset-management-strategy-pattern.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Signed-off-by: Jorge Ejarque <jorgee@users.noreply.github.com>
Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Signed-off-by: Jorge Ejarque <jorgee@users.noreply.github.com>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Contributor
Author
|
Addressed the last review comments. |
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Member
|
Just replaced the • with |
pditommaso
approved these changes
Dec 17, 2025
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Contributor
Author
|
Changing the symbol in docs |
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.
Summary
This PR implements Git multi-revision asset management, enabling concurrent execution of different pipeline revisions (e.g., production on v1.0, testing on v2.0-dev) while maintaining efficient disk usage through object sharing.
Closes #2870. Alternative for #5089.
Solution
The implementation uses a bare repository + shared clones approach with the Strategy pattern for backward compatibility:
Key mechanisms:
Backward Compatibility
Uses the Strategy pattern to maintain compatibility with existing repositories:
RepositoryStrategyinterface withLegacyRepositoryStrategyandMultiRevisionRepositoryStrategyimplementationsAssetManageracts as facade with unchanged public APINXF_SCM_LEGACY=trueforces legacy mode, otherwise auto-detected based on repository stateChanges
Core Implementation
RepositoryStrategyinterface andAbstractRepositoryStrategybase classMultiRevisionRepositoryStrategyfor bare repo + shared clonesLegacyRepositoryStrategypreserving original behaviorAssetManagerto delegate to strategy implementationsCLI Updates
-a, --all-revisionsflag to-a, --allinCmdDropnf-infocommand output to show clones with revision indicatorsConcurrency & Reliability
FileMutexfor safe concurrent clone operationsDocumentation
adr/20251205-git-multi-revision-asset-management.md