All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jate S <jatedev@gmail.com>
To: "Lynn 'Cyrin' Conway" <lynncyrin@gmail.com>
Cc: Yocto Project <yocto@yoctoproject.org>
Subject: Re: [PATCH 3/3] PublishArtifacts: add md5sums artifact
Date: Fri, 6 Jun 2014 17:06:50 -0400	[thread overview]
Message-ID: <CAPphmgb_NPGOu0dxP0b+0gr4zmE2D+SMuXCTvnO91kB6wAbaHA@mail.gmail.com> (raw)
In-Reply-To: <1401843822-13967-3-git-send-email-lynncyrin@gmail.com>

I just grabbed the current master.

I changed my local conf definition so it would do the MakeImageMD5s.
It creates them inside of the build directory by default.

After doing this, the PublishArtifacts was still failing because the
cp command could not find the md5sum files. It looks in the
tmp/deploy/images directory.

I applied this patch so that the MakeImageMD5s step would generate
them in the temp/deploy/images directory and allow the PublishArtifact
build step to work.

diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/MakeImageMD5s.py
index 84839fb..7bfb2b3 100644
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/MakeImageMD5s.py
+++ b/lib/python2.7/site-packages/autobuilder/buildsteps/MakeImageMD5s.py
@@ -35,7 +35,7 @@ class MakeImageMD5s(ShellCommand):
         command=""
         if str(os.environ.get('PUBLISH_BUILDS')) == "True":
             command = command + "for x in `find build/tmp/deploy/images -type f
-            command = command + "filenm=`basename $x`; md5sum $x >> $filenm.md5
+            command = command + "md5sum $x >> $x.md5sum; done"
         else:
             command="echo 'Not publishing build, skipping step'"
         self.command = command

After seeing this patch, I wonder if this should be applied to
PublishArtifacts now.

- Jate S.

On Tue, Jun 3, 2014 at 9:03 PM, Lynn 'Cyrin' Conway <lynncyrin@gmail.com> wrote:
> REF: Bug ID 6354
>
> Added a md5sums artifact into PublishArtifacts
>
> Signed-off-by: Lynn 'Cyrin' Conway <lynncyrin@gmail.com>
> ---
>  .../autobuilder/buildsteps/PublishArtifacts.py     |    6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py b/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py
> index db86ec2..bb69d18 100644
> --- a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py
> +++ b/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py
> @@ -180,6 +180,10 @@ class PublishArtifacts(ShellCommand):
>                      command=command+"cp -R --no-dereference " + \
>                                       os.path.join(self.basedir, "conf/") + \
>                                       "/* " + DEST + "/" + MACHINE_PUBLISH_DIR + "/" + artifact_name + "/conf;"
> +                elif artifact == "md5sums":
> +                    artifact_name, deploy_image_dir = self.getDeployNames(artifact, buildername)
> +                    command = command + "for x in `find " + deploy_image_dir + " -type f`; do "
> +                    command = command + "filenm=`basename $x`; md5sum $x >> $filenm.md5sum; done"
>                  elif artifact == "None":
>                      command=command+"echo 'Skipping copy of " + artifact + ".'"
>                  else:
> @@ -216,7 +220,7 @@ class PublishArtifacts(ShellCommand):
>              artifact_name = artifact_name + "-lsb"
>          if self.layerversion_core is not None and int(self.layerversion_core) > 2:
>              deploy_dir_image = os.path.join(os.path.join(self.basedir, "tmp/deploy/images/"), artifact)
> -        else:
> +        else:1
>              deploy_dir_image = os.path.join(self.basedir, "tmp/deploy/images/")
>          return artifact_name, deploy_dir_image
>
> --
> 1.7.9.5
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


  parent reply	other threads:[~2014-06-06 21:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-04  1:03 [PATCH 1/3] buildset-config.master/*: change call to MD5 creation Lynn 'Cyrin' Conway
2014-06-04  1:03 ` [PATCH 2/3] MakeImageMD5s: delete file Lynn 'Cyrin' Conway
2014-06-04  1:03   ` [PATCH 3/3] PublishArtifacts: add md5sums artifact Lynn 'Cyrin' Conway
2014-06-04  8:28     ` Burton, Ross
2014-06-06 21:06     ` Jate S [this message]
2014-06-09 15:44       ` Lynn Cyrin
2014-06-09 18:33 [PATCH 1/3] buildset-config.master/*: change call to MD5 creation Lynn 'Cyrin' Conway
2014-06-09 18:33 ` [PATCH 2/3] MakeImageMD5s: delete file Lynn 'Cyrin' Conway
2014-06-09 18:33   ` [PATCH 3/3] PublishArtifacts: add md5sums artifact Lynn 'Cyrin' Conway
2014-06-09 18:51 [PATCH 1/3] buildset-config.master/*: change call to MD5 creation Lynn 'Cyrin' Conway
2014-06-09 18:51 ` [PATCH 2/3] MakeImageMD5s: delete file Lynn 'Cyrin' Conway
2014-06-09 18:51   ` [PATCH 3/3] PublishArtifacts: add md5sums artifact Lynn 'Cyrin' Conway
2014-06-09 19:24     ` Flanagan, Elizabeth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPphmgb_NPGOu0dxP0b+0gr4zmE2D+SMuXCTvnO91kB6wAbaHA@mail.gmail.com \
    --to=jatedev@gmail.com \
    --cc=lynncyrin@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.