-
Notifications
You must be signed in to change notification settings - Fork 628
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 git revisions (Jun 2024) : final, using commit ID in repo localPath #5089
base: master
Are you sure you want to change the base?
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>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
…nges 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>
…ate method ; plus related updates across codebase
✅ Deploy Preview for nextflow-docs-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Note: some commits were not signed-off (sigh) - leaving as is for now |
Extra note on the method It is worthwhile doing some tests on what happens in the following corner case:
It is worth testing against distinct pull orders:
If this code block works as expected, it should be all fine. I will see if I can make the test soon, and in case will update this thread, otherwise I will leave it for later. [UPDATE] done some testing, the code block mentioned above indeed does its job, hence this corner case is OK. PS: one learning I made here is that, when a tag is requested, |
[UPDATE] this issue exists already with Nextflow stable release, it was not introduced by this PR. Issue with a test repo which has lots of tags: On first pull all good, however see how the commit is made to refer via distance from a tag,
On repeated pull:
In good contrast, for a repo with not as many tags, all good:
|
This PR is spawned out of #4659, of which it represents its evolution and finalisation.
Some highlights:
localPath
defined via thecommitId
, for more accurate handling of branch updatesrevisionMap
file, for accurate handling of user requested revisions vs revision update in remote repoAssetManager
class constructor; a dedicated additional method,setRevisionAndLocalPath
, has to be called after instantiation to setlocalPath
andrevision
Some implementation notes:
projectName
determines location ofBARE_REPO
,REVISION_MAP
andREVISION_SUBDIR
localPath
is underREVISION_SUBDIR
and requires revision-to-commit mapping ; for unit testing, redefine thelocalPath
manuallySome caveats:
revisionMap
file: I/O concurrency, refactor to a dedicated class (similar toScriptFile
), others?list
output:commitId
-basedlocalPath
AssetManager
, some non-constructor methods have changed API, typically to get rid of the now un-neededrevision
argumentdownload()
andclone()
@pditommaso for visibility.