airbyte-internal-ops 0.1.10__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {airbyte_internal_ops-0.1.10.dist-info → airbyte_internal_ops-0.2.0.dist-info}/METADATA +1 -1
- {airbyte_internal_ops-0.1.10.dist-info → airbyte_internal_ops-0.2.0.dist-info}/RECORD +21 -18
- {airbyte_internal_ops-0.1.10.dist-info → airbyte_internal_ops-0.2.0.dist-info}/entry_points.txt +1 -0
- airbyte_ops_mcp/cli/cloud.py +151 -3
- airbyte_ops_mcp/cloud_admin/auth.py +32 -0
- airbyte_ops_mcp/constants.py +18 -0
- airbyte_ops_mcp/github_actions.py +218 -0
- airbyte_ops_mcp/live_tests/cdk_secrets.py +90 -0
- airbyte_ops_mcp/live_tests/ci_output.py +55 -5
- airbyte_ops_mcp/live_tests/connector_runner.py +3 -0
- airbyte_ops_mcp/mcp/_http_headers.py +198 -0
- airbyte_ops_mcp/mcp/cloud_connector_versions.py +118 -22
- airbyte_ops_mcp/mcp/github.py +2 -21
- airbyte_ops_mcp/mcp/live_tests.py +46 -84
- airbyte_ops_mcp/mcp/prerelease.py +9 -31
- airbyte_ops_mcp/mcp/prod_db_queries.py +67 -24
- airbyte_ops_mcp/mcp/server.py +81 -8
- airbyte_ops_mcp/prod_db_access/db_engine.py +8 -0
- airbyte_ops_mcp/prod_db_access/queries.py +27 -15
- airbyte_ops_mcp/prod_db_access/sql.py +17 -16
- {airbyte_internal_ops-0.1.10.dist-info → airbyte_internal_ops-0.2.0.dist-info}/WHEEL +0 -0
|
@@ -305,32 +305,33 @@ SELECT_SUCCESSFUL_SYNCS_FOR_VERSION = sqlalchemy.text(
|
|
|
305
305
|
"""
|
|
306
306
|
)
|
|
307
307
|
|
|
308
|
-
# Get failed attempt results for actors
|
|
309
|
-
#
|
|
310
|
-
#
|
|
311
|
-
# from
|
|
312
|
-
#
|
|
313
|
-
#
|
|
314
|
-
#
|
|
315
|
-
|
|
308
|
+
# Get failed attempt results for ALL actors using a connector definition.
|
|
309
|
+
# Finds all actors with the given actor_definition_id and returns their failed sync attempts,
|
|
310
|
+
# regardless of whether they have explicit version pins.
|
|
311
|
+
# Query starts from attempts table to leverage indexed columns (ended_at, status).
|
|
312
|
+
# Note: This query only supports SOURCE connectors (joins via connection.source_id).
|
|
313
|
+
# The LEFT JOIN to scoped_configuration provides pin context when available (pin_origin_type,
|
|
314
|
+
# pin_origin, pinned_version_id will be NULL for unpinned actors).
|
|
315
|
+
SELECT_FAILED_SYNC_ATTEMPTS_FOR_CONNECTOR = sqlalchemy.text(
|
|
316
316
|
"""
|
|
317
317
|
SELECT
|
|
318
318
|
jobs.id AS job_id,
|
|
319
319
|
jobs.scope AS connection_id,
|
|
320
|
-
jobs.status AS
|
|
320
|
+
jobs.status AS latest_job_status,
|
|
321
321
|
jobs.started_at AS job_started_at,
|
|
322
322
|
jobs.updated_at AS job_updated_at,
|
|
323
323
|
connection.name AS connection_name,
|
|
324
324
|
actor.id AS actor_id,
|
|
325
325
|
actor.name AS actor_name,
|
|
326
326
|
actor.actor_definition_id,
|
|
327
|
-
scoped_configuration.origin_type AS pin_origin_type,
|
|
328
|
-
scoped_configuration.origin AS pin_origin,
|
|
329
327
|
workspace.id AS workspace_id,
|
|
330
328
|
workspace.name AS workspace_name,
|
|
331
329
|
workspace.organization_id,
|
|
332
330
|
workspace.dataplane_group_id,
|
|
333
331
|
dataplane_group.name AS dataplane_name,
|
|
332
|
+
scoped_configuration.origin_type AS pin_origin_type,
|
|
333
|
+
scoped_configuration.origin AS pin_origin,
|
|
334
|
+
scoped_configuration.value AS pinned_version_id,
|
|
334
335
|
attempts.id AS failed_attempt_id,
|
|
335
336
|
attempts.attempt_number AS failed_attempt_number,
|
|
336
337
|
attempts.status AS failed_attempt_status,
|
|
@@ -347,15 +348,15 @@ SELECT_FAILED_SYNC_ATTEMPTS_FOR_VERSION = sqlalchemy.text(
|
|
|
347
348
|
ON jobs.scope = connection.id::text
|
|
348
349
|
JOIN actor
|
|
349
350
|
ON connection.source_id = actor.id
|
|
350
|
-
|
|
351
|
-
ON scoped_configuration.scope_id = actor.id
|
|
352
|
-
AND scoped_configuration.key = 'connector_version'
|
|
353
|
-
AND scoped_configuration.scope_type = 'actor'
|
|
354
|
-
AND scoped_configuration.value = :actor_definition_version_id
|
|
351
|
+
AND actor.actor_definition_id = :connector_definition_id
|
|
355
352
|
JOIN workspace
|
|
356
353
|
ON actor.workspace_id = workspace.id
|
|
357
354
|
LEFT JOIN dataplane_group
|
|
358
355
|
ON workspace.dataplane_group_id = dataplane_group.id
|
|
356
|
+
LEFT JOIN scoped_configuration
|
|
357
|
+
ON scoped_configuration.scope_id = actor.id
|
|
358
|
+
AND scoped_configuration.key = 'connector_version'
|
|
359
|
+
AND scoped_configuration.scope_type = 'actor'
|
|
359
360
|
WHERE
|
|
360
361
|
attempts.ended_at >= :cutoff_date
|
|
361
362
|
AND attempts.status = 'failed'
|
|
File without changes
|