{"thread":{"id":"52335","subject":"[PATCH] ci: add Cirrus-CI config for FreeBSD CI","startedAt":"2019-11-25T20:45:09Z","lastAt":"2019-12-20T02:11:53Z","messageCount":6,"participants":["Ed Maste","brian m. carlson"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"387015","messageId":"20191125203740.72249-1-emaste@freefall.freebsd.org","threadId":"52335","inReplyTo":null,"subject":"[PATCH] ci: add Cirrus-CI config for FreeBSD CI","fromName":"Ed Maste","fromEmail":"emaste@freefall.freebsd.org","sentAt":"2019-11-25T20:37:40Z","receivedAt":"2019-11-25T20:45:09Z","isPatch":true,"sender":{"key":"emaste@freefall.freebsd.org","avatar":null},"body":"From: Ed Maste <emaste@freebsd.org>\n\nCirrus-CI is relatively unique among hosted CI providers in supporting\nFreeBSD (in addition to Linux, Windows, and macOS).  Add a Cirrus-CI\nconfig to facilitate building and testing on FreeBSD.\n\nSigned-off-by: Ed Maste <emaste@freebsd.org>\n---\n6 i18n tests are currently failing and need investigation.\nExample result: https://cirrus-ci.com/task/5394512637067264\nTest log: https://api.cirrus-ci.com/v1/task/5394512637067264/logs/test.log\n\n .cirrus.yml | 12 ++++++++++++\n 1 file changed, 12 insertions(+)\n create mode 100644 .cirrus.yml\n\ndiff --git a/.cirrus.yml b/.cirrus.yml\nnew file mode 100644\nindex 0000000000..47d871ded5\n--- /dev/null\n+++ b/.cirrus.yml\n@@ -0,0 +1,12 @@\n+env:\n+  CIRRUS_CLONE_DEPTH: 1\n+\n+freebsd_12_task:\n+  freebsd_instance:\n+    image: freebsd-12-1-release-amd64\n+  install_script:\n+    pkg install -y gettext gmake perl5\n+  build_script:\n+    - gmake\n+  test_script:\n+    - gmake test\n-- \n2.24.0\n\n"},{"id":"387029","messageId":"20191126004419.GE2404748@camp.crustytoothpaste.net","threadId":"52335","inReplyTo":"20191125203740.72249-1-emaste@freefall.freebsd.org","subject":"Re: [PATCH] ci: add Cirrus-CI config for FreeBSD CI","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2019-11-26T00:44:19Z","receivedAt":"2019-11-26T00:44:28Z","isPatch":true,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2019-11-25 at 20:37:40, Ed Maste wrote:\n> From: Ed Maste <emaste@freebsd.org>\n> \n> Cirrus-CI is relatively unique among hosted CI providers in supporting\n> FreeBSD (in addition to Linux, Windows, and macOS).  Add a Cirrus-CI\n> config to facilitate building and testing on FreeBSD.\n> \n> Signed-off-by: Ed Maste <emaste@freebsd.org>\n\nI'm all for automated testing on FreeBSD, but we would need someone to\ntriage and address any failures reasonably quickly.  Is that something\nyou'd be okay with doing, or is there someone else who would be okay\nwith doing that?\n\n> ---\n> 6 i18n tests are currently failing and need investigation.\n> Example result: https://cirrus-ci.com/task/5394512637067264\n> Test log: https://api.cirrus-ci.com/v1/task/5394512637067264/logs/test.log\n\nCould we fix these issues first so we don't have CI suddenly start\nfailing?\n-- \nbrian m. carlson: Houston, Texas, US\nOpenPGP: https://keybase.io/bk2204\n"},{"id":"387094","messageId":"CAPyFy2A8x99fa3ti1E9Fqkcpw8RQBn5AJaL+u5g=e0qeMeyf2A@mail.gmail.com","threadId":"52335","inReplyTo":"20191126004419.GE2404748@camp.crustytoothpaste.net","subject":"Re: [PATCH] ci: add Cirrus-CI config for FreeBSD CI","fromName":"Ed Maste","fromEmail":"emaste@freebsd.org","sentAt":"2019-11-26T13:31:46Z","receivedAt":"2019-11-26T17:18:23Z","isPatch":true,"sender":{"key":"emaste@freebsd.org","avatar":"https://avatars.githubusercontent.com/u/1034582?v=4"},"body":"On Mon, 25 Nov 2019 at 19:44, brian m. carlson\n<sandals@crustytoothpaste.net> wrote:\n>\n> On 2019-11-25 at 20:37:40, Ed Maste wrote:\n> > From: Ed Maste <emaste@freebsd.org>\n> >\n> > Cirrus-CI is relatively unique among hosted CI providers in supporting\n> > FreeBSD (in addition to Linux, Windows, and macOS).  Add a Cirrus-CI\n> > config to facilitate building and testing on FreeBSD.\n> >\n> > Signed-off-by: Ed Maste <emaste@freebsd.org>\n>\n> I'm all for automated testing on FreeBSD, but we would need someone to\n> triage and address any failures reasonably quickly.  Is that something\n> you'd be okay with doing, or is there someone else who would be okay\n> with doing that?\n\nWe're currently experimenting with a migration of the FreeBSD repo\nfrom Subversion to git, so long term there will be many with a vested\ninterest in triaging and addressing failures. In the near term though\nI'd be able to take this on.\n\n> > 6 i18n tests are currently failing and need investigation.\n> > Example result: https://cirrus-ci.com/task/5394512637067264\n> > Test log: https://api.cirrus-ci.com/v1/task/5394512637067264/logs/test.log\n>\n> Could we fix these issues first so we don't have CI suddenly start\n> failing?\n\nIndeed, that makes sense. I think the failures may be an issue with\nthe test though; here's the first failure:\n\nexpecting success of 4210.6 '-c grep.patternType=fixed log --grep does not find\nnon-reencoded values (latin1 + locale)':\n                cat >expect <<-\\EOF &&\n                latin1\n                utf8\n                EOF\n                LC_ALL=\"is_IS.UTF-8\" git -c grep.patternType=fixed log\n--encoding=ISO-8859-1 --format=%s --grep=\"_\" >actual &&\n                test_cmp expect actual\n\nfatal: command line, '_': illegal byte sequence\n\nThis was added in 4e2443b1813 with this note in the commit message:\n\n| It's possible that this\n| test breaks the \"basic\" and \"extended\" backends on some systems that\n| are more anal than glibc about the encoding of locale issues with\n| POSIX functions that I can remember, but PCRE is more careful about\n| the validation.\n\nI've CC'd Ævar Arnfjörð Bjarmason for advice on this.\n"},{"id":"387190","messageId":"CAPyFy2DLYHZnzrwA27JQRxGkpf=+Z8ND-6AX3+oepAL+RNwQGg@mail.gmail.com","threadId":"52335","inReplyTo":"20191126004419.GE2404748@camp.crustytoothpaste.net","subject":"Re: [PATCH] ci: add Cirrus-CI config for FreeBSD CI","fromName":"Ed Maste","fromEmail":"emaste@freebsd.org","sentAt":"2019-11-27T14:01:56Z","receivedAt":"2019-11-27T17:48:32Z","isPatch":true,"sender":{"key":"emaste@freebsd.org","avatar":"https://avatars.githubusercontent.com/u/1034582?v=4"},"body":"On Mon, 25 Nov 2019 at 19:44, brian m. carlson\n<sandals@crustytoothpaste.net> wrote:\n>\n> I'm all for automated testing on FreeBSD, but we would need someone to\n> triage and address any failures reasonably quickly.  Is that something\n> you'd be okay with doing, or is there someone else who would be okay\n> with doing that?\n\nRenato Botelho <garga@freebsd.org> is the maintainer of the devel/git\nport/package on FreeBSD and has now also joined this list and offered\nto help triage and address issues.\n\n> Could we fix these issues first so we don't have CI suddenly start\n> failing?\n\nAfter some further investigation I believe these tests are technically\ninvalid but work with glibc because of its looser requirements. I've\nsent a patch (t4210: skip i18n tests that don't work on FreeBSD) to\naddress the failures.\n"},{"id":"387205","messageId":"CAPyFy2CN6LvL36yVB_JkLovTgO=2qQxAEqUGwxEev=d1R_Wo_g@mail.gmail.com","threadId":"52335","inReplyTo":"CAPyFy2DLYHZnzrwA27JQRxGkpf=+Z8ND-6AX3+oepAL+RNwQGg@mail.gmail.com","subject":"Re: [PATCH] ci: add Cirrus-CI config for FreeBSD CI","fromName":"Ed Maste","fromEmail":"emaste@freebsd.org","sentAt":"2019-11-27T15:17:41Z","receivedAt":"2019-11-27T19:04:18Z","isPatch":true,"sender":{"key":"emaste@freebsd.org","avatar":"https://avatars.githubusercontent.com/u/1034582?v=4"},"body":"On Wed, 27 Nov 2019 at 09:01, Ed Maste <emaste@freebsd.org> wrote:\n>\n> After some further investigation I believe these tests are technically\n> invalid but work with glibc because of its looser requirements. I've\n> sent a patch (t4210: skip i18n tests that don't work on FreeBSD) to\n> address the failures.\n\nAnd a now-passing test run on FreeBSD with the change :\nhttps://cirrus-ci.com/task/5657957240406016\n"},{"id":"388606","messageId":"20191220021145.47235-1-emaste@FreeBSD.org","threadId":"52335","inReplyTo":"20191125203740.72249-1-emaste@freefall.freebsd.org","subject":"[PATCH v2] CI: add FreeBSD CI support via Cirrus-CI","fromName":"Ed Maste","fromEmail":"emaste@freebsd.org","sentAt":"2019-12-20T02:11:45Z","receivedAt":"2019-12-20T02:11:53Z","isPatch":true,"sender":{"key":"emaste@freebsd.org","avatar":"https://avatars.githubusercontent.com/u/1034582?v=4"},"body":"Currently testing on FreeBSD 12.1.\n\nSigned-off-by: Ed Maste <emaste@FreeBSD.org>\n---\nSince v1, create an unprivileged user and build/test using that user.\nCI run with this change: https://cirrus-ci.com/task/6565294088126464\n\n .cirrus.yml | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)\n create mode 100644 .cirrus.yml\n\ndiff --git a/.cirrus.yml b/.cirrus.yml\nnew file mode 100644\nindex 0000000000..c2f5fe385a\n--- /dev/null\n+++ b/.cirrus.yml\n@@ -0,0 +1,15 @@\n+env:\n+  CIRRUS_CLONE_DEPTH: 1\n+\n+freebsd_12_task:\n+  freebsd_instance:\n+    image: freebsd-12-1-release-amd64\n+  install_script:\n+    pkg install -y gettext gmake perl5\n+  create_user_script:\n+    - pw useradd git\n+    - chown -R git:git .\n+  build_script:\n+    - su git -c gmake\n+  test_script:\n+    - su git -c 'gmake test'\n-- \n2.24.0\n\n"}]}