Граф коммитов

221 Коммитов

Автор SHA1 Сообщение Дата
Anna Scholtz 7d28bb1785
Fix validate-routine CI (#5115) 2024-02-26 09:59:47 -08:00
Anna Scholtz 41e953ea20
Conditional steps in CI (#5095)
* Revert "Revert "Path Filtering in CI (#4939)""

This reverts commit d6189a7641.

* Revert "Revert "Run SQL checks when requirements change (#5030)""

This reverts commit 3991a2574b.

* Revert "Revert "Add parameter to skip stage depoys in CI (#5035)""

This reverts commit c4c651d0c5.

* run-all CI workflow

* Use conditionals in jobs

* Add deploy parameter and use yaml references for conditions

* Add backfill validation
2024-02-26 09:36:53 -08:00
Winnie Chan 2387660ab7
DENG-822: Validate workgroups in backfills (#5081)
* Updated workgroup validations

* Fixed indentation in config.yml

* removed sys exit

Co-authored-by: Alexander <anicholson@mozilla.com>

* raise value error

Co-authored-by: Alexander <anicholson@mozilla.com>

* added workgroup constant

* Fixed value error

---------

Co-authored-by: Alexander <anicholson@mozilla.com>
2024-02-23 12:54:38 -08:00
Arkadiusz Komarzewski d6189a7641 Revert "Path Filtering in CI (#4939)"
This reverts commit bff0a754d4.
2024-02-15 16:34:37 +01:00
Arkadiusz Komarzewski 3991a2574b Revert "Run SQL checks when requirements change (#5030)"
This reverts commit d3f3c84295.
2024-02-15 16:34:37 +01:00
Arkadiusz Komarzewski c4c651d0c5 Revert "Add parameter to skip stage depoys in CI (#5035)"
This reverts commit 94a4a10407.
2024-02-15 16:34:37 +01:00
Anna Scholtz 94a4a10407
Add parameter to skip stage depoys in CI (#5035) 2024-02-13 12:53:03 -08:00
Anna Scholtz d3f3c84295
Run SQL checks when requirements change (#5030) 2024-02-13 10:58:15 -08:00
Anna Scholtz bff0a754d4
Path Filtering in CI (#4939)
* Path Filtering in CI

* generated-sql updates

* CI filtering for UDF changes

* Make change to tooling
2024-02-12 14:17:53 -08:00
whd c05ac1d661
Stop using data-eng-circleci-tests context in CI (#4884) 2024-02-08 21:35:55 +00:00
Anna Scholtz 0b8e8f14a4
Push tags for commits on generated-sql branch (#4984)
* Push tags for commits on generated-sql branch

* Update .circleci/config.yml

Co-authored-by: Alexander <anicholson@mozilla.com>

---------

Co-authored-by: Alexander <anicholson@mozilla.com>
2024-02-07 11:07:32 -08:00
Anna Scholtz e10b93c06c
fix typo in CI (#4983)
Typo in circleci
2024-02-07 10:08:56 -08:00
Anna Scholtz fa1c2492bd
Use caching in generate-sql (#4953)
* Use caching in generate-sql

* Make change in sql generator

* Remove file

* Add CI comments
2024-02-07 08:57:05 -08:00
Sean Rose e2f33ed29b
Add debug messages for `gcp.json` file. (#4979) 2024-02-07 08:12:25 -08:00
Anna Scholtz 138841d351
Package bqetl and publish to PyPI (#4917)
* pyproject.toml for bqetl

* Correctly resolve SQL generators from package

* CircleCI config to publish tagged versions to PyPI

* Get version from git tags
2024-02-05 09:04:04 -08:00
Anna Scholtz ddae31eb34
Don't run private-generate-sql for each PR (#4938) 2024-01-31 15:24:53 -08:00
Anna Scholtz b0a1a32246
Speed up generate-sql (#4921)
* Speed up glean_usage generator

* Refactoring
2024-01-31 12:08:29 -08:00
Winnie Chan fca4152ed9
Removed validate backfill ci check (#4883) 2024-01-25 14:05:53 -08:00
Sean Rose 0530c1dc81
Fix `verify-format-sql` CI check not reporting SQL formatting issues (#4827)
* Verify the format of the original SQL, not the generated SQL.

The generated SQL gets reformatted by `bqetl query render`.

* Format all SQL.

* Quote column names containing Jinja expressions to prevent `bqetl format` causing invalid SQL.

* Adjust indentation of some comments to align with the formatted SQL.

* Refactor final `SELECT` in `telemetry_derived.clients_first_seen_v2` to work better with `bqetl format` SQL formatting.

* Fix trailing line comments breaking inline block formatting.

* Fix leading whitespace before Jinja comments not being preserved.

* Add `schema.yaml` for `firefox_ios_derived.baseline_clients_yearly_v1`.

So the `deploy-changes-to-stage` CI can work for the downstream `firefox_ios.baseline_clients_yearly` view.

* Add `schema.yaml` for `firefox_accounts_derived/fxa_users_services_daily_v1`.

So the `dry-run-sql` CI can work for the downstream `firefox_accounts_derived.fxa_users_services_last_seen_v1` ETL.

* Correct `schema.yaml` and `init.sql` for `firefox_accounts_derived.fxa_users_last_seen_v1`.

So the `dry-run-sql` CI can work for the downstream `firefox_accounts_derived.fxa_users_last_seen_v1` ETL.

* Fully qualify table reference in `init.sql` for `firefox_accounts_derived.fxa_users_last_seen_v1`.

So the table dependency will get detected by the `deploy-changes-to-stage` CI to deploy it so the `dry-run-sql` CI can work for the `init.sql` file.

* Improve `JinjaComment` inheritance and docstring.

* Implement `Line.ends_with_line_comment` property and refactor `inline_block_format()`.
2024-01-22 11:48:08 -08:00
Daniel Thorn b0bfc65052
DENG-965 - symbolicate and signaturize crash pings (#4642) 2023-12-12 08:57:52 -08:00
Sean Rose 4430d55c82
Change directory to generate private DAGs so `sql_file_path` values are relative to the repo root. (#4668)
* `cd` into `private-bigquery-etl` repo when generating DAGs.

To avoid generated DAGs having incorrect absolute paths for ETLs using SQL scripts.
2023-12-11 11:13:41 -08:00
Sean Rose cc8c5db9ac
Minimize previous PR diff comments when CI posts a new diff comment (#4635)
* Minimize previous PR diff comments when CI posts a new diff comment.

* Update Node image to latest version available from CircleCI and pin Node packages.
2023-12-04 09:09:32 -08:00
Sean Rose fd08656bea
Don't nest SQL generated from `main` branch in extra `sql` directory. (#4614) 2023-11-28 13:49:56 -08:00
Sean Rose 94085cfd4a
In generated diffs explicitly list the files being added or deleted. (#4600) 2023-11-23 09:15:52 -08:00
akkomar fe0db11287
Increase no_output_timeout for long-running CI jobs (#4602) 2023-11-23 13:59:57 +01:00
Anna Scholtz 150db27e22
Link to full diff in git comments (#4593)
* Link to full diff in git comments

* Show full diff of new and deleted files
2023-11-21 14:46:12 -08:00
Lucia 3483a74844
Add output_dir to command dag generate. (#4512)
* Add output_dir to command dag generate.

* output_dir to command dag generate.

* output_dir to command dag generate.

---------

Co-authored-by: Lucia Vargas <lvargas@mozilla.com>
2023-11-02 16:30:29 +01:00
Anna Scholtz dffbb3afef
Remove generated DAGs from main (#4507) 2023-11-01 15:05:59 -07:00
Mikaël Ducharme 95e90efb4d
fix(ci): Manually set SSH configuration for multiple SSH keys. (#4420) 2023-10-13 11:46:23 -04:00
Mikaël Ducharme 9a6d9d15f4
fix(ci): sync-dags-repo uses wrong branch for private-bigquery-etl (#4417) 2023-10-12 17:21:42 -04:00
Mikaël Ducharme 27a99ca947
fix(ci): Add missing SSH key in sync-dags-repo step (#4416) 2023-10-12 16:46:21 -04:00
Mikaël Ducharme c187aeba06
chore(ci): update private-bigquery-etl git submodule in telemetry-airflow-dags repo (#4415) 2023-10-12 15:45:54 -04:00
Anna Scholtz 1cd7c09842
Push generated private-bigquery-etl DAGs to repo (#4331) 2023-09-20 14:17:47 -07:00
Sean Rose 64163478d8
Diff DAGs first in `generate-diff` CI job. (#4333) 2023-09-20 12:01:43 -07:00
Sean Rose 26703ae6a2
Consistently call `bqetl metadata update` when generating SQL in CI. (#4332) 2023-09-20 10:39:19 -07:00
Mikaël Ducharme e2cde3887a
chore(ci): Update Docker orb to v2.2. (#4326) 2023-09-19 14:36:58 -04:00
Mikaël Ducharme 9c4933b739
chore(ci): CI job to sync bigquery-etl submodule in telemetry-airflow-dags (#4320) 2023-09-19 12:48:30 -04:00
Anna Scholtz 1b6e598c9e
Publish private-bigquery-etl DAGs to private-generated-sql (#4319) 2023-09-19 08:18:32 -07:00
Alekhya 2e916eb856
DENG1381 - Add bqetl support for deprecation metadata (#4213)
* Support bq dataset deprecation process (metadata)

* Add bqetl metadata cli command

* Initial draft for adding deprecation support to bqetl

* Incorporate Anna's feedback

* Fix based on whd's feedback

* Fix ci issues

* Remove unnecessary logic from metadata.py

* Add dataset metadata yaml for ga_derived

* Ignore dirs that do not have dataset_metadata yaml

* Remove unwanted dataset metadata yamls

* Update bigquery_etl/cli/metadata.py

Co-authored-by: whd <whd@users.noreply.github.com>

---------

Co-authored-by: whd <whd@users.noreply.github.com>
2023-09-12 18:47:54 +00:00
Sean Rose 8104df75ba
Consistently call `bqetl query render` when generating SQL in CI. (#4271) 2023-09-08 12:14:01 -07:00
Mikaël Ducharme 6a27f9dad2
chore(ci): Update validate-dags Python to 3.10.12 (#3976) 2023-06-22 13:48:49 +00:00
Anna Scholtz 3f787df986
Fix destination paths when copying stage files in CI (#3895) 2023-06-02 19:06:01 +00:00
Winnie Chan 071c53e4cb
DENG-803/805: Create & Validate backfill cli commands (#3760)
* Added backfill create and validate cli ommand

---------

Co-authored-by: Alexander <anicholson@mozilla.com>
Co-authored-by: kik-kik <42538694+kik-kik@users.noreply.github.com>
2023-06-01 10:06:09 -07:00
Lucia cbe42ab9a9
Deng 850 firefox android clients reported ping (#3789)
* DENG-850 Retrieve FALSE instead of NULL in the in metadata when there isn't first_session or metrics ping.

* DENG-850 Unitest for no first session ping.

* DENG-850 syntax fix

* DENG-850 Tests for first session ping, and no baseline ping.

* DENG-850 Tests suite.

* DENG-850 YAML fixes.

* DENG-850 Adjustment to the case of reported first_session and metrics ping. The unitests are adjusted to get the value for reported pings.

* DENG-850 Add sample id to test.

---------

Co-authored-by: Lucia Vargas <lvargas@mozilla.com>
2023-05-26 12:50:08 +02:00
Daniel Thorn 0b40246e92
generate sql and dags for main in a separate CI task for faster results (#3828) 2023-05-23 10:14:12 -07:00
Daniel Thorn a0d810275b
Remove java dependency in favor of sqlglot (#3755) 2023-05-17 14:56:42 -07:00
Alexander 70adb102f4
Skip deploy jobs on non-main branches (#3777)
* Skip deploy jobs
* Remove tag conditions
2023-05-15 09:02:08 -04:00
Sean Rose dbacc6e4b3
Build Docker image in CI. (#3759)
To catch Dockerfile issues prior to merging.
2023-05-04 08:31:37 -07:00
Anna Scholtz 381f95cc15
Add support for --sql-dir option (#3708) 2023-04-06 15:23:37 -07:00
Anna Scholtz 3d11766974
Jinja related improvements (#3693) 2023-03-30 13:29:29 -07:00