From: Tomi Ollila Date: Fri, 19 Aug 2016 13:50:20 +0000 (+0300) Subject: Re: [RFC PATCH] test: add devel/test-in-docker.sh X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d6856af28e2be7cc492667396eb11fac51c2bdf8;p=notmuch-archives.git Re: [RFC PATCH] test: add devel/test-in-docker.sh --- diff --git a/df/0ce0633368a7a7574c1c129d7805acd190a64a b/df/0ce0633368a7a7574c1c129d7805acd190a64a new file mode 100644 index 000000000..decf0a8d3 --- /dev/null +++ b/df/0ce0633368a7a7574c1c129d7805acd190a64a @@ -0,0 +1,93 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 363116DE098A + for ; Fri, 19 Aug 2016 06:50:47 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.559 +X-Spam-Level: +X-Spam-Status: No, score=0.559 tagged_above=-999 required=5 tests=[AWL=-0.093, + SPF_NEUTRAL=0.652] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id wzljQdIm2det for ; + Fri, 19 Aug 2016 06:50:46 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id C6A1C6DE0943 + for ; Fri, 19 Aug 2016 06:50:45 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 81770100090 + for ; Fri, 19 Aug 2016 16:50:20 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: Re: [RFC PATCH] test: add devel/test-in-docker.sh +In-Reply-To: <1471381671-21134-1-git-send-email-tomi.ollila@iki.fi> +References: <1471381671-21134-1-git-send-email-tomi.ollila@iki.fi> +User-Agent: Notmuch/0.22+61~geeecb9e (https://notmuchmail.org) Emacs/24.5.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.22 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Fri, 19 Aug 2016 13:50:47 -0000 + +On Wed, Aug 17 2016, Tomi Ollila wrote: + +> With this user can try and test notmuch in docker container, +> in fixed environment where it should compile and tests should pass... +> +> Currently provided container environments are Debian 8.5 and +> Ubuntu 16.04 based. Host OS could be any Linux environment with +> modern enough docker; Perhaps this works on macOS (with docker 1.12+) +> too (in Windows this script probably fails). +> --- +> +> Currently quite a few tests FAIL -- due to missing prerequisite tests. +> It would be easy to add some packages, like gdb, emacs(-nox), dtach, +> but I left those out just to tease you >;) +> + +There are 2 problems in this script + +1) If the initial docker images (ubuntu:16.04 or debian:8.5) are not + pulled before docker build started, using sha256 hash of the docker + image doesn't work as the initial image where to start building on. + +2) Surprisingly(*) ubuntu:16.03 sha256 has changed from + 42118e3df429f09ca581a9deb3df274601930e428e452f7e4e9f1833c56a100a to + f8d79ba03c00bbcd8079cf05b7526ac8f4f422744aad8c3747a29a38ed8c4a41 + between 2016-08-15 (mon) and 2016-08-19 (fri). + +So, currently `docker pull debian:8.5` and then +`./test-in-docker debian8` should work. If ubuntu:16.04 was pulled early +enough `./test-in-docker ubuntu1604` would work (too). + +The next version (which I probably do sometime in distant future, when I +have time to enchange tests (before that I try to do some reviews!)) will +probably work the opposite way -- use name:tag as source and after build +spit a (friendly) WARNING if the hash of the initial image has changed +in-between. + + +(*) or perhaps not so surprisingly -- anyway it is unfortunate that these +images are not so ephemeral as one would wish for... + + +Tomi