From 5d3c30878cc45060005a705cfd2c22d900d8a642 Mon Sep 17 00:00:00 2001 From: "aryehcitron@gmail.com" Date: Tue, 26 May 2026 18:53:49 +0100 Subject: [PATCH] ci: try goccy/bigquery-emulator 0.7.2 to fix REPEAT panic crash 0.7.0+ swapped go-zetasqlite (which panics on REPEAT(x, n<0) via strings.Repeat) for goccy/googlesqlite, so the engine swap should fix the container crash that has been red-failing the Tests workflow on every commit. Branch-only push so the new parity delta can be inspected before merging. --- .github/workflows/test.yml | 2 +- scripts/start-emulator.ps1 | 2 +- .../Infrastructure/BigQuerySession.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7384b1..689f4fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,7 +45,7 @@ jobs: - name: Start BigQuery emulator run: | docker run -d --name bq-emulator -p 9050:9050 --memory=2g --restart=on-failure:5 \ - ghcr.io/goccy/bigquery-emulator:0.6.6 --project=test-project + ghcr.io/goccy/bigquery-emulator:0.7.2 --project=test-project # Wait for emulator to be ready for i in $(seq 1 30); do if curl -sf http://localhost:9050/bigquery/v2/projects/test-project/datasets > /dev/null 2>&1; then diff --git a/scripts/start-emulator.ps1 b/scripts/start-emulator.ps1 index cc7a053..16762f0 100644 --- a/scripts/start-emulator.ps1 +++ b/scripts/start-emulator.ps1 @@ -3,7 +3,7 @@ Starts the goccy/bigquery-emulator Docker container. #> param( - [string]$Image = 'ghcr.io/goccy/bigquery-emulator:0.6.6', + [string]$Image = 'ghcr.io/goccy/bigquery-emulator:0.7.2', [int]$RestPort = 9050, [string]$ProjectId = 'test-project' ) diff --git a/tests/InMemoryEmulator.BigQuery.Tests.Shared/Infrastructure/BigQuerySession.cs b/tests/InMemoryEmulator.BigQuery.Tests.Shared/Infrastructure/BigQuerySession.cs index e981165..bf5fa6c 100644 --- a/tests/InMemoryEmulator.BigQuery.Tests.Shared/Infrastructure/BigQuerySession.cs +++ b/tests/InMemoryEmulator.BigQuery.Tests.Shared/Infrastructure/BigQuerySession.cs @@ -21,7 +21,7 @@ public class BigQuerySession : IAsyncLifetime private string? _containerId; private bool _externalEmulator; - private const string EmulatorImage = "ghcr.io/goccy/bigquery-emulator:0.6.6"; + private const string EmulatorImage = "ghcr.io/goccy/bigquery-emulator:0.7.2"; private const int EmulatorRestPort = 9050; private const string EmulatorProjectId = "test-project"; private readonly SemaphoreSlim _restartLock = new(1, 1);