0) Would it be possible to add tags to the kernel.git repository corresponding to the "%{VERSION}-%{RELEASE}" tags (ie, rpm querytags) of the kernel rpms (that have actually been released)?
1) Eg, checking out the current Fedora 16 kernel could be done with git checkout 3.3.2-1.fc16
instead of rpm -q kernel-3.3.2-1.fc16 --changelog | head git log -p origin/f16 | less [ grep on the string "Linux 3.3.2" ] [ copy a sha1sum ] git checkout 28b13140ec3375d59bac4f2d6bc336f7b8ed6fc7
2) Or would that require a lot of work for the people in charge of stuff like that?
(3) This is not really a kernel.git specific thing. It just ran into this issue once again with the Fedora kernel rpms, because I happen to build those more often than other Fedora rpms.)
Paul Bolle
On Sat, Apr 21, 2012 at 06:25:55PM +0200, Paul Bolle wrote:
- Would it be possible to add tags to the kernel.git repository
corresponding to the "%{VERSION}-%{RELEASE}" tags (ie, rpm querytags) of the kernel rpms (that have actually been released)?
- Eg, checking out the current Fedora 16 kernel could be done with git checkout 3.3.2-1.fc16
instead of rpm -q kernel-3.3.2-1.fc16 --changelog | head git log -p origin/f16 | less [ grep on the string "Linux 3.3.2" ] [ copy a sha1sum ] git checkout 28b13140ec3375d59bac4f2d6bc336f7b8ed6fc7
We might be able to script something to do this.
- Or would that require a lot of work for the people in charge of stuff
like that?
It's not a huge burden, but it's something we'd need to remember to do. And if we have to remember it, we're going to forget it sometimes too ;).
Lets see what can be scripted so we don't have to remember and then we can run it by the team.
josh
On Sat, Apr 21, 2012 at 09:54:20PM +0200, Paul Bolle wrote:
On Sat, 2012-04-21 at 12:31 -0400, Josh Boyer wrote:
Lets see what can be scripted
Great!
so we don't have to remember and then we can run it by the team.
The team? Anyhow, please feel free to ask me for help, testing, etc.
The Fedora kernel team. The people most likely to have to run whatever script and do the pushes to the repository.
josh
On Sat, Apr 21, 2012 at 6:31 PM, Josh Boyer jwboyer@redhat.com wrote:
On Sat, Apr 21, 2012 at 06:25:55PM +0200, Paul Bolle wrote:
- Would it be possible to add tags to the kernel.git repository
corresponding to the "%{VERSION}-%{RELEASE}" tags (ie, rpm querytags) of the kernel rpms (that have actually been released)?
- Eg, checking out the current Fedora 16 kernel could be done with
git checkout 3.3.2-1.fc16
instead of Ā Ā rpm -q kernel-3.3.2-1.fc16 --changelog | head Ā Ā git log -p origin/f16 | less Ā Ā [ grep on the string "Linux 3.3.2" ] Ā Ā [ copy a sha1sum ] Ā Ā git checkout 28b13140ec3375d59bac4f2d6bc336f7b8ed6fc7
We might be able to script something to do this.
- Or would that require a lot of work for the people in charge of stuff
like that?
It's not a huge burden, but it's something we'd need to remember to do. And if we have to remember it, we're going to forget it sometimes too ;).
Lets see what can be scripted so we don't have to remember and then we can run it by the team.
This is already available in fedpkg:
$ fedpkg gitbuildhash kernel-3.3.2-1.fc16 28b13140ec3375d59bac4f2d6bc336f7b8ed6fc7
Cheers, Niels
On Sun, Apr 22, 2012 at 04:30:38PM +0200, Niels de Vos wrote:
On Sat, Apr 21, 2012 at 6:31 PM, Josh Boyer jwboyer@redhat.com wrote:
On Sat, Apr 21, 2012 at 06:25:55PM +0200, Paul Bolle wrote:
- Would it be possible to add tags to the kernel.git repository
corresponding to the "%{VERSION}-%{RELEASE}" tags (ie, rpm querytags) of the kernel rpms (that have actually been released)?
- Eg, checking out the current Fedora 16 kernel could be done with
git checkout 3.3.2-1.fc16
instead of Ā Ā rpm -q kernel-3.3.2-1.fc16 --changelog | head Ā Ā git log -p origin/f16 | less Ā Ā [ grep on the string "Linux 3.3.2" ] Ā Ā [ copy a sha1sum ] Ā Ā git checkout 28b13140ec3375d59bac4f2d6bc336f7b8ed6fc7
We might be able to script something to do this.
- Or would that require a lot of work for the people in charge of stuff
like that?
It's not a huge burden, but it's something we'd need to remember to do. And if we have to remember it, we're going to forget it sometimes too ;).
Lets see what can be scripted so we don't have to remember and then we can run it by the team.
This is already available in fedpkg:
$ fedpkg gitbuildhash kernel-3.3.2-1.fc16 28b13140ec3375d59bac4f2d6bc336f7b8ed6fc7
That covers the hard part. Now we need to look into coming up with a workflow that uses that and creates the approriate tags.
josh
On 04/23/2012 02:27 PM, Josh Boyer wrote:
On Sun, Apr 22, 2012 at 04:30:38PM +0200, Niels de Vos wrote:
On Sat, Apr 21, 2012 at 6:31 PM, Josh Boyerjwboyer@redhat.com wrote:
On Sat, Apr 21, 2012 at 06:25:55PM +0200, Paul Bolle wrote:
- Would it be possible to add tags to the kernel.git repository
corresponding to the "%{VERSION}-%{RELEASE}" tags (ie, rpm querytags) of the kernel rpms (that have actually been released)?
- Eg, checking out the current Fedora 16 kernel could be done with git checkout 3.3.2-1.fc16
instead of rpm -q kernel-3.3.2-1.fc16 --changelog | head git log -p origin/f16 | less [ grep on the string "Linux 3.3.2" ] [ copy a sha1sum ] git checkout 28b13140ec3375d59bac4f2d6bc336f7b8ed6fc7
We might be able to script something to do this.
- Or would that require a lot of work for the people in charge of stuff
like that?
It's not a huge burden, but it's something we'd need to remember to do. And if we have to remember it, we're going to forget it sometimes too ;).
Lets see what can be scripted so we don't have to remember and then we can run it by the team.
This is already available in fedpkg:
$ fedpkg gitbuildhash kernel-3.3.2-1.fc16 28b13140ec3375d59bac4f2d6bc336f7b8ed6fc7
That covers the hard part. Now we need to look into coming up with a workflow that uses that and creates the approriate tags.
Well, it is something that all fedora packages could use, it is not restricted to tke kernel package.
Maybe fedpkg should create a tag when building or filing an update. CC'ing jkeating who seems to be the fedpkg contact (see https://fedorahosted.org/fedpkg/) for his thoughts.
Cheers, Niels
On 04/23/2012 10:52 AM, Niels de Vos wrote:
Well, it is something that all fedora packages could use, it is not restricted to tke kernel package.
Maybe fedpkg should create a tag when building or filing an update. CC'ing jkeating who seems to be the fedpkg contact (see https://fedorahosted.org/fedpkg/) for his thoughts.
I'm not sure it can do that safely, because only a _successful_ build merits a tag, and fedpkg is done once it hands off a build to koji.
~tom
== Fedora Project
On Mon, Apr 23, 2012 at 10:58:21AM -0400, Tom Callaway wrote:
On 04/23/2012 10:52 AM, Niels de Vos wrote:
Well, it is something that all fedora packages could use, it is not restricted to tke kernel package.
Maybe fedpkg should create a tag when building or filing an update. CC'ing jkeating who seems to be the fedpkg contact (see https://fedorahosted.org/fedpkg/) for his thoughts.
I'm not sure it can do that safely, because only a _successful_ build merits a tag, and fedpkg is done once it hands off a build to koji.
Why is that exactly? If an official build is submitted to koji and it fails, it's still an official build. You cannot submit a new build with the same NVR as koji will disallow that. A tag is just a reflection of an official build (or could be construed as such anyway).
A build submitted and canceled does run into trouble though. Maybe that is what you were referring to?
josh
On Mon, 23 Apr 2012 11:05:59 -0400 Josh Boyer jwboyer@redhat.com wrote:
On Mon, Apr 23, 2012 at 10:58:21AM -0400, Tom Callaway wrote:
On 04/23/2012 10:52 AM, Niels de Vos wrote:
Well, it is something that all fedora packages could use, it is not restricted to tke kernel package.
Maybe fedpkg should create a tag when building or filing an update. CC'ing jkeating who seems to be the fedpkg contact (see https://fedorahosted.org/fedpkg/) for his thoughts.
I'm not sure it can do that safely, because only a _successful_ build merits a tag, and fedpkg is done once it hands off a build to koji.
Why is that exactly? If an official build is submitted to koji and it fails, it's still an official build. You cannot submit a new build with the same NVR as koji will disallow that. A tag is just a reflection of an official build (or could be construed as such anyway).
You cannot submit a new build that completed successfully. You can resubmit a build with the same N-V-R until it works.
ie,
submit 3.3.3-1, it fails, you tweak some things, commit, don't change the n-v-r and resubmit it works.
Which git hash has the 3.3.3-1 tag? It should be the one that finished, but if you tagged when you first submitted that N-V-R it would be wrong.
A build submitted and canceled does run into trouble though. Maybe that is what you were referring to?
Thats another case too.
kevin
On Mon, Apr 23, 2012 at 09:09:56AM -0600, Kevin Fenzi wrote:
On Mon, 23 Apr 2012 11:05:59 -0400 Josh Boyer jwboyer@redhat.com wrote:
On Mon, Apr 23, 2012 at 10:58:21AM -0400, Tom Callaway wrote:
On 04/23/2012 10:52 AM, Niels de Vos wrote:
Well, it is something that all fedora packages could use, it is not restricted to tke kernel package.
Maybe fedpkg should create a tag when building or filing an update. CC'ing jkeating who seems to be the fedpkg contact (see https://fedorahosted.org/fedpkg/) for his thoughts.
I'm not sure it can do that safely, because only a _successful_ build merits a tag, and fedpkg is done once it hands off a build to koji.
Why is that exactly? If an official build is submitted to koji and it fails, it's still an official build. You cannot submit a new build with the same NVR as koji will disallow that. A tag is just a reflection of an official build (or could be construed as such anyway).
You cannot submit a new build that completed successfully. You can resubmit a build with the same N-V-R until it works.
ie,
submit 3.3.3-1, it fails, you tweak some things, commit, don't change the n-v-r and resubmit it works.
Hm... then my memory is getting fuzzy. I was almost certain it would not let you do that. If it does, I'm kinda disappointed.
Which git hash has the 3.3.3-1 tag? It should be the one that finished, but if you tagged when you first submitted that N-V-R it would be wrong.
A build submitted and canceled does run into trouble though. Maybe that is what you were referring to?
Thats another case too.
Right, and that is why it probably has to be a manual post-build operation to tag it anyway. Before someone mentions a koji plugin, I think there is a strong desire to NOT let the buildsys be able to write to the SCM, so that is also out.
josh
On Mon, 23 Apr 2012 11:20:48 -0400 Tom Callaway tcallawa@redhat.com wrote:
On 04/23/2012 11:19 AM, Josh Boyer wrote:
Hm... then my memory is getting fuzzy. I was almost certain it would not let you do that. If it does, I'm kinda disappointed.
It does. Once a build succeeds though, you can't do it anymore.
You're probibly thinking back to the CVS days... back then, you tagged a commit with N-V-R and thats what the buildsystem built from. So, once you did that if it failed, you had to bump release and commit and fix and tag that next N-V-R.
When we moved to git we got the ability to retry unsuccessful builds with the same N-V-R until they worked.
kevin
On 04/23/2012 08:05 AM, Josh Boyer wrote:
Why is that exactly? If an official build is submitted to koji and it fails, it's still an official build. You cannot submit a new build with the same NVR as koji will disallow that. A tag is just a reflection of an official build (or could be construed as such anyway).
A build submitted and canceled does run into trouble though. Maybe that is what you were referring to?
That's not correct. A build that fails can be resubmitted with the same n-v-r. The only reason to bump for a failed build in the CVS days was to get a new tag, to avoid calling cvs tag with force.
On Mon, Apr 23, 2012 at 08:25:26AM -0700, Jesse Keating wrote:
On 04/23/2012 08:05 AM, Josh Boyer wrote:
Why is that exactly? If an official build is submitted to koji and it fails, it's still an official build. You cannot submit a new build with the same NVR as koji will disallow that. A tag is just a reflection of an official build (or could be construed as such anyway).
A build submitted and canceled does run into trouble though. Maybe that is what you were referring to?
That's not correct. A build that fails can be resubmitted with the same n-v-r. The only reason to bump for a failed build in the CVS days was to get a new tag, to avoid calling cvs tag with force.
Ah! I knew I wasn't entirely misremembering things. Oh how I don't miss CVS.
josh
On 04/23/2012 07:58 AM, Tom Callaway wrote:
On 04/23/2012 10:52 AM, Niels de Vos wrote:
Well, it is something that all fedora packages could use, it is not restricted to tke kernel package.
Maybe fedpkg should create a tag when building or filing an update. CC'ing jkeating who seems to be the fedpkg contact (see https://fedorahosted.org/fedpkg/) for his thoughts.
I'm not sure it can do that safely, because only a _successful_ build merits a tag, and fedpkg is done once it hands off a build to koji.
Tom is correct. There is an opportunity for some service to listen for successful builds from koji and create matching tags in git, however the mentioned fedpkg gitbuildhash is a useful way to directly get to the hash used for a build.
What you may have missed was that gitbuildhash doesn't take a git /tag/, it takes an rpm n-v-r, so you can literally do:
$ fedpkg gitbuildhash $(rpm -q --qf="%{sourcerpm}\n" kernel |head -1|sed -e s/.src.rpm//)
That'll work for more than just kernel too. It's even smart enough to figure out builds from the CVS era.
Is there anything else required?
On Mon, 2012-04-23 at 08:37 -0700, Jesse Keating wrote:
[...] There is an opportunity for some service to listen for successful builds from koji and create matching tags in git, however the mentioned fedpkg gitbuildhash is a useful way to directly get to the hash used for a build.
What you may have missed was that gitbuildhash doesn't take a git /tag/, it takes an rpm n-v-r, so you can literally do:
$ fedpkg gitbuildhash $(rpm -q --qf="%{sourcerpm}\n" kernel |head -1|sed -e s/.src.rpm//)
That'll work for more than just kernel too. It's even smart enough to figure out builds from the CVS era.
Is there anything else required?
Does that mean we end up with a situation that anyone can clone (in this case) Fedora's kernel.git repository and do
git checkout $VERSION-$RELEASE
for any combination of $VERSION-$RELEASE one might be interested in? Ie, one can do that without using fedpkg (or any other tool mostly used by packagers), but just by using git. If so, that would be great!
Paul Bolle
On Mon, Apr 23, 2012 at 08:26:50PM +0200, Paul Bolle wrote:
On Mon, 2012-04-23 at 08:37 -0700, Jesse Keating wrote:
[...] There is an opportunity for some service to listen for successful builds from koji and create matching tags in git, however the mentioned fedpkg gitbuildhash is a useful way to directly get to the hash used for a build.
What you may have missed was that gitbuildhash doesn't take a git /tag/, it takes an rpm n-v-r, so you can literally do:
$ fedpkg gitbuildhash $(rpm -q --qf="%{sourcerpm}\n" kernel |head -1|sed -e s/.src.rpm//)
That'll work for more than just kernel too. It's even smart enough to figure out builds from the CVS era.
Is there anything else required?
Does that mean we end up with a situation that anyone can clone (in this case) Fedora's kernel.git repository and do
git checkout $VERSION-$RELEASE
for any combination of $VERSION-$RELEASE one might be interested in? Ie, one can do that without using fedpkg (or any other tool mostly used by packagers), but just by using git. If so, that would be great!
No. Just running that just gets you the git commit for the corresponding kernel NVRs you have installed. It doesn't:
1) Do it for all builds 2) Do it for all builds automatically 3) Actually do anything in git at all 4) Push the tags to the main repo
It _does_ make it a lot easier to do the above things, but we'd still need to actually run $something to do the work.
josh
On 04/23/2012 11:26 AM, Paul Bolle wrote:
Does that mean we end up with a situation that anyone can clone (in this case) Fedora's kernel.git repository and do
git checkout $VERSION-$RELEASE
for any combination of $VERSION-$RELEASE one might be interested in? Ie, one can do that without using fedpkg (or any other tool mostly used by packagers), but just by using git. If so, that would be great!
No, it does not. The fedpkg tool is doing a couple things.
1) It takes the n-v-r you feed it and does a look up in koji to see what the build command was.
2) scrapes out the git hash part of the build command.
While this could be done by hand with just koji installed, or even just python xmlrpc, fedpkg makes it easier.
Nothing at all is written into the kernel repo to create any sort of mapping from build n-v-r to hash sum. That data is kept within koji.
kernel@lists.fedoraproject.org