Tarball lorry files and Trove behaviour on series of commits
by Stankov, Dimitar Georgiev (D.)
Hi human beings!
I have some SQODs.
Q-1. Imagine the following:
- we have to mirror a software in Trove;
- it is published as tarballs only;
- all versions are there in form beautiful-software-0.1.tar.gz,
beautiful-software-0.2.tar.gz, ..., beautiful-software-8.3.tar.gz;
- the version we need right now is somewhere in between;
- preferred is to have all the history in beautiful-software.git,
instead of our version as initial snapshot.
The tricky (and boring) part of the work is to update the lorry file,
then commit, then push, then curl-->move-to-top, then wait Trove job,
then update the file, and so on (imagine 30+ times).
And here comes the SQOD - What happens if:
1. I make all subsequent changes to the lorry file and commit
locally in a form one commit per version, e.g., such a diff:
- "url": "http://dnl.everything.sam/beautiful-software-2.4.tar.gz"
+ "url": "http://dnl.everything.sam/beautiful-software-2.5.tar.gz"
2. Then push the branch once
3. Then curl-->move-to-top once
4. Then wait to see what happens
What happens during step-4?
Are we fetching each version or only the last?
(of course, I can try that but prefer not to dirtify our precious
when possible)
Q-2: Is it a bad approach to create local git repository of the above
software, to host it somewhere in our nerwork and to create a git-lorry
file?
I did that once for a software hosted at inaccessible host. It can be
well automated and works but now we have to care about one more extra
repository.
Are there other troubles?
Q-3: (not much important) Is there a command to get latest N-number of
fetch-jobs of a lorry?
E.g.,
(trove-1)# lotty-get-jobs "delta/coreutils" latest=3
http://trove-1:12765/1.0/job-html/1906912
http://trove-1:12765/1.0/job-html/1905543
http://trove-1:12765/1.0/job-html/1807291
Thanks for reading,
D.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dimitar Stankov
Software Engineer
Visteon Corporation
90 Tsarigradsko Shose Blvd., Capital Fort, Sofia, Bulgaria
Phone: +359 29 30 36 22 (! pending update...)