Closed Bug 1821784 Opened 3 years ago Closed 1 year ago

Previously generated files do not get overridden by bqetl_artifact_deployment tasks, ignoring newly added probes

Categories

(Data Platform and Tools :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ascholtz, Assigned: ascholtz)

References

(Blocks 1 open bug)

Details

(Whiteboard: [dataplatform])

Attachments

(1 file)

The bigquery-etl docker image the Airflow tasks in bqetl_artifact_deployment use already has the artifacts generated via the generate-sql task. The task itself does run ./bqetl generate all, however generated files that already exist do not get overridden. This was an intentional choice since some views get generated "incorrectly" and instead a manually written version should be used.

In some cases it takes a while until the generated-sql branch gets updated (only happens after a merge to main), so the generated SQL views that this task uses can go out of date, resulting in a deployment failure when a new probe gets added in the meantime.

The current fix is to rerun the CI in bigquery-etl to update the generated SQL, however this is likely not an ideal situation so we might want to come up with a better solution.

Depends on: 1821789
No longer depends on: 1821789

Blocks: [meta] BigQuery Artifact Deployment Improvements

Whiteboard: [dataplatform]
Priority: -- → P3
See Also: → 1835658
Assignee: nobody → ascholtz
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: