Commit Graph

231 Commits

Author SHA1 Message Date
Frédéric Péters 9d92f79b4e tox: add new wcs dependencies (#89047)
gitea/wcs-olap/pipeline/head This commit looks good Details
2024-04-03 17:52:52 +02:00
Frédéric Péters d9609f739e tests: adapt to wcs switch to timestamptz (#86887)
gitea/wcs-olap/pipeline/head This commit looks good Details
2024-02-12 18:34:30 +01:00
Frédéric Péters 694e4044d2 misc: add explicit flag to get anonymised forms (#86606)
gitea/wcs-olap/pipeline/head This commit looks good Details
2024-02-06 14:30:12 +01:00
Frédéric Péters b6d00fab97 misc: add support for the new "file-import" channel (#81074)
gitea/wcs-olap/pipeline/head This commit looks good Details
2023-09-14 07:57:43 +02:00
Valentin Deniaud 31b63b45f4 misc: update git-blame-ignore-revs to ignore quote changes (#79788)
gitea/wcs-olap/pipeline/head This commit looks good Details
2023-08-16 10:31:39 +02:00
Valentin Deniaud 4627cf8207 misc: apply double-quote-string-fixer (#79788) 2023-08-16 10:31:39 +02:00
Valentin Deniaud 362bd38754 misc: add pre commit hook to force single quotes (#79788) 2023-08-16 10:31:38 +02:00
Frédéric Péters d68ce5a271 tests: kill wcs process in more places (#80373)
gitea/wcs-olap/pipeline/head This commit looks good Details
2023-08-10 21:16:30 +02:00
Frédéric Péters cd12909483 ci: build deb package for bookworm (#78968)
gitea/wcs-olap/pipeline/head This commit looks good Details
2023-06-23 18:09:53 +02:00
Frédéric Péters b128abec37 ci: fix wcs git url (#76647)
gitea/wcs-olap/pipeline/head This commit looks good Details
2023-05-28 17:00:01 +02:00
Frédéric Péters b1eeb4bb0c debian: apply new pre-commit-debian (#77727)
gitea/wcs-olap/pipeline/head There was a failure building this commit Details
2023-05-27 21:40:34 +02:00
Frédéric Péters a06432d958 ci: upgrade pre-commit-debian (#77727) 2023-05-27 21:40:12 +02:00
Frédéric Péters 12f09c9716 ci: update wcs git URI for gitea (#76647) 2023-04-14 14:42:34 +02:00
Frédéric Péters c65766f0db tox: add emoji (new wcs dependency) (#76643)
gitea/wcs-olap/pipeline/head This commit looks good Details
2023-04-14 12:36:19 +02:00
Frédéric Péters 837c96f552 tox: bump django to 3.2 (#75623)
gitea/wcs-olap/pipeline/head This commit looks good Details
2023-03-20 17:59:47 +01:00
Frédéric Péters 40feb778d6 tests: remove usage of string fields (#74653)
gitea/wcs-olap/pipeline/head This commit looks good Details
2023-02-20 17:05:20 +01:00
Agate 559681f3bc Prepare Jenkinsfile for Gitea migration (#74572) 2023-02-20 15:17:56 +01:00
Frédéric Péters d8047a1147 ci: declare Pillow as wcs dependency (#74563) 2023-02-15 17:31:36 +01:00
Frédéric Péters 4b20fb5dd3 ci: upgrade isort (#74044) 2023-02-01 09:29:09 +01:00
Frédéric Péters 821b9bd87a ci: only build package for bullseye (#72729) 2022-12-22 17:21:30 +01:00
Paul Marillonnet fab6faee6e ci: limit tox version used while running tests (#72165) 2022-12-08 10:45:26 +01:00
Frédéric Péters aaeaf0064e tox: add phonenumbers (new wcs dependency) (#69838) 2022-11-29 17:33:56 +01:00
Frédéric Péters 09e6ef0b6e ci: update pyupgrade to 3.1.0 (#70693) 2022-10-26 19:22:46 +02:00
Frédéric Péters a41c247c57 tox: declare new w.c.s. dependencies 2022-07-21 17:48:49 +02:00
Frédéric Péters ccc5f70710 trivial: add reformatting commit hash to .git-blame-ignore-revs 2022-07-16 08:37:43 +02:00
Frédéric Péters 461254e986 trivial: apply pre-commit 2022-07-16 08:36:18 +02:00
Frédéric Péters c27d346d92 misc: add pre-commit configuration 2022-07-16 08:36:12 +02:00
Frédéric Péters 9b264652a1 tests: setup wcs with postgresql storage (#67403) 2022-07-15 21:01:18 +02:00
Benjamin Dauvergne 74eb8aa08c feeder: do not use UNLOGGED tables for persistent data (#65220) 2022-05-13 14:57:47 +02:00
Frédéric Péters d888b4152f only consider bool/item/items fields if explicitely marked for stats (#63432) 2022-04-01 09:17:25 +02:00
Benjamin Dauvergne 420c724be7 feeder: ignore non string items (#60243) 2022-01-21 11:07:26 +01:00
Emmanuel Cazenave 016ff7e1ee jenkins: show execution context in coverage reports (#60446) 2022-01-11 16:18:00 +01:00
Frédéric Péters 70dc277748 jenkins: use python3 to get a port for postgresql (#60467) 2022-01-10 17:33:35 +01:00
Benjamin Dauvergne 642b7efa3e feeder: create UNLOGGED tables (#59656) 2021-12-22 10:56:22 +01:00
Frédéric Péters f94da4a239 tox: add unidecode somehow now missing 2021-12-17 17:40:43 +01:00
Frédéric Péters 5536b0dd07 tox: declare new wcs dependency (dnspython) 2021-12-15 08:19:40 +01:00
Frédéric Péters 817d5a789b jenkins: build packages for buster & bullseye 2021-12-12 11:38:08 +01:00
Frédéric Péters 7aaa76feb8 tox: add bleach, new w.c.s. dependency 2021-11-30 17:26:20 +01:00
Frédéric Péters c7e1fd583e debian: switch to debhelper-compat 12 (#57538) 2021-10-10 10:53:29 +02:00
Frédéric Péters cc28626b9b debian: do not run tests 2021-10-10 10:53:29 +02:00
Benjamin Dauvergne a08c629f75 feeder: create an unique slug if necessary (#42911) 2021-08-19 11:59:03 +02:00
Benjamin Dauvergne 05c4031776 feeder: prevent situation of half-dropped schema (#54658)
To prevent loosing currently loaded data wcs-olap, failing ro rename the
temporary schema to its final name, wcs-olap will:

- first, inside a transaction, rename the current schema instead of
  dropping it, then rename the new schema to the current schema's name;
  in case of failure it will retry 33 times sleeping 1 second between
  each attempt;

- if successfull, drop the renamed old schema, again in a retry loop, if
  it fails to drop it logs an error, without aborting the current
  feeding.
2021-08-17 23:07:54 +02:00
Benjamin Dauvergne e0a28c2f85 feeder: set synchronous_commit to off during feed (#56039) 2021-08-17 19:27:48 +02:00
Benjamin Dauvergne 47a85d8531 feeder: add option post-sync-commands (#56164)
Exemple:

  [wcs-olap]
  post-sync-commands = ALTER DEFAULT PRIVILEGES IN SCHEMA {schema} GRANT SELECT ON TABLES TO user;
    GRANT USAGE ON SCHEMA {schema} TO user;
    GRANT SELECT ON ALL TABLES IN SCHEMA {schema}  TO user;

Those commands will be launched after the synchronization, interpolation
variables are usable (like {schema} for the target schema name).
2021-08-14 23:41:16 +02:00
Benjamin Dauvergne 5baffc8156 cmd: use Logger.setLevel() (#56038)
Directly setting logger.level should never used as it does not clear the
isEnabledFor cache of the logger which breaks some tests.
2021-08-14 23:35:48 +02:00
Benjamin Dauvergne 7690321265 tests: add test_sentry (#56038) 2021-08-14 10:54:16 +02:00
Benjamin Dauvergne 9476ad799b misc: integrate with sentry (#56038)
To use it add the following lines to /etc/wcs-olap/config.ini:

[sentry]
dsn = https://apikey@sentry.example.com/1
environment = prod
2021-08-07 15:35:30 +02:00
Frédéric Péters 48b8adaf27 tox: run tests against django 2.2 2021-07-03 14:47:24 +02:00
Frédéric Péters 61c6085fae tox: limit psycopg2 to < 2.9 (#54925) 2021-07-03 14:46:45 +02:00
Benjamin Dauvergne b3a59edb54 Revert "feeder: set deadlock_timeout to 10 seconds (#54658)"
This reverts commit c74766bf2c.
2021-06-14 09:44:41 +02:00