From bfb9e895eed05700921e0d5962f49e65eb291766 Mon Sep 17 00:00:00 2001 From: George Hickman Date: Tue, 21 Nov 2023 14:50:01 +0000 Subject: [PATCH] test --- .github/workflows/main.yml | 7 +++++++ metrics/timescaledb/writer.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 62d4e5d6..00bb9d63 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,6 +28,8 @@ jobs: services: timescaledb: + # mirror what's in timescaledb/Dockerfile + image: timescale/timescaledb:pg14-latest@sha256:c453fa2d290d578a5983b5823e9ffbf16f478735d8c121620436c4a9c6e55df5 build: dockerfile: timescaledb/Dockerfile env: @@ -42,6 +44,7 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 + steps: - uses: actions/checkout@v4 - uses: "opensafely-core/setup-action@v1" @@ -51,6 +54,10 @@ jobs: - name: Run tests env: + GITHUB_TOKEN: + SLACK_SIGNING_SECRET: + SLACK_TECH_SUPPORT_CHANNEL_ID: + SLACK_TOKEN: TIMESCALEDB_URL: postgresql://user:password@localhost/metrics run: | just test diff --git a/metrics/timescaledb/writer.py b/metrics/timescaledb/writer.py index ab94b20e..cebcfbb8 100644 --- a/metrics/timescaledb/writer.py +++ b/metrics/timescaledb/writer.py @@ -30,7 +30,7 @@ def ensure_table(engine, table): ) # ensure the RO grafana user can read the table - connection.execute(text(f"GRANT SELECT ON {table.name} TO grafanareader")) + # connection.execute(text(f"GRANT SELECT ON {table.name} TO grafanareader")) class TimescaleDBWriter: