From dab7bfb5c3e38f5a6b1840093b0d1c571582f8d9 Mon Sep 17 00:00:00 2001 From: Andrey Avtomonov <7889985+andreybavt@users.noreply.github.com> Date: Mon, 11 May 2026 20:31:35 +0200 Subject: [PATCH] test: expose historic sql pattern shard path --- examples/postgres-historic/scripts/smoke.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/postgres-historic/scripts/smoke.sh b/examples/postgres-historic/scripts/smoke.sh index d3904c27..07656d37 100755 --- a/examples/postgres-historic/scripts/smoke.sh +++ b/examples/postgres-historic/scripts/smoke.sh @@ -132,10 +132,11 @@ if (expectedWorkUnits === 'zero') { } else if (expectedWorkUnits === 'nonzero') { assert(record.workUnitCount > 0, `${label}: expected nonzero WorkUnits`); const patternUnits = record.workUnits.filter((unit) => /^historic-sql-patterns-part-\d{4}$/.test(unit.unitKey)); + const patternShardRawFilePattern = new RegExp('^patterns-input/part-\\d{4}\\.json$'); assert(patternUnits.length > 0, `${label}: expected sharded patterns WorkUnit`); for (const unit of patternUnits) { assert( - unit.rawFiles.some((rawFile) => /^patterns-input\/part-\d{4}\.json$/.test(rawFile)), + unit.rawFiles.some((rawFile) => patternShardRawFilePattern.test(rawFile)), `${label}: expected ${unit.unitKey} to read a pattern shard`, ); assert(