The GitHub Actions job "Tests" on airflow.git/registry-phantom-version-filter 
has succeeded.
Run started by GitHub user kaxil (triggered by kaxil).

Head commit for run:
50dd7255929967ea8ebfca51021817d889c8cd85 / Kaxil Naik <[email protected]>
Filter unreleased phantom versions from registry build

`extract_metadata.py` took the top entry of `provider.yaml`'s `versions:`
list as a provider's "latest" version with no verification that a real
release tag exists. Provider release prep prepends the next version to
`versions:` BEFORE the tag lands, and pre-release-only versions match
`versions:` but have no final tag. Without filtering, the registry ships
phantom "latest" pointers to non-existent PyPI releases / GitHub tags /
docs pages.

Concrete cases this PR catches:

- `providers/celery/provider.yaml` lists `3.19.0` at the top, but only
  `providers-celery/3.19.0rc1` and `rc2` tags exist -- no final.
- `providers/akeyless/` is brand-new in-tree with `versions: [1.0.0]`
  but no `providers-akeyless/*` tag.

The fix loads all `providers-<id>/<version>` git tags once via
`git tag --list 'providers-*'`, walks each provider's `versions:` list
newest-first, picks the first entry with a matching tag for the singular
`version` (latest) field, and filters the `versions` (list) field to the
same tagged subset. Providers with NO version that has a matching tag are
skipped from the registry entirely (rather than emitted with phantom
pointers).

Also filters the `versions` list -- not just the singular `version` -- so
downstream consumers like `extract_versions.py`'s backfill don't try to
extract from non-existent tags.

`registry-build.yml`'s checkout now sets `fetch-tags: true`. Without it
the default `fetch-depth: 1` checkout has no tags, the filter silently
returns an empty set, and the script falls back to the unfiltered
behaviour. `registry-backfill.yml`'s primary checkout already uses
`fetch-depth: 0` so tags are present there.

Tests: TestLoadReleaseTags (3 cases: parsing, subprocess error, missing
git binary), TestFindLatestReleasedVersion (6 cases including phantom
top, RC-only, cross-provider mismatch, empty list), and
TestVersionsListFiltering (3 cases asserting the list is filtered in
parallel with the latest pointer).

Report URL: https://github.com/apache/airflow/actions/runs/25026531657

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to