From 4c5a39dffdb807bfd63d802669efdb6bd6775b7d Mon Sep 17 00:00:00 2001 From: Luen Warneke Date: Fri, 6 Nov 2026 11:35:26 +1000 Subject: [PATCH] ci(dependabot): group minor/patch and allow all major updates across ecosystems --- .github/dependabot.yml | 29 +++++++++++++++++++---------- AGENTS.md | 2 +- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3ab4924..4b806e0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,30 +1,39 @@ # Dependabot version updates: https://docs.github.com/code-security/dependabot/dependabot-version-updates +# Minor and patch updates are grouped per ecosystem; major updates open individual PRs. version: 2 updates: - package-ecosystem: 'npm' directory: '/' schedule: interval: 'monthly' - # One PR for all minor/patch bumps instead of one per package. + target-branch: 'main' groups: minor-and-patch: update-types: ['minor', 'patch'] - ignore: - # Types must track the Node runtime (26 LTS: CI, Docker, .nvmrc), not the latest Node. - - dependency-name: '@types/node' - update-types: ['version-update:semver-major'] - # TypeScript 7 (native port) isn't supported by typescript-eslint / svelte-check yet. - # Remove once they declare support for typescript@7. - - dependency-name: 'typescript' - update-types: ['version-update:semver-major'] + - package-ecosystem: 'github-actions' directory: '/' schedule: interval: 'monthly' + target-branch: 'main' + groups: + minor-and-patch: + update-types: ['minor', 'patch'] - # Monthly checks for Docker base images - package-ecosystem: 'docker' directory: '/' schedule: interval: 'monthly' target-branch: 'main' + groups: + minor-and-patch: + update-types: ['minor', 'patch'] + + - package-ecosystem: 'docker-compose' + directory: '/' + schedule: + interval: 'monthly' + target-branch: 'main' + groups: + minor-and-patch: + update-types: ['minor', 'patch'] diff --git a/AGENTS.md b/AGENTS.md index 313420f..824eb36 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -172,7 +172,7 @@ Drop the workbook in `data/` named like `Physioshark_Shark Log 2026-2027.xlsx` ( - `nightly-minor-deps-release.yml`: `npm-check-updates --target semver --cooldown 3`, full suite, then a patch release + image **only when a package that reaches the image moved** (tooling list in `scripts/nightlyRelease.mjs`; add new lint/test devDependencies there). It pushes to `main`, so branch protection needs a bypass for Actions. - `refresh-external.yml`: weekly `fetch-external.mjs`; when `external/` changed it commits, tags a patch release and publishes the image. - Partial refreshes (#159): each source writes into a staging folder (`external-refresh.mjs`) and replaces its files only when it finishes, so a failed source keeps its old snapshot and the others still ship. The fetch step may fail (`continue-on-error`); the workflow still commits and releases what changed, and the `report` job turns the run red afterwards (also when Docker was skipped). Don't fail the refresh job before publishing. Release notes list the updated files. The job allows 120 minutes: a full fetch took 48 on 4 Nov 2026, mostly NOAA ERDDAP stalls (each request times out after 120 s and retries). HTTP 429 waits at least a minute (or `Retry-After`), weather chunks are 10 s apart (Open-Meteo counts a long request with many variables as several calls; 1.5 s apart hit its per-minute limit on 2 Nov 2026), and historical ERDDAP 404s are retried; a final chunk's 404 means not yet published. -- Dependabot (`.github/dependabot.yml`): monthly checks for `npm` (minor/patch grouped; `@types/node` and `typescript` majors ignored until supported), `github-actions`, and `docker` (`target-branch: 'main'`). Format GitHub YAML with Prettier (single quotes) before running `pnpm lint`, and review upstream changelogs/migration guides before merging major-version dependency bumps. +- Dependabot (`.github/dependabot.yml`): monthly checks for `npm`, `github-actions`, `docker`, and `docker-compose` (`target-branch: 'main'`, minor/patch grouped into one PR per ecosystem and major updates opened as individual PRs). Format GitHub YAML with Prettier (single quotes) before running `pnpm lint`, and review upstream changelogs/migration guides before merging major-version dependency bumps. - `ci.yml`: lint + check + unit tests, build + Playwright/axe, and a Docker build + smoke test (synthetic fixture) on both architectures. - Runner is distroless `cc-debian13:nonroot` (uid 65532) with the build stage's Node binary: no shell. Debug with `node -e`.