ci: a weekly check compares the bundled end-of-life tables with endoflife.date #563

Merged
sharang merged 1 commits from ci/eol-table-check into main 2026-10-15 10:19:50 +00:00
Owner

Rebased onto main after #562 merged (2026-10-15); one commit.

One place for each table

The bundled end-of-life data moves from Rust consts to JSON in compliance-agent/data/eol/. The agent compiles the files in (pipeline::eol_tables, include_str! + LazyLock) and the check reads the same files:

  • yocto.json: the Yocto release table, with its sources and checked_on. The finding's source and check date now come from this file.
  • dotnet.json: Microsoft's end of support per target-framework moniker.
  • platforms.json: the oldest Android API level and iOS release that still get security updates. These are the floors behind android-sdk-, android-min-sdk- and ios-deployment-target-end-of-support.

Behaviour doesn't change: the values are the same. A test checks that every file parses.

Not covered:

  • Unity: unity_out_of_support is a year/minor heuristic, not a table.
  • Swift: the Xcode floor has no endoflife.date product.
  • recipe_lint::RELEASES: this is oelint's list of codenames, not EOL data.

The check

scripts/check-eol-tables.py uses only the standard library. It has offline tests in scripts/test_check_eol_tables.py and is clean under mypy --strict and ruff. It fetches these endoflife.date products: yocto, dotnet, dotnetfx, android, ios. It reports:

  • releases on endoflife.date that the table doesn't have;
  • changed release or end-of-life dates, and changed LTS flags;
  • a moved platform floor (the oldest Android/iOS release still supported).

On any difference it opens one issue titled [eol-tables] Bundled end-of-life tables differ from endoflife.date, labelled eol-tables (the label is created if missing; if that fails the issue is unlabelled). An open issue is found by that exact title and its body is replaced only when the differences change. The tables themselves are never edited.

.gitea/workflows/eol-tables.yml runs on Mondays at 05:00 UTC and on workflow_dispatch (with a dry_run input). It is a separate workflow, so it never fails main CI. It authenticates with NIGHTLY_ALERT_TOKEN, the issue-write token the nightly alert already uses; no new secret. Without the token it only prints the differences.

First run, today: Yocto and .NET match. Android differs: endoflife.date lists Android 13 (API 33) as EOL since 2026-03-02, so the oldest patched release is API 34, but the bundled floor is API 29 (Android 10). The first scheduled run will open the issue for this. Raising the floor changes findings, so it is a product decision; I left the value as is. Blacksail (6.1) is not on endoflife.date yet (as of 2026-10-09) and was not added.

Decided 2026-10-10: the minimum stays at API 29; revisit with the weekly EOL table check. The issue the first run opens for Android is a reminder to look at it again, not a change to the floor.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

Rebased onto main after #562 merged (2026-10-15); one commit. ## One place for each table The bundled end-of-life data moves from Rust consts to JSON in `compliance-agent/data/eol/`. The agent compiles the files in (`pipeline::eol_tables`, `include_str!` + `LazyLock`) and the check reads the same files: - `yocto.json`: the Yocto release table, with its sources and `checked_on`. The finding's source and check date now come from this file. - `dotnet.json`: Microsoft's end of support per target-framework moniker. - `platforms.json`: the oldest Android API level and iOS release that still get security updates. These are the floors behind `android-sdk-`, `android-min-sdk-` and `ios-deployment-target-end-of-support`. Behaviour doesn't change: the values are the same. A test checks that every file parses. Not covered: - **Unity:** `unity_out_of_support` is a year/minor heuristic, not a table. - **Swift:** the Xcode floor has no endoflife.date product. - **`recipe_lint::RELEASES`:** this is oelint's list of codenames, not EOL data. ## The check `scripts/check-eol-tables.py` uses only the standard library. It has offline tests in `scripts/test_check_eol_tables.py` and is clean under mypy `--strict` and ruff. It fetches these endoflife.date products: `yocto`, `dotnet`, `dotnetfx`, `android`, `ios`. It reports: - releases on endoflife.date that the table doesn't have; - changed release or end-of-life dates, and changed LTS flags; - a moved platform floor (the oldest Android/iOS release still supported). On any difference it opens **one** issue titled `[eol-tables] Bundled end-of-life tables differ from endoflife.date`, labelled `eol-tables` (the label is created if missing; if that fails the issue is unlabelled). An open issue is found by that exact title and its body is replaced only when the differences change. The tables themselves are never edited. `.gitea/workflows/eol-tables.yml` runs on Mondays at 05:00 UTC and on `workflow_dispatch` (with a `dry_run` input). It is a separate workflow, so it never fails main CI. It authenticates with **`NIGHTLY_ALERT_TOKEN`**, the issue-write token the nightly alert already uses; no new secret. Without the token it only prints the differences. **First run, today:** Yocto and .NET match. **Android** differs: endoflife.date lists Android 13 (API 33) as EOL since 2026-03-02, so the oldest patched release is API 34, but the bundled floor is API 29 (Android 10). The first scheduled run will open the issue for this. Raising the floor changes findings, so it is a product decision; I left the value as is. Blacksail (6.1) is not on endoflife.date yet (as of 2026-10-09) and was not added. **Decided 2026-10-10:** the minimum stays at API 29; revisit with the weekly EOL table check. The issue the first run opens for Android is a reminder to look at it again, not a change to the floor. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-10-15 10:09:48 +00:00
ci: a weekly check compares the bundled end-of-life tables with endoflife.date
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 9m25s
293c9b8c66
- The Yocto release table, the .NET target-framework end-of-support dates and
  the oldest patched Android / iOS releases move to JSON files in
  compliance-agent/data/eol/, compiled into the agent (pipeline::eol_tables)
  and read by the check: one place for each table.
- scripts/check-eol-tables.py fetches the endoflife.date products (yocto,
  dotnet, dotnetfx, android, ios) and lists new releases, changed dates and
  LTS flags, and moved platform floors. On a difference it opens one issue,
  or updates the open one found by its title, labelled eol-tables.
- .gitea/workflows/eol-tables.yml runs it on Mondays and by hand (with a
  dry-run input), with NIGHTLY_ALERT_TOKEN; it is separate from CI.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang force-pushed ci/eol-table-check from 55cee14fcc to 293c9b8c66 2026-10-15 10:09:48 +00:00 Compare
sharang merged commit 70125b4556 into main 2026-10-15 10:19:50 +00:00
sharang deleted branch ci/eol-table-check 2026-10-15 10:19:50 +00:00
Sign in to join this conversation.