[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/15: gnu: TimescaleDB: Update to 2.7.0.
From: |
guix-commits |
Subject: |
07/15: gnu: TimescaleDB: Update to 2.7.0. |
Date: |
Tue, 14 Jun 2022 17:36:19 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit d73b88d82650f8e38327dcd1c7a0c9da4fc96e0f
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Jun 14 17:58:08 2022 +0200
gnu: TimescaleDB: Update to 2.7.0.
* gnu/packages/databases.scm (timescaledb): Update to 2.7.0.
[source](snippet): Remove more files.
[source](patches): New field.
* gnu/packages/patches/timescaledb-flaky-test.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
---
gnu/local.mk | 1 +
gnu/packages/databases.scm | 10 +-
gnu/packages/patches/timescaledb-flaky-test.patch | 107 ++++++++++++++++++++++
3 files changed, 115 insertions(+), 3 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 0176585485..d08a11ac89 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1844,6 +1844,7 @@ dist_patch_DATA =
\
%D%/packages/patches/texi2html-i18n.patch \
%D%/packages/patches/thefuck-test-environ.patch \
%D%/packages/patches/tidy-CVE-2015-5522+5523.patch \
+ %D%/packages/patches/timescaledb-flaky-test.patch \
%D%/packages/patches/tinyxml-use-stl.patch \
%D%/packages/patches/tipp10-disable-downloader.patch \
%D%/packages/patches/tipp10-fix-compiling.patch \
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 7d9f44c79c..6507dc8b8a 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1320,7 +1320,7 @@ pictures, sounds, or video.")
(define-public timescaledb
(package
(name "timescaledb")
- (version "2.5.1")
+ (version "2.7.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -1329,14 +1329,18 @@ pictures, sounds, or video.")
(file-name (git-file-name name version))
(sha256
(base32
- "174dm3higa0i7al9r2hdv5hk36pd0d5fnqj57w5a350kxshxyvyw"))
+ "18wszj8ia5rs4y4zkyfb0f5z4y1g7ac3jym748nbkbszhxmq7nc7"))
+ (patches (search-patches "timescaledb-flaky-test.patch"))
(modules '((guix build utils)))
(snippet
;; Remove files carrying the proprietary TIMESCALE license.
'(begin
(delete-file-recursively "tsl")
(for-each delete-file
- '("test/perl/AccessNode.pm"
+ '("scripts/c_license_header-timescale.h"
+ "scripts/license_tsl.spec"
+ "scripts/sql_license_tsl.sql"
+ "test/perl/AccessNode.pm"
"test/perl/DataNode.pm"
"test/perl/TimescaleNode.pm"))))))
(build-system cmake-build-system)
diff --git a/gnu/packages/patches/timescaledb-flaky-test.patch
b/gnu/packages/patches/timescaledb-flaky-test.patch
new file mode 100644
index 0000000000..6268bcecad
--- /dev/null
+++ b/gnu/packages/patches/timescaledb-flaky-test.patch
@@ -0,0 +1,107 @@
+Use fixed dates in test for consistent results.
+
+Taken from upstream:
+
+
https://github.com/timescale/timescaledb/commit/1d0670e703862b284c241ab797404f851b25b5df
+
+diff --git a/test/expected/copy-12.out b/test/expected/copy-12.out
+index 5cb28a45a2..37abf6f6ff 100644
+--- a/test/expected/copy-12.out
++++ b/test/expected/copy-12.out
+@@ -324,13 +324,12 @@ INSERT INTO hyper_copy_large
+ SELECT time,
+ random() AS value
+ FROM
+-generate_series(now() - INTERVAL '1 months', now() - INTERVAL '1 day',
+- INTERVAL '1 hour') AS g1(time)
++generate_series('2022-01-01', '2022-01-31', INTERVAL '1 hour') AS g1(time)
+ ORDER BY time;
+ SELECT COUNT(*) FROM hyper_copy_large;
+ count
+ -------
+- 697
++ 721
+ (1 row)
+
+ -- Migrate data to chunks by using copy
+@@ -345,7 +344,7 @@ NOTICE: migrating data to chunks
+ SELECT COUNT(*) FROM hyper_copy_large;
+ count
+ -------
+- 697
++ 721
+ (1 row)
+
+ ----------------------------------------------------------------
+diff --git a/test/expected/copy-13.out b/test/expected/copy-13.out
+index 02bf913eff..89e16fe8e2 100644
+--- a/test/expected/copy-13.out
++++ b/test/expected/copy-13.out
+@@ -324,13 +324,12 @@ INSERT INTO hyper_copy_large
+ SELECT time,
+ random() AS value
+ FROM
+-generate_series(now() - INTERVAL '1 months', now() - INTERVAL '1 day',
+- INTERVAL '1 hour') AS g1(time)
++generate_series('2022-01-01', '2022-01-31', INTERVAL '1 hour') AS g1(time)
+ ORDER BY time;
+ SELECT COUNT(*) FROM hyper_copy_large;
+ count
+ -------
+- 697
++ 721
+ (1 row)
+
+ -- Migrate data to chunks by using copy
+@@ -345,7 +344,7 @@ NOTICE: migrating data to chunks
+ SELECT COUNT(*) FROM hyper_copy_large;
+ count
+ -------
+- 697
++ 721
+ (1 row)
+
+ ----------------------------------------------------------------
+diff --git a/test/expected/copy-14.out b/test/expected/copy-14.out
+index 02bf913eff..89e16fe8e2 100644
+--- a/test/expected/copy-14.out
++++ b/test/expected/copy-14.out
+@@ -324,13 +324,12 @@ INSERT INTO hyper_copy_large
+ SELECT time,
+ random() AS value
+ FROM
+-generate_series(now() - INTERVAL '1 months', now() - INTERVAL '1 day',
+- INTERVAL '1 hour') AS g1(time)
++generate_series('2022-01-01', '2022-01-31', INTERVAL '1 hour') AS g1(time)
+ ORDER BY time;
+ SELECT COUNT(*) FROM hyper_copy_large;
+ count
+ -------
+- 697
++ 721
+ (1 row)
+
+ -- Migrate data to chunks by using copy
+@@ -345,7 +344,7 @@ NOTICE: migrating data to chunks
+ SELECT COUNT(*) FROM hyper_copy_large;
+ count
+ -------
+- 697
++ 721
+ (1 row)
+
+ ----------------------------------------------------------------
+diff --git a/test/sql/copy.sql.in b/test/sql/copy.sql.in
+index 91402c2ab8..bba4265064 100644
+--- a/test/sql/copy.sql.in
++++ b/test/sql/copy.sql.in
+@@ -276,8 +276,7 @@ INSERT INTO hyper_copy_large
+ SELECT time,
+ random() AS value
+ FROM
+-generate_series(now() - INTERVAL '1 months', now() - INTERVAL '1 day',
+- INTERVAL '1 hour') AS g1(time)
++generate_series('2022-01-01', '2022-01-31', INTERVAL '1 hour') AS g1(time)
+ ORDER BY time;
+
+ SELECT COUNT(*) FROM hyper_copy_large;
- branch master updated (8e97491277 -> 13c46cc29d), guix-commits, 2022/06/14
- 02/15: gnu: PostgreSQL@14: Update to 14.3 [fixes CVE-2022-1552]., guix-commits, 2022/06/14
- 04/15: gnu: PostgreSQL@10: Update to 10.21 [fixes CVE-2022-1552]., guix-commits, 2022/06/14
- 05/15: gnu: PostgreSQL@13: Update replacement to 13.7 [fixes CVE-2022-1552]., guix-commits, 2022/06/14
- 06/15: gnu: ruby-pg: Update to 1.3.5., guix-commits, 2022/06/14
- 07/15: gnu: TimescaleDB: Update to 2.7.0.,
guix-commits <=
- 08/15: gnu: python-josepy: Update to 1.13.0., guix-commits, 2022/06/14
- 09/15: gnu: python-acme, certbot: Update to 1.28.0., guix-commits, 2022/06/14
- 15/15: gnu: PostgreSQL: Promote version 14 to the default., guix-commits, 2022/06/14
- 13/15: gnu: python-tortoise-orm: Update to 0.19.1., guix-commits, 2022/06/14
- 11/15: gnu: gplates: Update to 2.3.01-beta.3., guix-commits, 2022/06/14
- 03/15: gnu: PostgreSQL@11: Update to 11.16 [fixes CVE-2022-1552]., guix-commits, 2022/06/14
- 10/15: gnu: perl-dbd-pg: Update to 3.15.1., guix-commits, 2022/06/14
- 14/15: gnu: python-asyncpg: Update to 0.25.0., guix-commits, 2022/06/14
- 01/15: gnu: PostgreSQL: Permit loading plugins from symlink unions again., guix-commits, 2022/06/14
- 12/15: gnu: python-pypika-tortoise: Update to 0.1.5., guix-commits, 2022/06/14