Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1364C9F73 for ; Thu, 5 Jan 2012 05:46:17 +0000 (UTC) Received: (qmail 72620 invoked by uid 500); 5 Jan 2012 05:46:15 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 72217 invoked by uid 500); 5 Jan 2012 05:45:58 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 72195 invoked by uid 99); 5 Jan 2012 05:45:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 05:45:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dave2wave@comcast.net designates 76.96.30.80 as permitted sender) Received: from [76.96.30.80] (HELO qmta08.emeryville.ca.mail.comcast.net) (76.96.30.80) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 05:45:41 +0000 Received: from omta23.emeryville.ca.mail.comcast.net ([76.96.30.90]) by qmta08.emeryville.ca.mail.comcast.net with comcast id HhUz1i0031wfjNsA8hlDEZ; Thu, 05 Jan 2012 05:45:13 +0000 Received: from [192.168.1.7] ([67.180.51.144]) by omta23.emeryville.ca.mail.comcast.net with comcast id HhaG1i00p36gVt78jhaHzf; Thu, 05 Jan 2012 05:34:17 +0000 Subject: Re: suggested CMS workflows for ooo-site Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Dave Fisher In-Reply-To: <20120105010030.GC30066@daniel3.local> Date: Wed, 4 Jan 2012 21:45:17 -0800 Cc: Joe Schaefer , "ooo-dev@incubator.apache.org" , "infrastructure@apache.org" Content-Transfer-Encoding: quoted-printable Message-Id: <68E66C91-7FAC-4C6D-BEB2-BD59269190D8@comcast.net> References: <1325694487.26057.YahooMailNeo@web160903.mail.bf1.yahoo.com> <1325695906.80326.YahooMailNeo@web160906.mail.bf1.yahoo.com> <1325698191.35878.YahooMailNeo@web160901.mail.bf1.yahoo.com> <1325699559.19044.YahooMailNeo@web160904.mail.bf1.yahoo.com> <20120104235740.GA28956@daniel3.local> <1325724902.55434.YahooMailNeo@web160904.mail.bf1.yahoo.com> <20120105010030.GC30066@daniel3.local> To: Daniel Shahaf X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org On Jan 4, 2012, at 5:00 PM, Daniel Shahaf wrote: > Joe Schaefer wrote on Wed, Jan 04, 2012 at 16:55:02 -0800: >> ----- Original Message ----- >>=20 >>> From: Daniel Shahaf >>> To: Joe Schaefer >>> Cc: "ooo-dev@incubator.apache.org" ; = infrastructure@apache.org >>> Sent: Wednesday, January 4, 2012 6:57 PM >>> Subject: Re: suggested CMS workflows for ooo-site >>>=20 >>> Joe Schaefer wrote on Wed, Jan 04, 2012 at 09:52:39 -0800: >>>> ----- Original Message ----- >>>>=20 >>>>> From: Dave Fisher >>>>> To: ooo-dev@incubator.apache.org >>>>> Cc:=20 >>>>> Sent: Wednesday, January 4, 2012 12:40 PM >>>>> Subject: Re: suggested CMS workflows for ooo-site=20 >>>>>=20 >>>>>=20 >>>>> On Jan 4, 2012, at 9:29 AM, Joe Schaefer wrote: >>>>>=20 >>>>>> Also Dave get in the habit of checking buildbot for the >>>>>> build status of sledgehammer commits instead of waiting >>>>>> for svnmailer to figure out what to do with the massive >>>>>> diff it's trying to make sense of. The url is=20 >>>>>>=20 >>>>>>=20 >>>>>> http://ci.apache.org/builders/ooo-site-site-staging >>>>>=20 >>>>> I do do that, but tend to wait for the email anyway. If there is = no=20 >>> reason to=20 >>>>> wait that will save time. >>>>=20 >>>> Buildbot performs the commit back as the final step in the build, >>>> so if buildbot thinks the build has completed successfully, you >>>> do not need to wait for svnmailer to send out a notice to that = effect. >>>>=20 >>>> My experience is that the turnaround between sledgehammer commits >>>> and eventual publication is about 1 hour: ~20 min for each step >>>> along the way, all because of svn committing or merging >>>=20 >>> Instead of: >>>=20 >>> % cd production-wc >>> % svn merge $URL/to/staging >>>=20 >>> can you: >>>=20 >>> % svnmucc -mm rm $URL/to/production cp $somerev $URL/to/staging=20 >>> $URL/to/production >>=20 >> Not too fond of that approach as we'd lose the history of the = production tree >> in the process. Not every change to staging winds up being promoted. >>=20 >=20 > No we won't. Just run 'svn log -qv' on the parent of the production = tree. >=20 >> There is an alternative approach that I am reluctant to mention but = might >> be the best solution for everyone: to use SSI as part of your = templating system. >> The downside is that it adds a bit of conceptual complexity to the = CMS >> as well as to people doing local builds as they will now need an = SSI-enabled >> server to inspect their build results. >>=20 >> The upside is that sledgehammer commits would be a thing of the past = as >> the Django templates would rarely need to be altered directly. You'd = just >> be altering individual files in content/ containing = (markdown-converted) >> html fragments that the server would dynamically include into every = page >> based on the SSI calls in the Django templates. I can see your vision. Each file in templates and content get converted = into content in the staging and production repos either assembled via = SSI or as static "sledgehammer" content. The SSI content translate into = any change in templates and content causing only a few changes in an SSI = version of a built site. Changes to lib/path.pm only effect changed = mappings. It's hard to see how changes to lib/view.pm are not = sledgehammers. Perhaps more of view.pm needs to be moved into the cms = directly. I know that you do pull features. I was thinking about how to handle a certain class of files. swf, pdf, = odt, xls whatever that may be preferred to be single files in the = repository but would be best be served up in an html wrapper. (Even html = files) This SSI pattern fits that solution better, I think. A file say "explanation.foo" exists in the content directory. When built = it becomes two files explanation.html and the original explanation.foo. = explanation.html is then the wrapper around explanation.foo. >=20 > FWIW, Subverison uses that. >=20 > http://subversion.apache.org/ > http://svn.apache.org/repos/asf/subversion/site/publish/ Interesting. I've got putting together an mdtext page on ooo-site and the various new = features and relevant information. When I'm done sometime next week I'm = interested in discussing more about an Apache CMS "project". Where = should we do that? infrastructure-dev? Regards, Dave