Skip to content

Commit e29b0d0

Browse files
authored
Merge pull request #1164 from spack/p-ci-builds
Replace use of ci_builds with p_ci_builds
2 parents 0f8fde0 + 4ed70b6 commit e29b0d0

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/custom_docker_builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- docker-image: ./images/cache-indexer
4646
image-tags: ghcr.io/spack/cache-indexer:0.0.6
4747
- docker-image: ./analytics
48-
image-tags: ghcr.io/spack/django:0.5.3
48+
image-tags: ghcr.io/spack/django:0.5.4
4949
- docker-image: ./images/ci-prune-buildcache
5050
image-tags: ghcr.io/spack/ci-prune-buildcache:0.0.4
5151
- docker-image: ./images/protected-publish

analytics/analytics/core/migrations/0003_jobdatadimension_gitlab_failure_reason_and_more.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def migrate_exit_codes(apps: Apps, schema_editor: BaseDatabaseSchemaEditor) -> N
1919
failed_jobs.values_list("job_id", flat=True).iterator(chunk_size=BATCH_SIZE), BATCH_SIZE
2020
):
2121
with connections["gitlab"].cursor() as cursor:
22-
QUERY = "SELECT build_id, exit_code FROM public.ci_builds_metadata WHERE build_id IN %s"
22+
QUERY = "SELECT build_id, exit_code FROM public.p_ci_builds_metadata WHERE build_id IN %s"
2323
cursor.execute(QUERY, [tuple(job_ids)])
2424
rows = cursor.fetchall()
2525

@@ -91,7 +91,7 @@ def migrate_failure_reasons(apps: Apps, schema_editor: BaseDatabaseSchemaEditor)
9191
failed_jobs.values_list("job_id", flat=True).iterator(chunk_size=BATCH_SIZE), BATCH_SIZE
9292
):
9393
with connections["gitlab"].cursor() as cursor:
94-
QUERY = "SELECT id, failure_reason FROM public.ci_builds WHERE id IN %s"
94+
QUERY = "SELECT id, failure_reason FROM public.p_ci_builds WHERE id IN %s"
9595
cursor.execute(QUERY, [tuple(job_ids)])
9696
rows = cursor.fetchall()
9797

analytics/analytics/job_processor/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_job_retry_data(
3434
cursor.execute(
3535
"""
3636
SELECT COUNT(*)
37-
FROM ci_builds
37+
FROM p_ci_builds
3838
WHERE id < %(job_id)s
3939
AND commit_id = %(commit_id)s
4040
AND name = %(job_name)s
@@ -46,7 +46,7 @@ def get_job_retry_data(
4646
cursor.execute(
4747
"""
4848
SELECT bm.config_options->>'retry'
49-
FROM ci_builds_metadata bm
49+
FROM p_ci_builds_metadata bm
5050
WHERE bm.build_id = %(job_id)s
5151
""",
5252
{"job_id": job_id},
@@ -94,7 +94,7 @@ def get_job_exit_code(job_id: int) -> int | None:
9494
cursor.execute(
9595
"""
9696
SELECT exit_code
97-
FROM ci_builds_metadata
97+
FROM p_ci_builds_metadata
9898
WHERE build_id = %(job_id)s
9999
""",
100100
{"job_id": job_id},

k8s/production/custom/webhook-handler/deployments.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
serviceAccountName: webhook-handler
2424
containers:
2525
- name: webhook-handler
26-
image: ghcr.io/spack/django:0.5.3
26+
image: ghcr.io/spack/django:0.5.4
2727
imagePullPolicy: Always
2828
resources:
2929
requests:
@@ -146,7 +146,7 @@ spec:
146146
serviceAccountName: webhook-handler
147147
containers:
148148
- name: webhook-handler-worker
149-
image: ghcr.io/spack/django:0.5.3
149+
image: ghcr.io/spack/django:0.5.4
150150
command:
151151
[
152152
"celery",

0 commit comments

Comments
 (0)