From 195d553e60d4d8b10b8dcca57927bd6de7c847b2 Mon Sep 17 00:00:00 2001 From: Sean Lip Date: Wed, 25 Nov 2026 16:28:05 +0800 Subject: [PATCH 1/2] Fix CI workflows, switch GCP auth to WIF, add linting, and document PR workflow --- .github/CODEOWNERS | 2 + .github/ISSUE_TEMPLATE/02_new_feature.yml | 2 +- .github/ISSUE_TEMPLATE/04_new_cuj.yml | 2 +- .github/dependabot.yml | 19 +++ .github/workflows/pr_validation.yml | 109 +++++++++++++++--- .github/workflows/weekly_run.yml | 52 ++++----- .gitignore | 4 + .sqlfluff | 47 ++++++++ .sqlfluffignore | 5 + .yamllint.yml | 22 ++++ CONTRIBUTING.md | 69 +++++++++++ README.md | 20 ++-- models/README.md | 19 ++- .../staging/web/stg_web_analytics__events.sql | 3 +- requirements-dev.txt | 4 + requirements.txt | 3 + 16 files changed, 321 insertions(+), 61 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/dependabot.yml create mode 100644 .sqlfluff create mode 100644 .sqlfluffignore create mode 100644 .yamllint.yml create mode 100644 CONTRIBUTING.md create mode 100644 requirements-dev.txt create mode 100644 requirements.txt diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..1bec5e5 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Require review from the analytics data platform reviewers for all changes +* @oppia/analytics-data-platform-reviewers diff --git a/.github/ISSUE_TEMPLATE/02_new_feature.yml b/.github/ISSUE_TEMPLATE/02_new_feature.yml index f3ad275..55fc917 100644 --- a/.github/ISSUE_TEMPLATE/02_new_feature.yml +++ b/.github/ISSUE_TEMPLATE/02_new_feature.yml @@ -12,7 +12,7 @@ body: id: feature_name attributes: label: Feature Name & Ticket Link - placeholder: e.g., Auto-Renewal Checkout (Jira #PROD-1234) + placeholder: "e.g., Auto-Renewal Checkout (Jira #PROD-1234)" validations: required: true diff --git a/.github/ISSUE_TEMPLATE/04_new_cuj.yml b/.github/ISSUE_TEMPLATE/04_new_cuj.yml index 20e7d0e..ec904c1 100644 --- a/.github/ISSUE_TEMPLATE/04_new_cuj.yml +++ b/.github/ISSUE_TEMPLATE/04_new_cuj.yml @@ -20,7 +20,7 @@ body: id: cuj_name attributes: label: CUJ Name - placeholder: e.g., LO.1. Find a topic to learn + placeholder: e.g., LO.1. Find a topic to learn validations: required: true diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..bcdb62f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,19 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + target-branch: "develop" + schedule: + interval: "monthly" + reviewers: + - "oppia/analytics-data-platform-reviewers" + open-pull-requests-limit: 5 + + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "develop" + schedule: + interval: "monthly" + reviewers: + - "oppia/analytics-data-platform-reviewers" + open-pull-requests-limit: 5 diff --git a/.github/workflows/pr_validation.yml b/.github/workflows/pr_validation.yml index 8671505..aacc9da 100644 --- a/.github/workflows/pr_validation.yml +++ b/.github/workflows/pr_validation.yml @@ -2,10 +2,14 @@ name: Pull Request Data Validation on: pull_request: - branches: [ develop ] + branches: [develop] + +permissions: + contents: read jobs: - validate_sql: + static_checks: + name: Static Checks (Lint & dbt Parse) runs-on: ubuntu-latest steps: - name: Checkout Code @@ -15,35 +19,107 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements-dev.txt - name: Install Dependencies run: | - pip install dbt-bigquery sqlfluff-templater-dbt + python -m pip install --upgrade pip + pip install -r requirements-dev.txt + + - name: Lint YAML Files + run: yamllint --strict . + + - name: Lint SQL Models + run: | + sqlfluff lint models/ + if [ -d tests ]; then + sqlfluff lint tests/ + fi + + - name: Parse dbt Project Offline + run: | + cat << 'EOF' > profiles.yml + oppia_analytics: + target: dev + outputs: + dev: + type: bigquery + method: oauth + project: oppia-analytics-test + dataset: dev_github_actions + threads: 4 + timeout_seconds: 300 + location: US + EOF - - name: Authenticate to GCP Natively + dbt deps --profiles-dir . + dbt parse --profiles-dir . + + bigquery_build: + name: BigQuery Build & Test + needs: static_checks + # Dependabot PRs cannot mint GitHub OIDC tokens, so skip BigQuery build for Dependabot + # (Static Checks still verifies installs, linting, and dbt parse). Fork PRs still enter + # this job and fail cleanly at the first step so unvalidated fork PRs cannot be merged. + if: github.actor != 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + concurrency: + # Serialize PR runs against the shared dev_github_actions dataset without canceling queued PRs + group: pr-bigquery-test + cancel-in-progress: false + steps: + - name: Check PR Source Branch + if: github.event.pull_request.head.repo.full_name != github.repository run: | - # Write the secret JSON token safely as a raw literal string - cat << 'EOF' > ${HOME}/gcp_key.json - ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }} + cat << 'EOF' >> "$GITHUB_STEP_SUMMARY" + ### BigQuery Build Blocked (Fork PR) + + GitHub withholds cloud credentials from pull requests opened from forks, so **BigQuery Build & Test** cannot run here. + + Please push your feature branch directly to `oppia/analytics-data-platform` and reopen the pull request from that branch (see `CONTRIBUTING.md`). EOF + echo "::error::Pull requests from forks cannot run BigQuery CI. Push your branch directly to oppia/analytics-data-platform and reopen the PR from there (see CONTRIBUTING.md)." + exit 1 - # Activate the service account using the pre-installed gcloud CLI - gcloud auth activate-service-account --key-file=${HOME}/gcp_key.json + - name: Checkout Code + uses: actions/checkout@v4 - # Set the application default credentials environment variable for dbt - echo "GOOGLE_APPLICATION_CREDENTIALS=${HOME}/gcp_key.json" >> $GITHUB_ENV + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: 'pip' + cache-dependency-path: requirements.txt + + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + # Authenticate via GCP Workload Identity Federation (no static JSON keys). + # Sets GOOGLE_APPLICATION_CREDENTIALS, which dbt's 'method: oauth' picks up via ADC. + - name: Authenticate to Google Cloud (WIF) + uses: google-github-actions/auth@v3 + with: + project_id: oppia-analytics-test + workload_identity_provider: ${{ secrets.GCP_TEST_WIF_PROVIDER }} + service_account: ${{ secrets.GCP_TEST_SERVICE_ACCOUNT }} - # Generate a local connection profile using service-account credentials - name: Create dynamic profiles.yml for dbt run: | - cat << EOF > profiles.yml + cat << 'EOF' > profiles.yml oppia_analytics: target: dev outputs: dev: type: bigquery - method: service-account - keyfile: ${{ env.GOOGLE_APPLICATION_CREDENTIALS }} + method: oauth project: oppia-analytics-test dataset: dev_github_actions threads: 4 @@ -51,6 +127,9 @@ jobs: location: US EOF + - name: Verify dbt Connection + run: dbt debug --profiles-dir . + - name: Install dbt Packages (if any) run: dbt deps --profiles-dir . diff --git a/.github/workflows/weekly_run.yml b/.github/workflows/weekly_run.yml index 1f5f07d..cb29e7f 100644 --- a/.github/workflows/weekly_run.yml +++ b/.github/workflows/weekly_run.yml @@ -9,25 +9,31 @@ name: Weekly Production Analytics Run # # Environment Target: Production (oppia-analytics-prod) # Key Operations: -# 1. Authenticates to GCP using an automated service account. -# 2. Dynamically isolates database credentials to prevent local Git leaks. +# 1. Authenticates to GCP via Workload Identity Federation (short-lived OIDC). +# 2. Dynamically generates a BigQuery profile using ADC (method: oauth). # 3. Runs data quality assertions and transforms fresh production analytics logs. # ============================================================================== on: schedule: - # Runs at 00:00 UTC every Sunday (Adjust cron expression for your preferred timezone) + # Runs at 00:00 UTC every Sunday - cron: '0 0 * * 0' workflow_dispatch: # Allows the analytics team to trigger a one-off run manually from the GitHub UI +concurrency: + group: weekly-production-run + cancel-in-progress: false + jobs: dbt_run: name: Execute dbt Production Pipeline runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - # Clone the repository codebase onto the temporary GitHub virtual runner - name: Checkout Code uses: actions/checkout@v4 @@ -35,39 +41,32 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' - # Use caching to decrease run times for subsequent runs cache: 'pip' + cache-dependency-path: requirements.txt - name: Install dbt and BigQuery Dependencies run: | - pip install --upgrade pip - pip install dbt-bigquery - - # Exchange GitHub secret tokens for active, authenticated Google Cloud sessions - - name: Authenticate to GCP Natively - run: | - # Write the secret JSON token safely as a raw literal string - cat << 'EOF' > ${HOME}/gcp_key.json - ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }} - EOF - - # Activate the service account using the pre-installed gcloud CLI - gcloud auth activate-service-account --key-file=${HOME}/gcp_key.json + python -m pip install --upgrade pip + pip install -r requirements.txt - # Set the application default credentials environment variable for dbt - echo "GOOGLE_APPLICATION_CREDENTIALS=${HOME}/gcp_key.json" >> $GITHUB_ENV + # Authenticate via GCP Workload Identity Federation (scoped in GCP IAM to refs/heads/develop). + # Sets GOOGLE_APPLICATION_CREDENTIALS, which dbt's 'method: oauth' picks up via ADC. + - name: Authenticate to Google Cloud (WIF) + uses: google-github-actions/auth@v3 + with: + project_id: oppia-analytics-prod + workload_identity_provider: ${{ secrets.GCP_PROD_WIF_PROVIDER }} + service_account: ${{ secrets.GCP_PROD_SERVICE_ACCOUNT }} - # Generate a production connection profile using service-account credentials - name: Create dynamic profiles.yml for dbt run: | - cat << EOF > profiles.yml + cat << 'EOF' > profiles.yml oppia_analytics: target: prod outputs: prod: type: bigquery - method: service-account - keyfile: ${{ env.GOOGLE_APPLICATION_CREDENTIALS }} + method: oauth project: oppia-analytics-prod dataset: analytics_production threads: 4 @@ -75,15 +74,12 @@ jobs: location: US EOF - # Validate infrastructure paths and check that BigQuery is responding - name: Verify dbt Connection - run: dbt debug --profiles-dir . + run: dbt debug --target prod --profiles-dir . - # Pull down any third-party open-source dbt packages listed in packages.yml - name: Install dbt Packages (if any) run: dbt deps --profiles-dir . - # Perform a comprehensive build (Compile, Model materialization, and Data testing) - name: Execute and Test Pipeline # 'dbt build' compiles, runs, and tests every staging, dim, fct, and agg table sequentially. # If an upstream table fails a test, downstream tables are skipped to preserve data integrity. diff --git a/.gitignore b/.gitignore index d44109f..3fc53b5 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,7 @@ profiles.yml # Service account keys (Safety net to prevent credential leaks) *.json *.pem + +# Python virtual environments +.venv/ +venv/ diff --git a/.sqlfluff b/.sqlfluff new file mode 100644 index 0000000..a1dfb6d --- /dev/null +++ b/.sqlfluff @@ -0,0 +1,47 @@ +[sqlfluff] +dialect = bigquery +templater = jinja +max_line_length = 120 +# Exclude rules that conflict with common dbt + BigQuery/GA4 idioms: +# AM04: SELECT * in upstream source CTEs +# AM09: LIMIT 1 without ORDER BY in GA4 UNNEST(event_params) lookups +# AL09: Explicit aliases when flattening BigQuery STRUCT fields (e.g., geo.country AS country) +# LT14: Single-line inline UNNEST scalar subqueries +# ST05: Inline scalar subqueries (GA4 UNNEST pattern) +# ST06: Logical column ordering over strict simple-before-calculated ordering +exclude_rules = AM04, AM09, AL09, LT14, ST05, ST06 + +[sqlfluff:indentation] +indent_unit = space +tab_space_size = 4 + +[sqlfluff:templater:jinja] +apply_dbt_builtins = True +load_macros_from_path = macros/ + +[sqlfluff:templater:jinja:macros] +# Backtick-quote source identifiers (matching dbt-bigquery) so GA4 wildcard tables (events_*) parse cleanly +dbt_source = {% macro source(source_name, table_name) %}`{{ source_name }}`.`{{ table_name }}`{% endmacro %} + +[sqlfluff:layout:type:comma] +line_position = trailing + +[sqlfluff:rules:capitalisation.identifiers] +extended_capitalisation_policy = lower +# BigQuery pseudo-columns (_TABLE_SUFFIX, _PARTITIONDATE, _PARTITIONTIME) are conventionally uppercase +ignore_words = _TABLE_SUFFIX, _PARTITIONDATE, _PARTITIONTIME + +[sqlfluff:rules:capitalisation.keywords] +capitalisation_policy = upper + +[sqlfluff:rules:capitalisation.functions] +extended_capitalisation_policy = upper + +[sqlfluff:rules:capitalisation.literals] +capitalisation_policy = upper + +[sqlfluff:rules:capitalisation.types] +extended_capitalisation_policy = upper + +[sqlfluff:rules:layout.long_lines] +ignore_comment_lines = True diff --git a/.sqlfluffignore b/.sqlfluffignore new file mode 100644 index 0000000..101da9d --- /dev/null +++ b/.sqlfluffignore @@ -0,0 +1,5 @@ +target/ +dbt_packages/ +dbt_modules/ +logs/ +macros/ diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 0000000..b84d126 --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,22 @@ +extends: default + +ignore: | + target/ + dbt_packages/ + dbt_modules/ + logs/ + .venv/ + venv/ + +rules: + document-start: disable + line-length: disable + truthy: + # GitHub Actions workflows use top-level 'on:' keys + check-keys: false + comments: + min-spaces-from-content: 1 + comments-indentation: disable + indentation: + spaces: 2 + indent-sequences: whatever diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..5ef70c6 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,69 @@ +# Contributing & Pull Request Guide + +## Making a Pull Request + +### 1. Branch from `develop` in this repository +Analytics team members should push feature branches directly to `oppia/analytics-data-platform` rather than from a personal fork: + +```bash +git checkout develop +git pull origin develop +git checkout -b feature/ +``` + +> **Why upstream branches instead of forks?** GitHub withholds cloud credentials from fork-origin PRs for security. PRs from forks will still run offline linting and `dbt parse`, but **BigQuery Build & Test** will fail and block merging until the PR is reopened from a branch in `oppia/analytics-data-platform`. + +### 2. Run checks locally before pushing +Install dev dependencies once (`pip install -r requirements-dev.txt`), then verify your changes: + +```bash +# Offline linting and dbt project validation (no BigQuery credentials needed) +yamllint . +sqlfluff lint models/ +dbt parse + +# Full build and data tests in your personal oppia-analytics-test sandbox +dbt build --target dev +``` + +For SQL conventions, folder placement, and partitioning/clustering rules, see [models/README.md](models/README.md). + +### 3. Open the PR targeting `develop` +- Keep PRs focused on a single logical change and link the relevant GitHub issue. +- Include a brief summary of what changed, which models/tests were added or updated, and any expected schema or metric impact. +- Never commit `profiles.yml`, service account JSON keys, or `target/` artifacts. +- Wait for both **Static Checks (Lint & dbt Parse)** and **BigQuery Build & Test** to pass, then request review from an approved reviewer. + +--- + +## Reviewing a Pull Request + +Reviewers should verify the following before approving and merging into `develop`: + +- **CI checks:** Confirm both **Static Checks (Lint & dbt Parse)** and **BigQuery Build & Test** are green. (Fork PRs intentionally fail **BigQuery Build & Test**; ask the author to reopen the PR from an upstream branch in `oppia/analytics-data-platform`.) +- **SQL & dbt hygiene:** + - Models use `{{ ref() }}` / `{{ source() }}` (no hardcoded project or dataset names). + - Final `SELECT` lists columns explicitly (no `SELECT *` in final projections) and queries are idempotent. + - High-volume intermediate and mart tables define `partition_by` and `cluster_by` configs. +- **Documentation & tests:** New or changed models have clear descriptions and appropriate assertions (`not_null`, `unique`, etc.) in their colocated `schema.yml`. +- **Safety & scope:** No credentials or local config files committed, and any changes to `.github/workflows/` or `dbt_project.yml` are intentional and carefully reviewed. + +--- + +## CI/CD & GCP Authentication Reference + +CI uses **GCP Workload Identity Federation (WIF)** via `google-github-actions/auth@v3` — no static service account JSON keys are stored in GitHub. Test and production credentials are strictly separated: + +| Workflow | GCP Project | GitHub Secrets | GCP IAM Attribute Condition | +| :--- | :--- | :--- | :--- | +| [pr_validation.yml](.github/workflows/pr_validation.yml) | `oppia-analytics-test` | `GCP_TEST_WIF_PROVIDER`, `GCP_TEST_SERVICE_ACCOUNT` | `assertion.repository == 'oppia/analytics-data-platform'` | +| [weekly_run.yml](.github/workflows/weekly_run.yml) | `oppia-analytics-prod` | `GCP_PROD_WIF_PROVIDER`, `GCP_PROD_SERVICE_ACCOUNT` | `assertion.repository == 'oppia/analytics-data-platform' && assertion.ref == 'refs/heads/develop'` | + +Because the production WIF provider restricts `assertion.ref` to `refs/heads/develop`, PR branches cannot authenticate to `oppia-analytics-prod` even at the GCP IAM layer. + +### Repo Guardrails (GitHub Settings) +Protect `develop` with a branch protection rule / ruleset that: +1. Blocks direct pushes and force-pushes to `develop`. +2. Requires pull request approval from approved reviewers (`CODEOWNERS`). +3. Requires the **Static Checks (Lint & dbt Parse)** and **BigQuery Build & Test** status checks to pass before merging. +4. Enables *"Automatically delete head branches"* so merged feature branches stay cleaned up. diff --git a/README.md b/README.md index 1d518b3..1b10ae8 100644 --- a/README.md +++ b/README.md @@ -49,12 +49,12 @@ and tests beside the models they document. Before compiling data structures locally, developers must establish active credentials to access the development sandboxes inside `oppia-analytics-test`. ### 1. Initialize Authentication and Local Dependencies -Ensure you have Python 3.10+ installed globally, then initialize your analytics space: +Ensure you have Python 3.11+ installed, then initialize your analytics environment: - # Install core database compilation tools - pip install dbt-bigquery + # Install dbt-bigquery and local linters (sqlfluff, yamllint) + pip install -r requirements-dev.txt - # Pull down open-source external packages + # Pull down open-source external packages (if any) dbt deps ### 2. Configure Your Connection Profile @@ -80,10 +80,12 @@ Run a diagnostic framework check to ensure dbt can establish a secure handshake * Compile the structural SQL lineage tree: dbt compile -* Build data tables inside your personal schema sandbox: - dbt run --target dev +* Build and test models inside your personal schema sandbox: + dbt build --target dev -* Execute assertion tests against data quality constraints: - dbt test --target dev +* Run offline linting and project parsing (same checks run in PR CI): + yamllint . + sqlfluff lint models/ + dbt parse -For full details regarding the analytics architecture, query writing structures, or production merge criteria, please read the documentation inside the [Models Directory README](models/README.md). +For modeling conventions and architecture details, see [models/README.md](models/README.md). For making and reviewing Pull Requests, see [CONTRIBUTING.md](CONTRIBUTING.md). diff --git a/models/README.md b/models/README.md index 1778527..a872572 100644 --- a/models/README.md +++ b/models/README.md @@ -69,18 +69,25 @@ When tasked with writing a new SQL query or editing an existing model, do not mo 4. **Add Schema Definitions:** Document your model and columns inside the corresponding `schema.yml` file. Define data quality tests (such as `not_null` or `unique`) on critical keys. ### Phase 2: Pull Request & Automated Code Validation (CI) -Once your local runs compile successfully and your data quality looks accurate, it is time to move your code toward production. +Once your local runs compile and pass checks, open a PR targeting `develop` from a feature branch in `oppia/analytics-data-platform`. See [CONTRIBUTING.md](../CONTRIBUTING.md) for the full PR submission and review checklist. -1. **Commit and Push:** Push your feature branch to GitHub: +1. **Run Local Checks:** Verify linting and BigQuery tests before pushing: +```bash + yamllint . + sqlfluff lint models/ + dbt build --target dev + ``` +2. **Commit and Push:** Push your feature branch directly to `origin` (`oppia/analytics-data-platform`): ```bash git add . git commit -m "feat: added web lesson completed aggregation" git push origin feature/your-feature-name ``` -2. **Open a Pull Request (PR):** Open a PR targeting the `develop` branch. -3. **Automated Quality Gates:** Opening the PR automatically kicks off a GitHub Actions CI pipeline. This pipeline logs into `oppia-analytics-test`, checks your SQL syntax, verifies model relationships, and builds the lineage tree. - * *If the pipeline fails, the PR will block merging until you fix the compilation or syntax errors.* -4. **Peer Review:** At least one team member must review and approve your PR before it can be merged into `develop`. +3. **Open a Pull Request (PR):** Open a PR targeting `develop`. +4. **Automated Quality Gates:** Opening the PR triggers GitHub Actions CI: + * **Static Checks (`yamllint`, `sqlfluff`, `dbt parse`)** run automatically on all PRs (including forks). + * **BigQuery Build & Test (`dbt build`)** runs automatically against `oppia-analytics-test` for branches pushed to `oppia/analytics-data-platform`. +5. **Peer Review:** At least one approved reviewer must approve your PR before it can be merged into `develop`. ### Phase 3: Deployment to Production Once approved and merged into `develop`, the automation pipeline takes over. diff --git a/models/staging/web/stg_web_analytics__events.sql b/models/staging/web/stg_web_analytics__events.sql index 89be64a..49ece1a 100644 --- a/models/staging/web/stg_web_analytics__events.sql +++ b/models/staging/web/stg_web_analytics__events.sql @@ -6,7 +6,8 @@ WITH source_data AS ( -- events_* wildcard scans all daily shards; _TABLE_SUFFIX exposes each shard's date suffix SELECT * FROM {{ source('raw_web_server', 'events_*') }} - WHERE _TABLE_SUFFIX BETWEEN FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)) + WHERE + _TABLE_SUFFIX BETWEEN FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)) AND FORMAT_DATE('%Y%m%d', CURRENT_DATE()) ), diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..d7e5f77 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,4 @@ +# Local development and PR validation dependencies +-r requirements.txt +sqlfluff>=4.5.0,<5.0.0 +yamllint>=1.38.0,<2.0.0 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..10634bc --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +# Core dbt BigQuery runtime (minor-pinned so scheduled production runs stay stable) +dbt-core>=1.12.0,<1.13.0 +dbt-bigquery>=1.12.0,<1.13.0 From 11d95f2e042bf45f12ba7c6bafa5fbf6de28a6ec Mon Sep 17 00:00:00 2001 From: Sean Lip Date: Wed, 25 Nov 2026 16:35:14 +0800 Subject: [PATCH 2/2] fix template --- .github/ISSUE_TEMPLATE/02_new_feature.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/02_new_feature.yml b/.github/ISSUE_TEMPLATE/02_new_feature.yml index 55fc917..adcc0a7 100644 --- a/.github/ISSUE_TEMPLATE/02_new_feature.yml +++ b/.github/ISSUE_TEMPLATE/02_new_feature.yml @@ -12,7 +12,7 @@ body: id: feature_name attributes: label: Feature Name & Ticket Link - placeholder: "e.g., Auto-Renewal Checkout (Jira #PROD-1234)" + placeholder: "e.g., New Learner Dashboard (ProdOps GitHub tracker #1234)" validations: required: true