Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F31611230 for ; Thu, 14 Aug 2014 21:25:21 +0000 (UTC) Received: (qmail 49335 invoked by uid 500); 14 Aug 2014 21:25:21 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 49292 invoked by uid 500); 14 Aug 2014 21:25:21 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 49279 invoked by uid 99); 14 Aug 2014 21:25:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 21:25:20 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of omuppi1@gmail.com designates 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-wg0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 21:25:16 +0000 Received: by mail-wg0-f47.google.com with SMTP id b13so1630024wgh.18 for ; Thu, 14 Aug 2014 14:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=b4Iv03+hFbQ4q3FZx+75VByuFHnp5FxXXkZsrlJ/Eis=; b=ie3/JhBsxByOXQm0JXmtrjBNme1c1FFKHcQnPnPEMQJoj6rmMSwzOHlaNjbh3jpOn7 1o/Tl2fuZZXRbHCPP6hZfvB+9dXz2DFn2715KMl/acqZ79x7GIX1/5Gj+rEVZ1Q2zn/z RHG8S7GbL15dpAOCOGHo0e6hnR90BPfb4PcxlePmZBUhp+ETUerRgRws80IeivDaYJbu i4pPOItYvkV9xowkS/2TvEvCiT5bswLOji0LZwPbkOqJuJa2l79p5WIy9eHZ+jtpnACZ Hh4UUMhYxtLu3mcIJ/WZA+KZGWPN8RAK1NMLoXUonyFesT+G04NBax0MVurQ96nVuDYv fBOQ== X-Received: by 10.180.96.196 with SMTP id du4mr45927917wib.44.1408051495189; Thu, 14 Aug 2014 14:24:55 -0700 (PDT) MIME-Version: 1.0 Sender: omuppi1@gmail.com Received: by 10.216.97.208 with HTTP; Thu, 14 Aug 2014 14:24:25 -0700 (PDT) In-Reply-To: References: From: OmPrakash Muppirala Date: Thu, 14 Aug 2014 14:24:25 -0700 X-Google-Sender-Auth: EuJNeg08D_TkVv0kP_CoazHXkf8 Message-ID: Subject: Re: Automating md5 checks To: "dev@flex.apache.org" Content-Type: multipart/alternative; boundary=f46d043bdabc3243d105009d89ee X-Virus-Checked: Checked by ClamAV on apache.org --f46d043bdabc3243d105009d89ee Content-Type: text/plain; charset=UTF-8 My understanding is that you are manually updating the installer config with a new md5 value each time the artifact changes, is that correct? By letting the Jenkins job compute the checksum for the artifact, you dont have to manually change the config file everytime. You can still employ your technique of looking at last modified date. My suggestion does not require you to change that logic. Yes, it is a one time change to the Installer itself, but after that change you dont have to wait for the MD5 check to break, hopefully someone reports it us and we having to change the installer config. Thanks, Om On Thu, Aug 14, 2014 at 2:04 PM, Alex Harui wrote: > Still not understanding. How would that be less work and require a new > installer scripts? The current SDK and FlexJS scripts are going to look > in the config file. > > Also note that, to reduce bandwidth, this job stores an identifier from > the server response headers such as the last modified date. That way the > job doesn't download these huge AIR SDKs over and over again unless they > report as changed. Even if we created separate .md5 files, we still need > a place to track the identifiers. > > -Alex > > On 8/14/14 1:55 PM, "OmPrakash Muppirala" wrote: > > >On Thu, Aug 14, 2014 at 1:10 PM, Alex Harui wrote: > > > >> > >> > >> On 8/14/14 11:08 AM, "OmPrakash Muppirala" > wrote: > >> > >> >Alex, > >> > > >> >I see that there is a job > >> >http://apacheflexbuild.cloudapp.net:8080/job/MD5Checker/ > >> >Are you using that to automatically check the MD5? > >> Yes > >> > > >> >If so, you can spit out the correct MD5 into a text file and make it > >> >available as part of the lastSuccessfulBuild/artifacts/out directory. > >>You > >> >can then access that file publicly with this url: > >> > > >> > >> > http://apacheflexbuild.cloudapp.net:8080/job/MD5Checker/lastSuccessfulBui > >>l > >> >d/artifact/out/md5.txt > >> > > >> >You can load this url in the Installer and verify the MD5 against the > >> >downloaded file. > >> > > >> >This way, you don't need to modify the installer config every time > >>Adobe > >> >changes the bits. > >> I'm not understanding. I don't see any mention of md5.txt in Installer > >> code base. > >> > > > >That was an example file name. You can write out the md5 checksum of the > >artifact to a file and load it from the url. > > > >Thanks, > >Om > > > > > >> > >> -Alex > >> > >> > > --f46d043bdabc3243d105009d89ee--