Skip to content

fix(registry): Handle null generated metadata and prefer releaseDate for the current version - #1390

Merged
Aaron ("AJ") Steers (aaronsteers) merged 1 commit into
release-candidate/v1from
devin/1792116890-registry-null-generated
Oct 16, 2026
Merged

Aaron ("AJ") Steers (aaronsteers) merged 1 commit into
release-candidate/v1from
devin/1792116890-registry-null-generated

Conversation

@aaronsteers

Copy link
Copy Markdown
Member

Overview

👉 TL;DR: If a single connector in the registry had empty commit metadata, loading the connector catalog failed, and every connector lookup failed with it. Version history could also report a different date for the current release than connector info did.

Specifically, registry_entry_commit_date now treats a null generated/generated.git as missing, and fetch_registry_version_date now prefers the entry's releaseDate for the current version.

Follows up on #1382:

Changes

  • registry_entry_commit_date: (entry.get("generated") or {}).get("git") or {}. Before this, .get(k, {}) returned None on a JSON null, and the next lookup raised AttributeError inside _get_registry_cache.
  • fetch_registry_version_date (current-version branch): connector.get("releaseDate") or registry_entry_commit_date(connector), matching _registry_entry_to_connector_metadata. The release-candidate branch is unchanged.
  • Tests: commit date with a null generated / null git, metadata conversion with generated=None, and releaseDate winning over the commit timestamp.

Review Spotlight

Reviewers with limited time, please review first:

Test plan

  • uv run pytest tests/unit_tests/test_mcp_connector_registry.py: 36 passed

Link to Devin session: https://app.devin.ai/sessions/a51d808f26c9402fafc93e7640648187
Open in Devin Desktop: https://app.devin.ai/desktop/session/a51d808f26c9402fafc93e7640648187?variant=devin
Requested by: Aaron ("AJ") Steers (@aaronsteers)

…for the current version

Co-Authored-By: AJ Steers <aj@airbyte.io>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@github-actions

Copy link
Copy Markdown

👋 Greetings, Airbyte Team Member!

Here are some helpful tips and reminders for your convenience.

💡 Show Tips and Tricks

Testing This PyAirbyte Version

You can test this version of PyAirbyte using the following:

# Run PyAirbyte CLI from this branch:
uvx --from 'git+https://github.com/airbytehq/PyAirbyte.git@devin/1792116890-registry-null-generated' pyairbyte --help

# Install PyAirbyte from this branch for development:
pip install 'git+https://github.com/airbytehq/PyAirbyte.git@devin/1792116890-registry-null-generated'

PR Slash Commands

Airbyte Maintainers can execute the following slash commands on your PR:

  • /fix-pr - Fixes most formatting and linting issues
  • /uv-lock - Updates uv.lock file
  • /test-pr - Runs tests with the updated PyAirbyte
  • /prerelease - Builds and publishes a prerelease version to PyPI
📚 Show Repo Guidance

Helpful Resources

Community Support

Questions? Join the #pyairbyte channel in our Slack workspace.

📝 Edit this welcome message.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The narrowly scoped fixes have focused regression coverage and no identified blocking issues.

0 open findings

What changed in this PR

This follow-up to #1382 prevents null commit metadata from breaking registry loading and aligns current-version dates with connector info.

Changes:

  • Treat null generated and generated.git values as missing.
  • Prefer releaseDate for the current version, retaining the commit-date fallback.
  • Add regression tests for both behaviors.
File Description
tests/​unit_tests/​test_mcp_connector_registry.py Tests null metadata handling and release-date precedence.
airbyte/​_registry_utils.py Adds null-safe metadata access and current-version date precedence.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-code-quality

github-code-quality Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: Python

Python / code-coverage/pytest

release-candidate/v1 d9f652f devin/1792116890-reg... 73549fc +/-
71% 82% +11%
View coverage of the 10 most impacted files.
File release-candidate/v1 d9f652f devin/1792116890-reg... 73549fc +/-
airbyte/cloud/connectors.py 51% 83% +32%
airbyte/mcp/cloud.py 52% 85% +33%
airbyte/mcp/_datadog.py 0% 50% +50%
airbyte/mcp/int..._registry_ui.py 0% 92% +92%
airbyte/mcp/_user_identity.py 0% 93% +93%
airbyte/mcp/_telemetry.py 0% 94% +94%
airbyte/_direct...ctors/models.py 0% 95% +95%
airbyte/mcp/_sso_auth.py 0% 96% +96%
airbyte/cloud/models.py 0% 97% +97%
airbyte/mcp/int...nc_status_ui.py 0% 97% +97%

Python / code-coverage/pytest-unit

release-candidate/v1 devin/1792116890-reg... 73549fc +/-
— 76% —

Line coverage data for the release-candidate/v1 branch is not yet available.

View coverage of the 10 most covered files.
File release-candidate/v1 devin/1792116890-reg... 73549fc +/-
airbyte/cloud/models.py — 97% —
airbyte/mcp/_sso_auth.py — 96% —
airbyte/_direct...ctors/models.py — 95% —
airbyte/cloud/client.py — 90% —
airbyte/exceptions.py — 89% —
airbyte/mcp/cloud.py — 85% —
airbyte/progress.py — 80% —
airbyte/cloud/connectors.py — 79% —
airbyte/_util/api_util.py — 68% —
airbyte/shared/...ql_processor.py — 68% —

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 16, 2026 02:25 UTC

@aaronsteers
Aaron ("AJ") Steers (aaronsteers) marked this pull request as ready for review October 16, 2026 02:26
@aaronsteers
Aaron ("AJ") Steers (aaronsteers) merged commit 2a42e14 into release-candidate/v1 Oct 16, 2026
33 of 34 checks passed
@aaronsteers
Aaron ("AJ") Steers (aaronsteers) deleted the devin/1792116890-registry-null-generated branch October 16, 2026 02:26

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants