|
| 1 | +# Dependency Update Review Plan - google/osv.dev |
| 2 | + |
| 3 | +This document outlines the workflow for reviewing and managing dependency update Pull Requests in the `google/osv.dev` repository. |
| 4 | + |
| 5 | +## 1. Discovery & Triage |
| 6 | +Identify all open dependency updates. |
| 7 | +- **Action**: Use `gh pr list` to fetch PRs with the `dependencies` label. |
| 8 | +- **Criteria**: Filter for `state:open`. |
| 9 | + |
| 10 | +## 2. Analysis & Review |
| 11 | +Execute the analysis process using the deterministic Python script: `tools/review_dependency_prs.py`. Perform the following checks: |
| 12 | +- **CI/CD Status**: Analyze structured JSON output from `gh pr view <pr> --json statusCheckRollup` to reliably identify pending or failing checks (ignoring `SUCCESS`, `SKIPPED`, and `NEUTRAL`). |
| 13 | +- **Change Scope**: Use `gh pr diff --name-only` to ensure modifications are restricted to expected files: |
| 14 | + - Dependency manifests (`go.mod`, `poetry.lock`, `package.json`, etc.) |
| 15 | + - Submodule updates |
| 16 | + - Dockerfile and Terraform version updates |
| 17 | + - GitHub Actions workflow updates (`.github/workflows/`) |
| 18 | +- **Version Analysis**: Inspect the PR's branch name (e.g., looking for `renovate/major-...`) and PR title to identify major semantic version jumps. |
| 19 | + |
| 20 | +## 3. Reporting |
| 21 | +Run the `tools/review_dependency_prs.py` script to generate a final summary report categorized into: |
| 22 | +- ✅ **Ready for Submission**: Patch or Minor updates with passing CI and standard file changes. |
| 23 | +- ⚠️ **Manual Review Required**: |
| 24 | + - Major version upgrades (high risk of breaking changes). |
| 25 | + - PRs with failing or pending CI checks. |
| 26 | + - PRs modifying files outside the standard dependency manifests. |
| 27 | + |
| 28 | +## 4. Final Review |
| 29 | +Present the final summary report to the user. Do not execute any approval or merge commands (e.g., `approve_dependency_prs.sh`, `gh pr review`, or `gh pr merge`). The user will use the provided report to manually trigger any necessary scripts or actions. |
| 30 | + |
| 31 | +## 5. Notable Observations & Learnings |
| 32 | +Consider the following during the review process: |
| 33 | +- **API Snapshot Tests**: Monitor the `PR-api-snapshot-tests` workflow, as it is highly sensitive to transitive dependency changes. Manual review is required if it fails to ensure output formats haven't regressed. |
| 34 | +- **Go API Clients**: Expect frequent updates to `google.golang.org/api` across multiple services (vulnfeeds, indexer, tools). |
| 35 | +- **Renovate Branch Patterns**: Use Renovate branch names (e.g., `renovate/major-docs`) as a reliable heuristic for identifying major version jumps. |
0 commit comments