Skip to content

Commit 6d37fa0

Browse files
authored
Merge pull request #557 from brooklyn-data/bug/fix-ci
Bug: Fix CI Error In Production
2 parents 2392b16 + 586fa25 commit 6d37fa0

14 files changed

Lines changed: 118 additions & 20 deletions

.github/workflows/cut-release-candidate.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ concurrency:
4141
group: cut-release-candidate
4242
cancel-in-progress: false
4343

44+
env:
45+
# Temporary: keep Node 20 as the actions runtime so the currently
46+
# SHA-pinned action versions (which are Node 20-based) keep working
47+
# after the June 2, 2026 default flip to Node 24. HARD DEADLINE:
48+
# September 16, 2026, when Node 20 is removed from the runner entirely.
49+
# Remove this once the pinned actions are bumped to Node 24-compatible
50+
# versions. Tracked in specs/ci-rework/README.md §12.5.
51+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: "true"
52+
4453
jobs:
4554
cut:
4655
runs-on: ubuntu-latest

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ concurrency:
4141
cancel-in-progress: false
4242

4343
env:
44+
# Temporary: keep Node 20 as the actions runtime so the currently
45+
# SHA-pinned action versions (which are Node 20-based) keep working
46+
# after the June 2, 2026 default flip to Node 24. HARD DEADLINE:
47+
# September 16, 2026, when Node 20 is removed from the runner entirely.
48+
# Remove this once the pinned actions are bumped to Node 24-compatible
49+
# versions. Tracked in specs/ci-rework/README.md §12.5.
50+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: "true"
51+
4452
# Non-secret env vars consumed by the dbt invocations test model. These
4553
# are the same values used pre-rework and are checked in to profiles.yml
4654
# via env_var() — they need to be present, not secret.

.github/workflows/pr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ concurrency:
3939
group: tier1-${{ github.event.pull_request.number }}
4040
cancel-in-progress: true
4141

42+
env:
43+
# Temporary: keep Node 20 as the actions runtime so the currently
44+
# SHA-pinned action versions (which are Node 20-based) keep working
45+
# after the June 2, 2026 default flip to Node 24. HARD DEADLINE:
46+
# September 16, 2026, when Node 20 is removed from the runner entirely.
47+
# Remove this once the pinned actions are bumped to Node 24-compatible
48+
# versions. Tracked in specs/ci-rework/README.md §12.5.
49+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: "true"
50+
4251
jobs:
4352
integration-local:
4453
name: integration (${{ matrix.warehouse }})

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ concurrency:
5151
cancel-in-progress: false
5252

5353
env:
54+
# Temporary: keep Node 20 as the actions runtime so the currently
55+
# SHA-pinned action versions (which are Node 20-based) keep working
56+
# after the June 2, 2026 default flip to Node 24. HARD DEADLINE:
57+
# September 16, 2026, when Node 20 is removed from the runner entirely.
58+
# Remove this once the pinned actions are bumped to Node 24-compatible
59+
# versions. Tracked in specs/ci-rework/README.md §12.5.
60+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: "true"
61+
5462
# Non-secret env vars consumed by the invocations test model (see
5563
# integration_test_project/profiles.yml).
5664
DBT_CLOUD_PROJECT_ID: 123

compose.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,13 @@ services:
9696
/opt/mssql-tools18/bin/sqlcmd -S sqlserver -U sa -P ${MSSQL_SA_PASSWORD:-123Administrator} -No -d master -i docker-entrypoint-initdb.d/init.sql
9797
&& echo "SQL Server bootstrap complete.";
9898
'
99-
# The configurator exits after init.sql completes; that exit is success.
100-
# `docker compose up --wait` treats a service as healthy when it has no
101-
# healthcheck and exits 0, so this satisfies the wait without a healthcheck.
99+
# This is a run-to-completion init container: it runs init.sql, prints
100+
# the success message, and exits. Crucially, it is NOT compatible with
101+
# `docker compose up --wait` — `--wait` treats "not running" as a
102+
# failure regardless of exit code, so a container that exits cleanly
103+
# still makes `--wait` return non-zero. `scripts/ci/compose-up.sh`
104+
# handles that by bringing init containers up separately and using
105+
# `docker compose wait` (different command) to block on their exit.
102106

103107
volumes:
104108
postgres_data:

models/dim_dbt__current_models.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
with
22
base as (select * from {{ ref("stg_dbt__models") }}),
3+
34
model_executions as (select * from {{ ref("stg_dbt__model_executions") }}),
5+
46
latest_models as (
57

68
{# Retrieves the models present in the most recent run #}
7-
select * from base where run_started_at = (select max(run_started_at) from base)
9+
select * from base where run_started_at = (select max(b.run_started_at) from base as b)
810

911
),
1012

@@ -132,4 +134,3 @@ with
132134

133135
select *
134136
from final
135-

models/staging/stg_dbt__model_executions.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
with
22
base as (select * from {{ ref("model_executions") }}),
3+
34
enhanced as (
45

56
select
@@ -30,4 +31,3 @@ with
3031

3132
select *
3233
from enhanced
33-

models/staging/stg_dbt__models.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
with
22
base as (select * from {{ ref("models") }}),
3+
34
enhanced as (
45

56
select
@@ -29,4 +30,3 @@ with
2930

3031
select *
3132
from enhanced
32-

models/staging/stg_dbt__seed_executions.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
with
22
base as (select * from {{ ref("seed_executions") }}),
3+
34
enhanced as (
45

56
select
@@ -29,4 +30,3 @@ with
2930

3031
select *
3132
from enhanced
32-

models/staging/stg_dbt__seeds.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
with
22
base as (select * from {{ ref("seeds") }}),
3+
34
enhanced as (
45

56
select
@@ -26,4 +27,3 @@ with
2627

2728
select *
2829
from enhanced
29-

0 commit comments

Comments
 (0)