-
Notifications
You must be signed in to change notification settings - Fork 655
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
Enable multiple revisions for project repos (first attempt 2024) #4659
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
✅ Deploy Preview for nextflow-docs-staging canceled.
|
You could save disk space by cloning with depth = 0 when a revision is specified |
Thanks @bentsherman , great idea, will do, for |
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
yes I suppose we could just clone with depth = 0 in all cases, since no revision just defaults to |
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Ah! unfortunately we cannot implement the |
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
… operation Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
…f "master" Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Good progress today. Notes on revision dereferencing (working)
|
Outstanding bits right now:
Point 3. might actually have been already there with the original implementation - have to check. Issues arise when multiple branches/tags all have the same commits in their history. It is amplified in my tests, as I am using dummy pipeline repos. |
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
On point 2. above, wondering whether we should leverage user-provided information more, when it comes to printing out information on repository in use. I.e.:
|
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
This reverts commit 3b44f9f.
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
As dicussed in meeting, on point 1., let me re-implement with the original class signature for Note on available code so far:
|
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Signed-off-by: Dr Marco Claudio De La Pierre <[email protected]>
Going forward, let's manage these through 2 separate new PRs:
The first one is for the record and for reference, unlikely to go forward. The second one is that to be considered for revision and merging. |
This PR adds support for handling local copies of multiple revisions of the same pipeline.
Key points:
NXF_ASSETS
, each pipeline is now pulled as<org>/<repo>[:<revision>]
;:<revision>
is only appended if the corresponding flag was used on CLI,-r
/--revision
revision
attribute to theAssetManager
class, as both pipeline name and revision are now required to fully identify a pipelinerun, pull, clone, drop, list, view, config, info, inspect, kuberun
AssetManagerTest
have been updatedCaveats:
Jgit
does not implementgit worktree
, so the original idea within Allow the concurrent run of multiple pipeline revisions #2870 could not be applieddepth = 1
(shallow clones) was investigated to reduce disk usage, but could not be implemented as it would not allow to checkout branches/tags/commits--revision
and with--revision <default branch>
create two duplicate pulls; this is not optimal, but with very limited known negative impact; [update] this only happens if the default branch is not declared in the manifest and differs frommaster
master
, pulling and running it is now possible without specifying the branch name explicitlyCloses #2870 .
Also indirectly addresses #3593