Re: [libvirt] [jenkins-ci PATCH 5/5] jobs: Don't remove non-existing archives

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 17:00 +0200, Erik Skultety wrote:
> On Fri, Aug 10, 2018 at 03:37:45PM +0200, Andrea Bolognani wrote:
> > None of our jobs create the archives as a side-effect, so
> > trying to remove them before generating them is pointless.
> 
> Who cleans them after the jobs below? Is there a chance that you could trigger
> these jobs in a sequence that would expect the archives to be removed but
> wouldn't? If there is a risk that this could happen, then I think this patch
> should be dropped.

Cleanup is performed every time new commits are fetched from git,
so stale data shouldn't be a problem in practice; that said, I
agree that there's a chance we might end up using an old archive
if jobs are manually triggered, and keeping the extra rm there is
not really hurting anyone, so let's drop this commit :)

By the way, I just noticed that...

> >{strip_buildrequires}
> > -  rm -f dist/*.tar.{{ archive_format }}
> >$PYTHON ./setup.py sdist
> >rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta 
> > dist/*.tar.{{ archive_format }}

... I mistakenly used the Ansible-style variable substitution
instead of the Jenkins Job Builder-style one, so I fixed it up
before pushing the first four patches.

Thank you for the review! :)

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] [jenkins-ci PATCH 5/5] jobs: Don't remove non-existing archives

2018-08-20 Thread Erik Skultety
On Fri, Aug 10, 2018 at 03:37:45PM +0200, Andrea Bolognani wrote:
> None of our jobs create the archives as a side-effect, so
> trying to remove them before generating them is pointless.

Who cleans them after the jobs below? Is there a chance that you could trigger
these jobs in a sequence that would expect the archives to be removed but
wouldn't? If there is a risk that this could happen, then I think this patch
should be dropped.

Erik

>
> Signed-off-by: Andrea Bolognani 
> ---
>  jobs/autotools.yaml| 1 -
>  jobs/perl-modulebuild.yaml | 1 -
>  jobs/python-distutils.yaml | 1 -
>  3 files changed, 3 deletions(-)
>
> diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml
> index f8a7e87..4e075bd 100644
> --- a/jobs/autotools.yaml
> +++ b/jobs/autotools.yaml
> @@ -168,7 +168,6 @@
>{local_env}
>cd build
>{strip_buildrequires}
> -  rm -f *.tar.{archive_format}
>$MAKE dist
>rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta 
> *.tar.{archive_format}
>  publishers:
> diff --git a/jobs/perl-modulebuild.yaml b/jobs/perl-modulebuild.yaml
> index 8b30d7e..855e6ba 100644
> --- a/jobs/perl-modulebuild.yaml
> +++ b/jobs/perl-modulebuild.yaml
> @@ -122,7 +122,6 @@
>{global_env}
>{local_env}
>{strip_buildrequires}
> -  rm -f *.tar.{archive_format}
>perl Build dist
>rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta 
> *.tar.{archive_format}
>  publishers:
> diff --git a/jobs/python-distutils.yaml b/jobs/python-distutils.yaml
> index eae5b6f..e640434 100644
> --- a/jobs/python-distutils.yaml
> +++ b/jobs/python-distutils.yaml
> @@ -122,7 +122,6 @@
>{global_env}
>{local_env}
>{strip_buildrequires}
> -  rm -f dist/*.tar.{{ archive_format }}
>$PYTHON ./setup.py sdist
>rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta 
> dist/*.tar.{{ archive_format }}
>  publishers:
> --
> 2.17.1
>
> --
> libvir-list mailing list
> libvir-list@redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


[libvirt] [jenkins-ci PATCH 5/5] jobs: Don't remove non-existing archives

2018-08-10 Thread Andrea Bolognani
None of our jobs create the archives as a side-effect, so
trying to remove them before generating them is pointless.

Signed-off-by: Andrea Bolognani 
---
 jobs/autotools.yaml| 1 -
 jobs/perl-modulebuild.yaml | 1 -
 jobs/python-distutils.yaml | 1 -
 3 files changed, 3 deletions(-)

diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml
index f8a7e87..4e075bd 100644
--- a/jobs/autotools.yaml
+++ b/jobs/autotools.yaml
@@ -168,7 +168,6 @@
   {local_env}
   cd build
   {strip_buildrequires}
-  rm -f *.tar.{archive_format}
   $MAKE dist
   rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta 
*.tar.{archive_format}
 publishers:
diff --git a/jobs/perl-modulebuild.yaml b/jobs/perl-modulebuild.yaml
index 8b30d7e..855e6ba 100644
--- a/jobs/perl-modulebuild.yaml
+++ b/jobs/perl-modulebuild.yaml
@@ -122,7 +122,6 @@
   {global_env}
   {local_env}
   {strip_buildrequires}
-  rm -f *.tar.{archive_format}
   perl Build dist
   rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta 
*.tar.{archive_format}
 publishers:
diff --git a/jobs/python-distutils.yaml b/jobs/python-distutils.yaml
index eae5b6f..e640434 100644
--- a/jobs/python-distutils.yaml
+++ b/jobs/python-distutils.yaml
@@ -122,7 +122,6 @@
   {global_env}
   {local_env}
   {strip_buildrequires}
-  rm -f dist/*.tar.{{ archive_format }}
   $PYTHON ./setup.py sdist
   rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta dist/*.tar.{{ 
archive_format }}
 publishers:
-- 
2.17.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list