Return-Path: X-Original-To: apmail-aurora-reviews-archive@minotaur.apache.org Delivered-To: apmail-aurora-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4631A100E3 for ; Sat, 15 Feb 2014 00:01:34 +0000 (UTC) Received: (qmail 99440 invoked by uid 500); 15 Feb 2014 00:01:30 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 99335 invoked by uid 500); 15 Feb 2014 00:01:22 -0000 Mailing-List: contact reviews-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.incubator.apache.org Delivered-To: mailing list reviews@aurora.incubator.apache.org Received: (qmail 99268 invoked by uid 99); 15 Feb 2014 00:01:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Feb 2014 00:01:16 +0000 X-ASF-Spam-Status: No, hits=-1998.4 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 15 Feb 2014 00:01:15 +0000 Received: (qmail 98992 invoked by uid 99); 15 Feb 2014 00:00:54 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Feb 2014 00:00:54 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 6D53F1D4282; Sat, 15 Feb 2014 00:00:53 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6878340659189342430==" MIME-Version: 1.0 Subject: Re: Review Request 18149: Cron predictor conformance test. From: "Bill Farner" To: "Bill Farner" , "Maxim Khutornenko" Cc: "Aurora" , "Kevin Sweeney" Date: Sat, 15 Feb 2014 00:00:53 -0000 Message-ID: <20140215000053.29299.1341@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Bill Farner" X-ReviewGroup: Aurora X-ReviewRequest-URL: https://reviews.apache.org/r/18149/ X-Sender: "Bill Farner" References: <20140214234323.29299.35127@reviews.apache.org> In-Reply-To: <20140214234323.29299.35127@reviews.apache.org> Reply-To: "Bill Farner" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============6878340659189342430== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18149/#review34555 ----------------------------------------------------------- Ship it! This is great, thanks!! - Bill Farner On Feb. 14, 2014, 11:43 p.m., Kevin Sweeney wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/18149/ > ----------------------------------------------------------- > > (Updated Feb. 14, 2014, 11:43 p.m.) > > > Review request for Aurora, Maxim Khutornenko and Bill Farner. > > > Bugs: AURORA-132 > https://issues.apache.org/jira/browse/AURORA-132 > > > Repository: aurora > > > Description > ------- > > Cron predictor conformance test. > > Quartz doesn't support "standard" cron syntax (as described in crontab(5)[1]) and deviates [2] in a lot of ways that would lock us into it. Some of the ways it varies include: > * '00' is not a valid minute > * day-of-week is 1-indexed instead of 0-indexed > * it supports a seconds field, which is an unrealistic constraint for aurora to deliver > * the common "* * * * *" pattern is invalid > > Rather than adopt Quartz's syntax I propose introducing a translation layer that will allow users to write in the more familiar crontab syntax. This change adds test data that can be used as a conformance test - a valid CronPredictor implementation must both accept the same syntax and make the same predictions as those referenced here. In a future review I will introduce a Quartz cron subsystem that passes this test. > > [1] http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5 > [2] http://quartz-scheduler.org/documentation/quartz-2.2.x/tutorials/tutorial-lesson-06 > > > Diffs > ----- > > src/main/java/org/apache/aurora/scheduler/cron/testing/AbstractCronIT.java d8c40222809f525ce485a002873f1fe9dedc2748 > src/main/resources/org/apache/aurora/scheduler/cron/testing/cron-schedule-predictions.json PRE-CREATION > > Diff: https://reviews.apache.org/r/18149/diff/ > > > Testing > ------- > > ./gradlew build > > > Thanks, > > Kevin Sweeney > > --===============6878340659189342430==--