Skip to content

fix(source-google-analytics-data-api): paginate reports beyond 100k rows - #83188

Merged
Patrick Nilan (pnilan) merged 6 commits into
masterfrom
devin/1785239083-ga4-pagination
Sep 16, 2026
Merged

Patrick Nilan (pnilan) merged 6 commits into
masterfrom
devin/1785239083-ga4-pagination

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

What

Resolves https://github.com/airbytehq/oncall/issues/13164:

The GA4 report paginator never advanced. Both paginator definitions in manifest.yaml (the stream template and the ComponentMappingDefinition that overrides it for the dynamic streams) used:

pagination_strategy:
  type: CursorPagination
  cursor_value: '{{ response.get("offset", {}) }}'
  stop_condition: '{{ not response.get("offset", {}) }}'

RunReportResponse has no offset field (reference), so the stop condition is always truthy and reading ends after page 1 — every slice was silently capped at the hard-coded limit: 100000. Separately, the token was injected as a request_parameter while GA4 takes limit/offset in the POST body, so even a correct cursor value would have been ignored.

The reported symptom is a job that hangs and is eventually killed by heartbeat_timeout on days exceeding 100k rows. Triage measured the connector's extraction path peaking around 1.17 GiB RSS for a single 100k-row page (~45 MB payload), scaling roughly linearly with page size; with default_concurrency: 4 against a ~2 GiB source container that is a plausible stall mechanism, though it has not been observed directly in the customer's container. Smaller pages bound that peak.

How

 paginator:
   type: DefaultPaginator
   page_token_option:
-    inject_into: request_parameter
+    inject_into: body_json
     field_name: offset
+  page_size_option:
+    inject_into: body_json
+    field_name: limit
   pagination_strategy:
-    type: CursorPagination
-    cursor_value: '{{ response.get("offset", {}) }}'
-    stop_condition: '{{ not response.get("offset", {}) }}'
+    type: OffsetIncrement
+    page_size: 25000

OffsetIncrement terminates when a page returns fewer records than page_size (or zero), which is the correct signal for GA4 and needs no response field. The hard-coded limit: 100000 was removed from request_body_json — the paginator now supplies limit via page_size_option, and leaving both would make HttpRequester raise on the duplicate body key. Pivot reports keep NoPagination and are otherwise unchanged.

Offset paging is only correct over a stable row order, and GA4 documents no default ordering for runReport, so paged requests now also carry a total ordering over every configured dimension:

"orderBys": [{"dimension": {"dimensionName": "date"}}, {"dimension": {"dimensionName": "country"}}]

GA4 returns one row per unique dimension-value combination, so ordering by all dimensions is a total order and page boundaries cannot overlap or skip rows. Cohort requests get the same ordering — they paginate like any other runReport, and GA4 accepts orderBys alongside cohortSpec (verified against the live API, which returns 400 only for genuinely invalid cohort combinations such as supplying dateRanges). orderBys is omitted only for pivot requests (RunPivotReportRequest has no top-level orderBys — ordering lives inside each Pivot, and pivot streams use NoPagination) and for metric-only reports (nothing to order by).

Declarative-First Evaluation

Declarative only — no custom component. DefaultPaginator + OffsetIncrement with RequestOptionType.body_json expresses offset-in-body pagination and short-page termination directly, so no Python was needed.

Review guide

  1. manifest.yaml — both paginator blocks must stay in sync; the components_mapping one overrides the template at runtime. The orderBys block in request_body_json is guarded on dimensions / not-pivot.
  2. unit_tests/test_components.py — new end-to-end mocked read.
  3. metadata.yaml / docs/integrations/sources/google-analytics-data-api.md — 2.11.3-rc.1 bump and changelog. The version is provisional: master has moved on repeatedly while this PR sat unmerged (2.9.45 → 2.10.x → the 2.11.0 rollout, now finalized, plus 2.11.1 and 2.11.2), so the earlier 2.11.0-rc.2 stacking is gone and the fix now opens a fresh rollout candidate on the next patch. Please confirm or change that choice before promoting anything — it also means the active-rollout bypass checkbox below needs a maintainer's acknowledgement before merge.

Test Coverage

test_dynamic_stream_paginates_run_report_results reads a dynamic stream end to end through entrypoint_wrapper.read with mocked OAuth, metadata, and :runReport endpoints: it asserts all 25,001 records across two pages are emitted, that request 1 carries limit: 25000 with no offset, that request 2 carries offset: 25000, and that the short second page ends pagination. It fails on master (only page 1 is read). test_dynamic_stream_orders_paged_run_report_requests_by_every_dimension asserts both paged requests carry the same full-dimension orderBys, and test_run_report_order_bys covers the guards parametrically (all dimensions ordered, cohort reports included; omitted for metric-only and pivot reports). test_dynamic_pivot_streams_disable_pagination asserts pivot streams still issue exactly one request with no offset and no top-level orderBys. Full suite at the current head (9e73560, master merged in): 44 passed, including master's newer test_property_metadata.py and test_single_stream_per_report.py — the latter's request fixture was updated from limit: 100000 to the injected limit: 25000, and conftest.py gained an autouse fixture that points REQUEST_CACHE_PATH at a tmpdir so cached dynamic-schema responses no longer leak between tests.

/ai-prove-fix additionally ran the pagination scenario against both real manifests (this branch vs. the pre-fix commit, each with its own components.py) using a mock runReport that honors the request body's offset/limit. On a 160,000-row slice, 2.9.44 emits 100,000 records (60,000 silently lost) in one request while this branch emits all 160,000 across 7 requests. Six comparison regression runs (control pinned to 2.9.44) showed no record loss and no new errors, though no reachable property had a >100k-row day.

User Impact

Slices larger than the page size are now fully synced instead of being silently truncated at 100,000 rows — affected connections will see additional rows appear. Requests are paged at 25,000 rows, so large slices issue more runReport calls than before (bounded by GA4's documented quotas; default_concurrency is unchanged), with materially lower peak memory per request.

Not a breaking change: no schema, spec, or state format change. Versioned as 2.11.3-rc.1 because the connector has an active progressive rollout.

AI PR Review Justification

Behavioral Changes

The increased request volume is intrinsic to the fix rather than incidental: correctness requires paging, and a page size below 100,000 is what bounds peak memory on the slices that were stalling. A slice of N rows now costs ceil(N / 25000) runReport calls instead of 1 (capped at 100,000 rows previously read). GA4's documented Core quotas are 10 concurrent requests / 40,000 tokens per hour for Standard properties and 50 / 400,000 for Analytics 360; default_concurrency stays at 4, so concurrency headroom is unchanged and only hourly token use rises for properties with large slices. No throttling appeared in any of the six regression runs. The alternative — fixing pagination while keeping limit: 100000 — would keep request volume flat but make the reported freeze more likely, since affected slices would then fetch several 100k-row pages instead of stopping after one.

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Link to Devin session: https://app.devin.ai/sessions/cdce7a41bb4842d393483d18ebca6579

Important

Active progressive rollout warning for source-google-analytics-data-api.

  • (Click to Approve:) Bypass the active progressive rollout warning for source-google-analytics-data-api in the PR comment here.

Important

Autopilot Progressive Rollout Enabled

Autopilot progressive rollouts are enabled for one or more connector(s) modified in this PR. Check the box below if you need to bypass normal rollout safety processes and release to all users immediately upon merge:

  • ⚡ Release immediately (bypasses automatic progressive rollout)

Note:

  • ⚠️ The above bypass option is for emergency/hotfix use only.
  • 🔗 You can monitor or manually advance a rollout at ops.internal.airbyte.ai.

Open in Devin Desktop: https://app.devin.ai/desktop/session/cdce7a41bb4842d393483d18ebca6579?variant=devin

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@github-actions

Copy link
Copy Markdown
Contributor

👋 Greetings, Airbyte Team Member!

Here are some helpful tips and reminders for your convenience.

💡 Show Tips and Tricks

PR Slash Commands

Airbyte Maintainers (that's you!) can execute the following slash commands on your PR:

  • 🛠️ Quick Fixes
    • /format-fix - Fixes most formatting issues.
    • /bump-version - Bumps connector versions, scraping changelog description from the PR title.
      • Bump types: patch (default), minor, major, major_rc, rc, promote.
      • The rc type is a smart default: applies minor_rc if stable, or bumps the RC number if already RC.
      • The promote type strips the RC suffix to finalize a release.
      • Example: /bump-version type=rc or /bump-version type=minor
    • /bump-progressive-rollout-version - Alias for /bump-version type=rc. Bumps with an RC suffix and enables progressive rollout.
  • ❇️ AI Testing and Review (internal link: AI-SDLC Docs):
    • /ai-prove-fix - Runs prerelease readiness checks, including testing against customer connections.
    • /ai-canary-prerelease - Rolls out prerelease to 5-10 connections for canary testing.
    • /ai-review - AI-powered PR review for connector safety and quality gates.
  • 📝 AI Documentation:
    • /ai-docs-review - AI-powered documentation review for PRs with connector changes.
    • /ai-create-docs-pr - Creates a documentation PR for connector changes, stacked on the current PR.
  • 🚀 Connector Releases:
    • /publish-connectors-prerelease - Publishes pre-release connector builds (tagged as {version}-preview.{git-sha}) for all modified connectors in the PR.
    • /enable-autopilot-rollouts - Enables autopilot progressive rollouts for the modified connector(s) in the PR, remediating "autopilot rollouts not enabled for {connector-name}" auto-merge blockers. Sets defaultRolloutMode: autopilot and enableProgressiveRollout: true, preserving any existing autopilotConfig.
      • Optional args: connector=<CONNECTOR_NAME> (defaults to the modified connectors in the PR), strategy=fast|slow|default (defaults to fast).
      • Example: /enable-autopilot-rollouts or /enable-autopilot-rollouts connector=source-faker strategy=slow
  • ☕️ JVM connectors:
    • /update-connector-cdk-version connector=<CONNECTOR_NAME> - Updates the specified connector to the latest CDK version.
      Example: /update-connector-cdk-version connector=destination-bigquery
  • 🐍 Python connectors:
    • /poe connector source-example lock - Run the Poe lock task on the source-example connector, committing the results back to the branch.
    • /poe source example lock - Alias for /poe connector source-example lock.
    • /poe source example use-cdk-branch my/branch - Pin the source-example CDK reference to the branch name specified.
    • /poe source example use-cdk-latest - Update the source-example CDK dependency to the latest available version.
  • ⚙️ Admin commands:
    • /force-merge reason="<REASON>" - Force merges the PR using admin privileges, bypassing CI checks. Requires a reason.
      Example: /force-merge reason="CI is flaky, tests pass locally"
📚 Show Repo Guidance

Helpful Resources

📝 Edit this welcome message.

@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Note

✅ All modified connector(s) now have autopilot progressive rollouts enabled. Thanks!

@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

source-google-analytics-data-api Connector Test Results

49 tests   47 ✅  2m 36s ⏱️
 2 suites   2 💤
 2 files     0 ❌

Results for commit 9e73560.

♻️ This comment has been updated with latest results.

@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-prove-fix per Hands-Free AI Triage Project triage next step.

Reason: draft PR, no merge conflicts, and connector CI is green (the only outstanding check is the Vercel docs preview). No prove-fix has run yet on this HEAD.

Devin session

@octavia-bot-suspended

octavia-bot-suspended Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

🔍 AI Prove Fix session starting... Running readiness checks and testing against customer connections. View playbook

✅ Devin AI session created successfully!

@airbyte-support-bot

Airbyte Support Bot (airbyte-support-bot) commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

🧪 Fix Validation (/ai-prove-fix) — ✅ Proven (mechanism), no regression on live data

Fix under test: source-google-analytics-data-api 2.9.44 → 2.9.45, runReport pagination.
Prerelease: airbyte/source-google-analytics-data-api:2.9.45-preview.140754d (publish run)
Control (known-bad): airbyte/source-google-analytics-data-api:2.9.44

Verdict

The defect reproduces on 2.9.44 and is gone on this branch. Ship it. One gap, stated plainly: no production sync of the required scale was available, so the proof is a differential harness against the two real manifests rather than a customer sync, and the hang described in the report is not addressed by this PR and was not tested.

Correction to my own evidence plan

My plan said a stream exceeding 25,000 rows per slice should show a record-count delta. Wrong: 2.9.44 hard-coded limit: 100000 on its single page, so truncation starts above 100,000 rows per slice. Between 25,001 and 100,000 rows both versions return the same records — only the request count changes. A record-count delta on real data therefore needs a property with a >100k-row day, which none of the connections available for testing has.

Differential evidence (decisive)

The PR's pagination scenario run against both real manifests — baseline exported from the commit before the fix, with its own components.py — using a mock runReport that serves rows from the request body's own offset/limit:

Rows available in one slice 2.9.44 This branch
60,000 1 request, limit: 100000 → 60,000 records 3 requests, limit: 25000, offsets –/25000/50000 → 60,000 records
160,000 1 request, limit: 100000 → 100,000 records (60,000 silently lost) 7 requests, limit: 25000, offsets through 150000 → 160,000 records

Request shape is exactly as intended: page 1 carries limit: 25000 and no offset, later pages carry offset: 25000, 50000, … in body_json.

Per-slice scoping checked separately (3 slices, window_in_days: 1, 60,000 rows per day): every slice's first request omits offset, offsets advance within the slice, each slice reads exactly its own 60,000 rows, and nothing leaks across slices.

Unit tests on the PR head: 17 passed, including the new test_dynamic_stream_paginates_run_report_results (25,001 records over 2 requests) and test_dynamic_pivot_streams_disable_pagination (pivot reports stay unpaginated).

Regression tests — comparison mode, control pinned to 2.9.44, all streams

Six runs across integration-test credentials and five qualified connections (all non-EU, TIER_2, active, unpinned; no version pinning performed):

  • Integration-test credentials, all 51 streams: SPEC / CHECK / DISCOVER / READ ✅, 1,799 records, every stream delta 0. Largest stream 164 rows, so pagination was never exercised — this establishes the rewrite is harmless, not that it works.
  • Largest live property reachable: ✅ both versions, 24,437 records, every stream delta 0 (biggest stream 22,862 rows). Still under one page per slice.
  • One further connection: ✅ both versions, all deltas 0.
  • Three connections were uninformative: READ failed identically on both versions — one GA4 403 PERMISSION_DENIED, two expired refresh tokens. Pre-existing connection-side problems, not regressions.

Across every informative run: no record-count decrease, no new error, no message-count change on any stream.

Pre-flight

Check Result
Safety scan ✅ no credential handling, exfiltration, or new network destinations
Breaking change ✅ none — no spec, schema, PK, cursor, stream-name or state-format change
Reversible ✅ 2.9.44 reads the same config and state; rollback is a version pin
Version bump ✅ patch bump plus changelog entry

Residual risk

  1. Reports between 25,001 and 100,000 rows per slice now cost 2–4 requests instead of 1, so GA4 tokens-per-property quota use rises for those properties. No throttling appeared in any test run.
  2. The reported symptom also included a sync that hung with no records, no state, and no error. That is a separate concern from truncation; smaller pages should reduce the memory pressure it was attributed to, but this PR does not add a watchdog and the hang was not reproduced or tested here.

Customer-specific details, connection identifiers, and raw logs are in the internal tracking issue.


🔗 Session: https://app.devin.ai/sessions/ab5a247591ff4ab7b7bea549b40c6ddd

@airbyte-support-bot Airbyte Support Bot (airbyte-support-bot) added the hyd-prove Hydra: ai-prove-fix stage has run label Jul 28, 2026
@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Pre-release Connector Publish Started

Publishing pre-release build for connector source-google-analytics-data-api.
PR: #83188

Pre-release versions will be tagged as {version}-preview.140754d
and are available for version pinning via the scoped_configuration API.

View workflow run
Pre-release Publish: SUCCESS ✅

Docker image (pre-release):
airbyte/source-google-analytics-data-api:2.9.45-preview.140754d

Docker Hub: https://hub.docker.com/layers/airbyte/source-google-analytics-data-api/2.9.45-preview.140754d

Registry JSON:

@airbyte-support-bot
Airbyte Support Bot (airbyte-support-bot) marked this pull request as ready for review July 29, 2026 11:37
@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-review per Hands-Free AI Triage Project triage next step.

Reason: /ai-prove-fix returned Proven — the defect reproduces on 2.9.44 and is gone on this branch, with no regression on live data. Marked ready for review and advancing to the automated review gate.

Devin session

@octavia-bot-suspended

octavia-bot-suspended Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

AI PR Review starting...

Reviewing PR for connector safety and quality.
View playbook

✅ Devin AI session created successfully!

@airbyte-support-bot

Airbyte Support Bot (airbyte-support-bot) commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

🛡️ AI PR Review Report

🟢 Review Action: APPROVED

Gate Status
Behavioral Changes FAIL (warning-level — elevates Risk Level, does not block APPROVE)

All other 11 gates passed.

⚠️ Risk Level: 4/5

Pagination semantics in manifest.yaml change request volume and the number of rows emitted for existing connections (slices >100k rows are no longer truncated), which is user-visible operational behavior.

⚠️ Note (not a gate): this PR currently has merge conflicts with master (mergeable_state: dirty) and must be rebased before it can be merged.


📋 PR Details

Connector(s): source-google-analytics-data-api
PR: #83188
HEAD SHA: 140754d5bac1eb8d724d3b676a99239b2628f79b
Session: https://app.devin.ai/sessions/b5ef8c2c4a0d49f99b024e815f219394

🔍 Gate Evaluation Details

Gate-by-Gate Analysis

Gate Status Enforced? Details
PR Hygiene PASS Yes Body is 4,268 chars of filled-in template; docs/integrations/sources/google-analytics-data-api.md changelog row added for 2.9.45; no unresolved human review comments.
Code Hygiene PASS WARNING Source change (manifest.yaml) accompanied by test changes in unit_tests/test_components.py (+119).
Test Coverage PASS Yes Bug fix with two new tests exercising the new pagination path.
Code Security PASS Yes No security-sensitive paths changed; manifest.yaml / metadata.yaml diff hunks contain no auth/credential/allowedHosts/dockerRepository keywords.
Per-Record Performance PASS WARNING No per-record loop changes; smaller pages (25k vs 100k) reduce peak memory per request.
Breaking Dependencies PASS WARNING No dependency or build files modified.
Backwards Compatibility PASS Yes (enforced) No spec, schema (type/format), stream, primary-key or cursor changes; patch bump 2.9.44 → 2.9.45 is appropriate.
Forwards Compatibility PASS Warning (elevates Risk Level) Paginator keywords present in the diff, but no state/cursor/partition-key shape change — state format is untouched, so rollback to 2.9.44 is safe (it merely re-truncates at 100k). Pagination behavior is covered by new tests.
Behavioral Changes FAIL Warning (elevates Risk Level) Operational keywords page_size, limit, paginator in the diff hunks of manifest.yaml: request volume for large slices increases (one 100k-row request → N × 25k-row requests). Justified in the PR body (default_concurrency unchanged, bounded by GA4 quotas) and covered by tests, but requires human sign-off.
Out-of-Scope Changes PASS Skip All 4 changed files are under airbyte-integrations/connectors/source-google-analytics-data-api/ or docs/.
CI Checks PASS Yes Test source-google-analytics-data-api Connector, Lint source-google-analytics-data-api Connector, Connector CI Checks Summary, Format Check, Check Changelog Updated, docs checks all ✅ (22 tests, 19 passed / 3 skipped, 0 failed). Only non-success run is Vercel Preview (cancelled), a non-core docs preview deploy.
Live / E2E Tests PASS Yes /ai-prove-fix posted ✅ Proven (mechanism), no regression on live data for prerelease 2.9.45-preview.140754d: the defect reproduces on control 2.9.44 and is gone on this branch.

Files triggering gates

  • manifest.yaml (both the stream-template paginator and the components_mapping override): inject_into: request_parameter → body_json, added page_size_option, CursorPagination → OffsetIncrement with page_size: 25000, removed hard-coded limit: 100000 from request_body_json.
  • metadata.yaml: dockerImageTag 2.9.44 → 2.9.45 only.
  • unit_tests/test_components.py: test_dynamic_stream_paginates_run_report_results (asserts 25,001 records over 2 pages, limit/offset in body) and test_dynamic_pivot_streams_disable_pagination.
  • docs/integrations/sources/google-analytics-data-api.md: changelog row.

Live / E2E caveat carried from /ai-prove-fix: the proof is a differential harness against both real manifests, not a customer sync — no available connection has a >100k-row day, and the reported hang symptom was not exercised. Prove-fix still returned Proven, so this gate maps to PASS.

📚 Evidence Consulted

Evidence

  • Changed files: 4 (manifest.yaml, metadata.yaml, unit_tests/test_components.py, docs/integrations/sources/google-analytics-data-api.md)
  • CI checks: all core connector Test/Lint/Format/Changelog/docs checks success; Progressive Rollout Gate and Validate PR Title success (excluded from this gate anyway); Vercel Preview cancelled (non-core); CodeQL neutral
  • PR labels: connectors/source/google-analytics-data-api, hyd-fix, hyd-prove, hyd-review (no validation-override labels)
  • PR description: present (4,268 chars)
  • /ai-prove-fix: Proven, prerelease 2.9.45-preview.140754d published successfully
  • Existing bot reviews: none
  • Merge state: mergeable: false (dirty) — rebase required before merge
❓ How to Respond

Providing Context or Justification

The Behavioral Changes gate is warning-level: it does not block approval, but a human reviewer should sign off on the increased runReport request volume for large slices. You can add context the bot will see on the next review:

Option 1: PR Description (recommended)

## AI PR Review Justification

### Behavioral Changes
[Your explanation here]

Option 2: PR Comment

AI PR Review Justification:
[Your explanation here]

After adding your response, re-run /ai-review.

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

☑️ Resolved in 8543128. Merge conflict with master is fixed and the Behavioral Changes justification is now in the PR description.

master shipped 2.9.45 as a deps update (#82938) while this PR was open, so the conflict was the colliding changelog row plus the duplicate dockerImageTag. Resolution keeps master's 2.9.45 deps row and moves this fix to 2.9.46; the merge also picks up the base-image bump to source-declarative-manifest:7.23.8.

The AI PR Review Justification → Behavioral Changes section is added to the PR body. Short version: the extra request volume is intrinsic to the fix rather than incidental — correctness requires paging, and a page size below 100,000 is what bounds peak memory on the slices that were stalling. A slice of N rows now costs ceil(N / 25000) runReport calls; default_concurrency stays at 4 so concurrency headroom against GA4's 10-concurrent-request Core quota is unchanged, and only hourly token use rises for properties with large slices. No throttling appeared in any of the six regression runs. Keeping limit: 100000 while fixing pagination would hold request volume flat but make the reported freeze more likely, since affected slices would then fetch several 100k-row pages instead of stopping after one.

Re-run /ai-review when convenient — the head SHA has moved past 140754d.


Devin session

@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Deploy preview for airbyte-docs ready!

Project:airbyte-docs
Status: ✅  Deploy successful!
Preview URL:https://airbyte-docs-9m0fx46cj-airbyte-growth.vercel.app
Latest Commit:9e73560

Deployed with vercel-action

@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-review per Hands-Free AI Triage Project triage next step.

Reason: the prior APPROVE was recorded at 140754d, which the merge-conflict resolution commit 8543128 has since superseded. Re-reviewing the current HEAD so the approval covers the code as it now stands.

Devin session

@octavia-bot-suspended

octavia-bot-suspended Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

AI PR Review starting...

Reviewing PR for connector safety and quality.
View playbook

✅ Devin AI session created successfully!

@airbyte-support-bot

Airbyte Support Bot (airbyte-support-bot) commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

🛡️ AI PR Review Report

🟢 Review Action: APPROVED

Gate Status
Behavioral Changes FAIL (warning-level — elevates Risk Level, does not block APPROVE)

All other 11 gates passed.

⚠️ Risk Level: 4/5

Pagination semantics in manifest.yaml change request volume and the number of rows emitted for existing connections (slices >100k rows are no longer truncated), which is user-visible operational behavior.

Re-run of /ai-review at the new HEAD 8543128 (merge-conflict resolution + bump to 2.9.46). Relative to the previously reviewed 140754d, the only connector/docs changes are metadata.yaml dockerImageTag and the changelog row — manifest.yaml and the unit tests are byte-identical, so the /ai-prove-fix evidence still applies. Merge conflicts are resolved (mergeable).


📋 PR Details

Connector(s): source-google-analytics-data-api
PR: #83188
HEAD SHA: 8543128efaeb0e8f3b7d3b7571131b9964f40ec5
Session: https://app.devin.ai/sessions/260983e372b14b4eab21d56539319462

🔍 Gate Evaluation Details

Gate-by-Gate Analysis

Gate Status Enforced? Details
PR Hygiene PASS Yes Detailed description (What / How / Review guide / Test Coverage / User Impact, ~5.4k chars); changelog row added for 2.9.46 in docs/integrations/sources/google-analytics-data-api.md; no unresolved human review comments (all 15 comments are from bots/automation).
Code Hygiene PASS WARNING Source change (manifest.yaml) is accompanied by test changes (unit_tests/test_components.py, +119 lines). Coverage evidence: Found.
Test Coverage PASS Yes Behavioral change (title fix(...), linked to airbytehq/oncall#13164). New test content present: test_dynamic_stream_paginates_run_report_results and test_dynamic_pivot_streams_disable_pagination with new assertions on request bodies and record counts.
Code Security PASS Yes No changed file matches auth/credential/token path patterns. manifest.yaml diff hunks contain no security keywords (authenticator, client_id, client_secret, refresh_token, access_token, api_key); metadata.yaml diff hunk is only dockerImageTag: 2.9.45 → 2.9.46 (no allowedHosts, connectorBuildOptions, or dockerRepository change).
Per-Record Performance PASS WARNING No per-record loop, transformation, or extractor logic changed. Reducing page size 100,000 → 25,000 lowers peak per-request memory (triage measured ~1.17 GiB RSS for a single 100k-row page).
Breaking Dependencies PASS WARNING No pyproject.toml, lockfile, or build.gradle change in the diff; the base-image bump to source-declarative-manifest:7.23.8 already landed on master and is not introduced by this PR.
Backwards Compatibility PASS Yes (enforced) No spec file changed (no required array change, no property removal), no schemas/*.json change, no type/format change on any existing field, no stream added/removed/renamed, and no primary-key or cursor field/value change — the offset token affects request paging only, not record keys. No releases.breakingChanges entry needed; patch bump 2.9.45 → 2.9.46 is appropriate.
Forwards Compatibility PASS Warning (elevates Risk Level) Pagination keywords (paginator, page_size, offset) appear in the diff, but no incremental-sync state, cursor field, or partition-router shape changed — the persisted state format is untouched, so rollback to 2.9.45 restores the prior (truncating) behavior without any state incompatibility. New tests cover both the paginating and the NoPagination (pivot) paths.
Behavioral Changes FAIL Warning (elevates Risk Level) Operational keywords in diff hunks: page_size: 25000, limit page-size option, removal of the hard-coded limit: 100000. Request volume for a slice of N rows goes from 1 call to ceil(N / 25000) calls, and slices >100k rows now emit rows that were previously dropped. Author justification (PR body → AI PR Review Justification → Behavioral Changes) is present and substantive — GA4 Core quotas cited, default_concurrency unchanged at 4, no throttling in six regression runs — but per playbook this gate accepts justification as context only, so the gate stays FAIL at warning level and does not block APPROVE.
Out-of-Scope Changes PASS Skip All 4 changed files are in airbyte-integrations/connectors/source-google-analytics-data-api/** or docs/**. No platform, CDK-core, CI, or infrastructure changes.
CI Checks PASS Yes 36 passed / 0 failed / 0 pending on 8543128, including Test source-google-analytics-data-api Connector, Lint source-google-analytics-data-api Connector, Connector CI Checks Summary, Format Check, and Check Changelog Updated. Skipped checks are non-applicable (no JVM/CDK changes).
Live / E2E Tests PASS Yes Validation required (bug fix + sync-behavior change: paginator, page_size, record volume). /ai-prove-fix posted ✅ Proven (mechanism), no regression on live data (comment 5106756776): the defect reproduces on 2.9.44 (100,000 of 160,000 rows emitted) and is gone on this branch (all 160,000 across 7 requests), with six comparison regression runs showing no record loss and no new errors. That run was against 140754d; the connector code has not changed since, so the conclusion carries to 8543128.
📚 Evidence Consulted

Evidence

  • Changed files: 4 (manifest.yaml, metadata.yaml, unit_tests/test_components.py, docs/integrations/sources/google-analytics-data-api.md)
  • Diff vs. previously reviewed 140754d: only metadata.yaml dockerImageTag and the changelog row
  • CI checks: 36 passed, 0 failed, 0 pending, 11 skipped
  • PR labels: connectors/source/google-analytics-data-api, hyd-review, hyd-fix, hyd-prove
  • PR description: present (~5.4k chars) with an AI PR Review Justification section
  • Existing bot reviews: prior /ai-review APPROVE recorded for superseded SHA 140754d
  • hyd-review label applied to this PR and to the linked originating issue airbytehq/oncall#13164

@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-ready per Hands-Free AI Triage Project triage next step.

Reason: /ai-review returned APPROVE for the exact current HEAD 8543128 (the post-conflict-resolution commit), CI is green and the Support Bot is assigned, so merge-readiness evaluation is the next gate.

Devin session

@octavia-bot-suspended octavia-bot-suspended Bot added the hyd-ready Hydra: ready for human review or merge label Jul 29, 2026
@octavia-bot-hoard-suspended

octavia-bot-hoard-suspended Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Auto-merge evaluation: FAIL

Preconditions (all must pass)

Status Check Reasoning
✅ No Breaking Changes Patch version bump 2.9.44 -> 2.9.46 (no major/minor). No spec, schema, or state format changes; no removed or renamed config options; no breakingChanges entry added to metadata.yaml releases. The only behavioral change is that report slices >100k rows are now fully paginated instead of silently truncated, which requires no user action. The PR body and the AI review both classify backwards/forwards compatibility as passing.
✅ Ai Review Passed Comment 16 (id 5118232581) by airbyte-support-bot contains '', matching the current HEAD. An earlier APPROVE from the same author exists for 140754d. Decision APPROVE with only the warning-level Behavioral Changes gate failing (non-blocking).
✅ Airbyte Support Bot Assigned Airbyte Support Bot assignment confirms automated merge eligibility.
✅ No Destination Changes No destination-related changes detected.

Change scope (at least one must pass)

❌ No matching change scope detected.

Devin session | Workflow run

@airbyte-support-bot

Copy link
Copy Markdown
Contributor

🙋 Escalated to #human-in-the-loop (API source connectors oncall). The auto-merge evaluation passed every precondition with an APPROVE matching the exact current HEAD 8543128e, and failed only because the change matches no configured auto-merge scope — so the merge needs a human.

Posted per Hands-Free AI Triage Project triage.

Devin session

devin-ai-integration Bot and others added 2 commits August 25, 2026 04:34
…with injected page size

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/1785239083-ga4-pagination branch from 8543128 to 89e8032 Compare August 25, 2026 04:52
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Rebased onto master (f58fcd96a1b) at zane.hyatt's request and force-pushed; head is now 89e8032b91a. GitHub reports the PR as mergeable again.

Version is provisional: dockerImageTag is set to 2.11.0-rc.2 because master has shipped 2.9.45, 2.10.0, 2.10.1, 2.10.2 and 2.11.0-rc.1 since this PR was opened. This is a placeholder pending the connector owner's decision on how this fix should be versioned relative to the in-flight 2.11.0 release candidate — please confirm or change it before promoting anything. (The PR description above still refers to the original 2.9.46 bump.)

Conflicts and resolutions

  1. metadata.yaml — 2.11.0-rc.1 (master) vs 2.9.46 (this branch) → 2.11.0-rc.2.
  2. docs/integrations/sources/google-analytics-data-api.md — added a 2.11.0-rc.2 row at the top of the changelog for the pagination fix; the 2.11.0-rc.1, 2.10.2, 2.10.1, 2.10.0 and 2.9.45 rows added on master are all kept, and the stale 2.9.46/2.9.45 rows from this branch are gone.
  3. unit_tests/test_components.py — import-block conflict only; kept both master's ConcurrentDeclarativeSource import and this branch's airbyte_cdk.models import.
  4. manifest.yaml — the paginator hunks merged cleanly against master's current layout. There are still exactly two paginator sites; 2.11.0-rc.1's one-stream-per-report feature only touched stream naming.

Pagination correctness after the rebase

Both paginator sites carry page_size_option injecting limit: 25000 into body_json, matching OffsetIncrement's page_size. This matters because the hard-coded limit: 100000 is deleted, so the injected limit is the only thing setting page size — without it GA4 would default to 10,000 rows, and OffsetIncrement.next_page_token() returns None once last_page_size < page_size, which would silently cap every stream at 10,000 rows.

Stream template (definitions, lines 63-75):

        paginator: # the dynamic stream will override this value
          type: DefaultPaginator
          page_token_option:
            type: RequestOption
            inject_into: body_json
            field_name: offset
          page_size_option:
            type: RequestOption
            inject_into: body_json
            field_name: limit
          pagination_strategy:
            type: OffsetIncrement
            page_size: 25000

Dynamic-stream ComponentMappingDefinition override (lines 1005-1022):

        - type: ComponentMappingDefinition
          field_path: ["retriever", "paginator"]
          create_or_update: True
          value: >
            {% if components_values.get("pivots") %}
              type: NoPagination
            {% else %}
              type: DefaultPaginator
              page_token_option:
                type: RequestOption
                inject_into: body_json
                field_name: offset
              page_size_option:
                type: RequestOption
                inject_into: body_json
                field_name: limit
              pagination_strategy:
                type: OffsetIncrement
                page_size: 25000
            {% endif %}

The pivot path is unchanged: NoPagination, and no top-level limit in request_body_json (runPivotReport has no top-level limit; Pivot.limit comes from the user's own config).

Tests — poetry run pytest in airbyte-integrations/connectors/source-google-analytics-data-api/unit_tests: 28 passed. Both pagination tests still assert request_bodies[0]["limit"] == 25000 and request_bodies[1]["limit"] == 25000 and pass unmodified.

Two of master's test_single_stream_per_report.py tests needed fixture repairs (assertions unchanged in substance):

  • test_single_stream_per_report_reads_each_property_partition expected the deleted hard-coded "limit": 100000 in the request body; it is now "limit": 25000, the value the paginator injects.
  • test_metadata_is_fetched_once_per_property_not_once_per_stream observed zero metadata requests when the full suite ran. Cached sessions (dynamic schema loaders force use_cache=True) fall back to a single process-wide in-memory SQLite database that outlives any test leaving a session open, so an earlier test's cached metadata responses were serving this test's requests. Added an autouse conftest.py fixture pointing REQUEST_CACHE_PATH at a per-test tmp_path, which isolates the cache; the test's assertions are untouched.

Per the request, I did not merge, approve, enable auto-merge, touch PR #83318, or start/modify any rollout or version promotion.


Devin session

@github-actions

github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Detected source-google-analytics-data-api Active Rollout: true

Important

Active progressive rollout warning for source-google-analytics-data-api.

To bypass this warning, click on the matching checkbox in the PR description. Look for the checkbox text:

(Click to Approve:) Bypass the active progressive rollout warning for source-google-analytics-data-api in the PR comment

Version on master Branch: 2.11.2

  • RC marker on master branch: false

PR Description Checkbox Status

  • Bypass checkbox checked: false

ℹ️ More Information

Show/hide details...

🤔 What happens if this PR is merged

Checking the checkbox will allow the PR to merge, but it does not necessarily stop the active rollout by itself. The result of the PR merging depends on what connector version is published.

Expected outcomes by type of version number change:

If connector version is not modified in this PR...

No new connector version should be released, and the active rollout should continue unchanged.

If the connector version increments to a higher version...

After this PR is merged, the new version will be published and advertised as this connector's rollout candidate, replacing the current one. An -rc suffix is not required for this: with enableProgressiveRollout, an ordinary version bump becomes the rollout candidate. When it is registered, the platform cancels — not finalizes — any existing non-terminal rollout for this connector, without unpinning actors. Actors pinned to 2.11.2 therefore keep syncing on that old image: they are not rolled back to the previous default version, and the merge itself does not move them to the new candidate.

The new rollout still has to be started before those actors move. With defaultRolloutMode: autopilot, the autopilot cron starts it on its next eligible pass; otherwise a human starts it from Connector Rollout Manager. Starting it migrates the previous rollout's pins onto the new candidate version by default (migratePins), which is what moves those actors forward. Until then, they stay on the old version.

If the connector version changes from RC to non-RC (GA) version...

You should not merge the PR unless/until the RC has been finalized as canceled. See above Rollout state for detected status.

[!Warning]
This PR should not be merged if the RC rollout is still active. First finalize the active rollout as successful or cancel it in Connector Rollout Manager.

When you finalize an RC rollout as successful, the platform triggers a promotion workflow that strips the -rc suffix, removes stable-version registryOverrides, disables progressive rollout, force-merges that promotion, and unpins actors.

🔁 How to rerun this check

To rerun the check, simply check and uncheck the box, or else modify the PR description and/or title in any way.

Alternatively, you can find the Active Progressive Rollout CI workflow and manually rerun it (although this is generally slower than the above methods).


This comment will be updated as PR and/or rollout status changes.

Workflow run

@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-review per Hands-Free AI Triage Project triage next step.

Reason: the APPROVE marker covers 8543128e (2026-07-29) and HEAD has since moved to 89e8032b. Connector CI is green at the current HEAD (only the progressive-rollout gate is failing, which is not a code check), so refreshing the AI review for the current commit.


Devin session

@octavia-bot-suspended

octavia-bot-suspended Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

AI PR Review starting...

Reviewing PR for connector safety and quality.
View playbook

✅ Devin AI session created successfully!

@airbyte-support-bot

Airbyte Support Bot (airbyte-support-bot) commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🛡️ AI PR Review Report

🟢 Review Action: APPROVED

Gate Status Details
Behavioral Changes FAIL (warning-level) page_size: 25000 / limit keywords in the manifest.yaml diff: a slice of N rows now costs ceil(N/25000) runReport calls instead of one truncated call. Documented in the PR description (GA4 quota analysis, default_concurrency unchanged) and covered by new unit tests. Warning-level — does not block APPROVE, but elevates Risk Level.

All other enforced gates PASS.

⚠️ Risk Level: 4/5

Changes the pagination semantics of every non-pivot runReport stream (offset/limit moved into body_json, page size 100k → 25k), increasing per-slice request volume; anti-pattern gate FAIL forces risk ≥ 4.


📋 PR Details

Connector(s): source-google-analytics-data-api
PR: #83188
HEAD SHA: 89e8032b91ab7fa5b27cbf901a453ff0b0ca0278
Session: https://app.devin.ai/sessions/78693ebfd2414b9196e390c77b1d9795

Re-run of /ai-review: the previous APPROVE marker covered 8543128e; the branch has since been rebased onto master (f58fcd96a1b) and re-versioned 2.11.0-rc.1 → 2.11.0-rc.2.

🔍 Gate Evaluation Details

Gate-by-Gate Analysis

Gate Status Enforced? Details
PR Hygiene PASS Yes PR body ~4.9k raw chars / ~4.7k visible chars of substantive content (What / How / Test Coverage / User Impact). Changelog row added for 2.11.0-rc.2 in docs/integrations/sources/google-analytics-data-api.md; Check Changelog Updated check green. No unresolved human review comments (0 inline review comments, no non-bot reviews). Note: the description body still cites the pre-rebase 2.9.45 → 2.9.46 bump, corrected in the rebase comment — cosmetic staleness only.
Code Hygiene PASS WARNING Source (manifest.yaml) and tests both changed: unit_tests/test_components.py (+119), unit_tests/conftest.py (+10), unit_tests/test_single_stream_per_report.py. Coverage evidence: Found.
Test Coverage PASS Yes Bug fix (fix(...) title, linked to airbytehq/oncall#13164) with new test content: test_dynamic_stream_paginates_run_report_results asserts 25,001 records across two pages, limit: 25000 on request 1 and offset: 25000 on request 2; test_dynamic_pivot_streams_disable_pagination asserts pivot streams still issue a single unpaginated request.
Code Security PASS Yes No changed file matches auth/credential/token path patterns. manifest.yaml diff hunks contain no authenticator/token/secret keywords (paginator blocks only); metadata.yaml diff is dockerImageTag only — no allowedHosts, connectorBuildOptions, or dockerRepository change. Credential strings appear only in dummy test fixtures.
Per-Record Performance PASS WARNING No per-record path (record_selector, transformations) modified. Smaller pages reduce peak per-request memory (triage measured ~1.17 GiB RSS for a 100k-row page).
Breaking Dependencies PASS WARNING No dependency or build files changed (pyproject.toml, poetry.lock, gradle untouched); Gradle Dependency Diff reports no change.
Backwards Compatibility PASS Yes (enforced) No spec change (spec required untouched — no spec file in the diff), no schemas/*.json change, no type/format change, no stream added/removed/renamed, no primary-key or cursor field/value change. Not a data-scope reduction: the change restores records previously truncated at 100k. metadata.yaml diff is a version bump only, no releases.breakingChanges entry needed.
Forwards Compatibility PASS Warning (elevates Risk Level) paginator/pagination_strategy/page_size keywords present, but no state, cursor, checkpoint, incremental_sync, or partition_router change — pagination is intra-slice and not persisted in state, so rollback to 2.11.0-rc.1 is safe (it simply resumes truncating). New end-to-end mocked read tests demonstrate the paged sync behavior; the PR is self-declared revertible.
Behavioral Changes FAIL Warning (elevates Risk Level) page_size: 25000 and body-injected limit in the manifest.yaml diff hunks change request volume: ceil(N/25000) calls per slice instead of one. Documented in the PR description with GA4 Core quota figures (10 concurrent / 40k tokens per hour Standard; 50 / 400k for 360) and default_concurrency unchanged at 4; no throttling seen in six regression runs. Warning-level, non-blocking.
Out-of-Scope Changes PASS Skip All 6 changed files are in airbyte-integrations/connectors/source-google-analytics-data-api/** or docs/integrations/sources/**.
CI Checks PASS Yes Core checks green at 89e8032b: Test source-google-analytics-data-api Connector, Lint source-google-analytics-data-api Connector, Connector CI Checks Summary, Build and Verify Artifacts, Format Check, Check Changelog Updated, Docs / Vale, Docs / MarkDownLint. The two failures — source-google-analytics-data-api Progressive Rollout Gate and Connector Active Progressive Rollout Checks Summary — are release-management checks explicitly excluded from this gate (an active 2.10.2 rollout plus the RC marker on master, not a defect in this diff). They still gate merge until the bypass checkbox is checked.
Live / E2E Tests PASS Yes Deferred to /ai-prove-fix, which concluded Proven (mechanism), no regression on live data: the pre-fix 2.9.44 manifest emits 100,000 of 160,000 rows in one request while this branch emits all 160,000 across 7 requests, and six comparison regression runs (control pinned to 2.9.44) showed no record loss or new errors. That run predates the rebase, but the rebase changed only dockerImageTag, the changelog, and a test import block — the paginator diff is unchanged.
📚 Evidence Consulted

Evidence

  • Changed files: 6 (manifest.yaml, metadata.yaml, 3 unit-test files, connector docs page) — +146/−12
  • CI checks: 46 check-runs at 89e8032b; all core build/lint/test checks success; 2 failures, both progressive-rollout/release-management (excluded); source-google-analytics-data-api Pre-Release Checks success
  • PR labels: connectors/source/google-analytics-data-api, hyd-review, hyd-fix, hyd-prove, hyd-ready — no override/validation labels
  • PR description: present (substantive)
  • Existing bot reviews: prior APPROVE marker for 8543128e (superseded); no review submitted for the current HEAD before this run
  • /ai-prove-fix: Proven (mechanism), no regression on live data

@ZaneHyattAB ZaneHyattAB self-assigned this Aug 26, 2026
ZaneHyattAB and others added 2 commits August 26, 2026 17:24
…ry dimension

Co-Authored-By: zane.hyatt <[email protected]>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@bazarnov Baz (bazarnov) 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.

Verified against primary sources and locally:

  • The GA4 discovery doc confirms RunReportResponse has no offset field, so the previous CursorPagination stop condition ended every read after page 1; limit/offset are request-body fields with a 10,000-row default when omitted (pagination docs).
  • CDK check: page_size_option injects limit on the first request too (DefaultPaginator._get_request_options gates only the token on token is not None), and removing the hard-coded limit: 100000 is required - combine_mappings raises a request-body key collision when the paginator injects a different value for the same key.
  • orderBys claims verified: top-level orderBys with dimension ordering exists on RunReportRequest and is absent on RunPivotReportRequest (ordering/paging live inside each Pivot), and GA4 documents no default row ordering - the explicit total order over all dimensions is what makes offset paging deterministic.
  • Ran the new unit tests locally (CDK 7.3.1): pagination advancement, the orderBys parametrized cases, pivot no-pagination, and test_single_stream_per_report - all green. Clean automatic merge with current master (no conflicts).

Merge note: the red Progressive Rollout Gate reflects a stale rollout record (2.10.2, state workflow_started) while master is already at 2.11.0-rc.1; publishing 2.11.0-rc.2 supersedes it. The duplicate #83318 was closed in favor of this PR.

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

👍 On it — nothing to change in the code, refreshing the description. Thanks for verifying all of it against the discovery doc and locally, Baz (@bazarnov). (Replying at top level: your comment is an issue comment, so it has no review thread to reply into.)

Two notes on my side:

  • The PR description was written before the orderBys commit and only covered the paginator. I've refreshed it to document the full-dimension ordering and why orderBys is omitted for pivot, cohort, and metric-only requests, plus the new ordering tests. The changelog row already covers both halves of the change.
  • On the rollout gate: I'll leave the bypass checkbox to a maintainer rather than self-approving it. Your reading that the red gate reflects a stale 2.10.2 rollout record while master is already at 2.11.0-rc.1 matches the job log — the gate only checks for the acknowledgement and never evaluates the diff. Every connector build/lint/test/docs check is green at the current head. The 2.11.0-rc.2 version choice is likewise yours to confirm; I stacked it onto the in-flight 2.11.0 candidate rather than opening a new series.

Devin session

@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-review per Hands-Free AI Triage Project triage next step.

Reason: the most recent /ai-review APPROVE marker is bound to head_sha: 89e8032b, but the current HEAD is ac95b9d2 — commits landed after that review, so there is no current review verdict for this HEAD. Re-running /ai-review at the current HEAD. The only non-success checks are the source-google-analytics-data-api progressive-rollout gate runs (an active-rollout gate, not a connector test failure).

Devin session

@octavia-bot-suspended

octavia-bot-suspended Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

AI PR Review starting...

Reviewing PR for connector safety and quality.
View playbook

✅ Devin AI session created successfully!

@airbyte-support-bot

Airbyte Support Bot (airbyte-support-bot) commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

🛡️ AI PR Review Report

🟢 Review Action: APPROVED

Gate Status Details
Behavioral Changes FAIL (warning-level) page_size: 25000 / body-injected limit plus the new orderBys block in the manifest.yaml diff: a slice of N rows now costs ceil(N/25000) runReport calls instead of one truncated call, and every paged non-pivot request now carries a full-dimension sort. Documented in the PR description (GA4 quota analysis, default_concurrency unchanged) and covered by new unit tests. Warning-level — does not block APPROVE, but elevates Risk Level.

All other enforced gates PASS.

⚠️ Risk Level: 4/5

Pagination semantics of every non-pivot runReport stream change (offset/limit in body_json, page size 100k → 25k) and paged requests now carry a full-dimension orderBys; the anti-pattern gate FAIL forces risk ≥ 4.


📋 PR Details

Connector(s): source-google-analytics-data-api
PR: #83188
HEAD SHA: ac95b9d2424fdbed7703fefee02562eae88aafa4
Session: https://app.devin.ai/sessions/1226cdf7827943f5b63e36d9ef5784a5

Re-run of /ai-review: the previous APPROVE marker covered 89e8032b. Delta since then is b48eb718 (orderBys over every configured dimension on paged non-pivot runReport requests, guarded off for pivot / cohort / metric-only reports, plus 124 lines of new tests) and ac95b9d2 (ruff formatting).

🔍 Gate Evaluation Details

Gate-by-Gate Analysis

Gate Status Enforced? Details
PR Hygiene PASS Yes PR body is ~7.5k raw chars of substantive content (What / How / Declarative-First / Review guide / Test Coverage / User Impact / Behavioral-change justification). Changelog row present for 2.11.0-rc.2 in docs/integrations/sources/google-analytics-data-api.md, and it now also documents the deterministic row ordering; Check Changelog Updated green. Peer feedback: 0 inline review comments; Baz (@bazarnov)'s review at this exact HEAD is APPROVED and the author replied to it (#83188 comment 5436511451) — nothing unresolved.
Code Hygiene PASS WARNING Source (manifest.yaml) and tests both changed: unit_tests/test_components.py (+243), unit_tests/conftest.py (+10), unit_tests/test_single_stream_per_report.py. Coverage evidence: Found.
Test Coverage PASS Yes Bug fix (fix(...) title, linked to airbytehq/oncall#13164) with new test content: test_dynamic_stream_paginates_run_report_results (25,001 records over two pages; limit: 25000 on request 1, offset: 25000 on request 2), test_dynamic_stream_orders_paged_run_report_requests_by_every_dimension, parametrized test_run_report_order_bys (ordering present for dimensioned reports; omitted for metric-only, cohort, pivot), and test_dynamic_pivot_streams_disable_pagination.
Code Security PASS Yes No changed file matches auth/credential/token/secret path patterns. manifest.yaml diff hunks contain only paginator, request-body, and orderBys template lines — no authenticator/token keywords; metadata.yaml diff is dockerImageTag only (no allowedHosts, connectorBuildOptions, dockerRepository change). Credentials appear only as dummy test fixtures.
Per-Record Performance PASS WARNING No per-record path changed (record_selector, transformations untouched). The orderBys Jinja loop runs once per request at request-body render time, not per record. Smaller pages reduce peak per-request memory (triage measured ~1.17 GiB RSS for a 100k-row page).
Breaking Dependencies PASS WARNING No dependency or build files changed (pyproject.toml, poetry.lock, gradle untouched); Gradle Dependency Diff reports no change.
Backwards Compatibility PASS Yes (enforced) No spec file in the diff (spec required unchanged), no schemas/*.json change, no type/format change, no stream added/removed/renamed, no primary-key or cursor field/value change. Not a data-scope reduction — the change restores rows previously truncated at 100k; orderBys changes row order within a stream, not the set of rows or their keys. metadata.yaml diff is a version bump only, so no releases.breakingChanges entry is required.
Forwards Compatibility PASS Warning (elevates Risk Level) paginator / pagination_strategy / page_size keywords present, but no state, cursor, checkpoint, incremental_sync, or partition_router change — pagination and ordering are intra-slice and not persisted in state, so rollback to 2.11.0-rc.1 is safe (it resumes truncating). New end-to-end mocked reads demonstrate the paged behavior; the PR is self-declared revertible.
Behavioral Changes FAIL Warning (elevates Risk Level) page_size: 25000, body-injected limit, and the new orderBys block in the manifest.yaml diff hunks change request volume and request shape: ceil(N/25000) calls per slice instead of one, each carrying a full-dimension sort. Justified in the PR description with GA4 Core quota figures (10 concurrent / 40k tokens per hour Standard; 50 / 400k for 360), default_concurrency unchanged at 4, and no throttling observed in six regression runs. Warning-level, non-blocking.
Out-of-Scope Changes PASS Skip All 6 changed files are under airbyte-integrations/connectors/source-google-analytics-data-api/** or docs/integrations/sources/**.
CI Checks PASS Yes Core checks green at ac95b9d2: Test source-google-analytics-data-api Connector, Lint source-google-analytics-data-api Connector, Connector CI Checks Summary, Build and Verify Artifacts, Format Check, Check Changelog Updated, Docs / Vale, Docs / MarkDownLint, source-google-analytics-data-api Connector Test Results. The only failures — source-google-analytics-data-api Progressive Rollout Gate and Connector Active Progressive Rollout Checks Summary — are release-management checks explicitly excluded from this gate (active rollout / RC state on master, not a defect in this diff). They still gate merge until the bypass checkbox is checked.
Live / E2E Tests PASS Yes Deferred to /ai-prove-fix, which concluded Proven (mechanism), no regression on live data: the pre-fix manifest emitted 100,000 of 160,000 rows in a single request while this branch emitted all 160,000 across 7 requests, and six comparison regression runs (control pinned to the pre-fix version) showed no record loss and no new errors. Caveat: that run predates b48eb718, so the orderBys addition itself was not exercised live — it is covered by the new parametrized unit tests and was verified against Google's runReport reference by Baz (@bazarnov).
📚 Evidence Consulted

Evidence

  • Changed files: 6 (manifest.yaml, metadata.yaml, 3 unit-test files, connector docs page) — +283/−12
  • CI checks: 53 check-runs at ac95b9d2; all core build/lint/test checks success; 4 failing entries, all progressive-rollout / release-management (excluded from CI Checks); source-google-analytics-data-api Pre-Release Checks success; commit status success (license/cla, Vercel)
  • PR labels: connectors/source/google-analytics-data-api, hyd-review, hyd-fix, hyd-prove, hyd-ready — no override/validation labels
  • PR description: present (~7.5k chars)
  • Existing bot reviews: prior APPROVE markers at 140754d5, 8543128e, 89e8032b (all superseded); human review APPROVED by Baz (@bazarnov) at ac95b9d2

@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-ready per Hands-Free AI Triage Project triage next step.

Reason: /ai-review completed at the current HEAD and returned APPROVE (pr_ai_review_result: APPROVE; head_sha: ac95b9d2424fdbed7703fefee02562eae88aafa4), superseding the stale 89e8032b marker, and /ai-prove-fix passed. The previous /ai-ready evaluation predates the current HEAD, so re-running the auto-merge eligibility evaluation at ac95b9d2.

Devin session

@octavia-bot-hoard-suspended

octavia-bot-hoard-suspended Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Auto-merge evaluation: FAIL

Preconditions (all must pass)

Status Check Reasoning
✅ No Breaking Changes Version bump is 2.11.0-rc.2 (RC on an in-flight minor rollout), no major bump and no breakingChanges entry in metadata.yaml. No spec, schema, or state format changes; no removed/renamed config options or public APIs. Only behavioral change is that report slices >100k rows are now fully paginated (offset/limit moved to body_json, page_size 25000, orderBys added), which requires no downstream code or configuration changes.
✅ Ai Review Passed Comment 29 (id 5438421277) by airbyte-support-bot contains '', matching the current HEAD. Earlier APPROVE markers from the same author exist for 140754d, 8543128 and 89e8032. Only the warning-level Behavioral Changes gate FAILs (non-blocking); decision is APPROVE.
✅ Airbyte Support Bot Assigned Airbyte Support Bot assignment confirms automated merge eligibility.
✅ No Destination Changes No destination-related changes detected.

Change scope (at least one must pass)

❌ No matching change scope detected.

Devin session | Workflow run

…t requests

Cohort streams paginate like any other runReport, so they need the same
stable dimension ordering. GA4 accepts orderBys alongside cohortSpec
(verified against the live API).

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-review per Hands-Free AI Triage Project triage next step.

Reason: the APPROVE marker is bound to ac95b9d2, which was superseded by 782169ee (orderBys applied to cohort report requests) pushed after the last /ai-ready evaluation. Re-running review so the verdict matches the current HEAD. Note the prior Auto-merge evaluation failed only on change scope (RC version on an in-flight rollout), which is a policy gate, not a pipeline gap.

Devin session

@octavia-bot-suspended

octavia-bot-suspended Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

AI PR Review starting...

Reviewing PR for connector safety and quality.
View playbook

✅ Devin AI session created successfully!

@airbyte-support-bot

Airbyte Support Bot (airbyte-support-bot) commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

🛡️ AI PR Review Report

🟢 Review Action: APPROVED

Gate Status Details
Behavioral Changes FAIL (warning-level) page_size: 25000 / body-injected limit plus the orderBys block in the manifest.yaml diff: a slice of N rows now costs ceil(N/25000) runReport calls instead of one truncated call, and every paged non-pivot request — now including cohort reports — carries a full-dimension sort. Documented in the PR description (GA4 quota analysis, default_concurrency unchanged) and covered by new unit tests. Warning-level: does not block APPROVE, but elevates Risk Level.

All other enforced gates PASS.

Note (not a gate failure): the PR description is now stale with respect to HEAD. 782169ee makes cohort requests receive orderBys, but the description still states orderBys is "omitted … for cohort requests", the Review guide says the guard is "dimensions / not-pivot / not-cohort", and the Test Coverage section says test_run_report_order_bys asserts ordering is "omitted for metric-only, cohort, and pivot reports". Worth refreshing those three spots so reviewers read the behavior that actually shipped.

⚠️ Risk Level: 4/5

Pagination semantics of every non-pivot runReport stream change (offset/limit in body_json, page size 100k → 25k) and paged requests now carry a full-dimension orderBys (cohort reports included as of HEAD); the anti-pattern gate FAIL forces risk ≥ 4.


📋 PR Details

Connector(s): source-google-analytics-data-api
PR: #83188
HEAD SHA: 782169ee974304f425f6ccff4084ff6e33ae13a6
Session: https://app.devin.ai/sessions/70ea24351ee84892852ce429d09a3c7a

Re-run of /ai-review: the previous APPROVE marker covered ac95b9d2. Delta since then is a single commit, 782169ee ("apply orderBys to cohort report requests"): the Jinja guard in request_body_json narrows from dimensions and not pivots and not cohort to dimensions and not pivots, so cohort reports now also carry the full-dimension orderBys, and the parametrized case in unit_tests/test_components.py flips from cohort_report_omits_order_bys (expected None) to cohort_report_orders_every_dimension (expected ordering over cohort, cohortNthDay). +7/−6 in manifest.yaml, +5/−5 in test_components.py; no other file changed.

🔍 Gate Evaluation Details

Gate-by-Gate Analysis

Gate Status Enforced? Details
PR Hygiene PASS Yes PR body is 8,664 raw chars of substantive content (What / How / Declarative-First / Review guide / Test Coverage / User Impact / Behavioral-change justification); visible content well over the 50-char floor, no template placeholders. Changelog row present for 2.11.0-rc.2 in docs/integrations/sources/google-analytics-data-api.md; Check Changelog Updated green. Peer feedback: 0 inline review comments; Baz (@bazarnov)'s review is APPROVED and the author replied (#83188 comment 5436511451) — nothing unresolved. The stale cohort wording flagged above is an accuracy nit, not a hygiene FAIL condition.
Code Hygiene PASS WARNING Source (manifest.yaml) and tests both changed: unit_tests/test_components.py (+243), unit_tests/conftest.py (+10), unit_tests/test_single_stream_per_report.py (+2/−1). Coverage evidence: Found.
Test Coverage PASS Yes Bug fix (fix(...) title, resolves airbytehq/oncall#13164) with new test content: test_dynamic_stream_paginates_run_report_results (25,001 records over two pages; limit: 25000 on request 1, offset: 25000 on request 2), test_dynamic_stream_orders_paged_run_report_requests_by_every_dimension, parametrized test_run_report_order_bys, and test_dynamic_pivot_streams_disable_pagination. The HEAD commit's behavior change is covered — the cohort parametrized case was updated in the same commit to assert the new expected orderBys.
Code Security PASS Yes No changed file matches auth/credential/token/secret path patterns. manifest.yaml diff hunks contain only paginator, request-body, orderBys template and comment lines — none of the tracked keywords (authenticator, OAuthAuthenticator, api_token, client_id, client_secret, refresh_token, access_token, api_key); page_token_option is a CDK paginator field, not a credential. metadata.yaml diff is dockerImageTag only (no allowedHosts, connectorBuildOptions, dockerRepository). Credentials appear only as dummy test fixtures.
Per-Record Performance PASS WARNING No per-record path changed (record_selector, transformations untouched). The orderBys Jinja loop runs once per request at request-body render time, not per record. Smaller pages reduce peak per-request memory (triage measured ~1.17 GiB RSS for a single 100k-row page).
Breaking Dependencies PASS WARNING No dependency or build files changed (pyproject.toml, poetry.lock, gradle untouched); Gradle Dependency Diff reports no change.
Backwards Compatibility PASS Yes (enforced) No spec file in the diff (spec required unchanged), no schemas/*.json change, no type/format change, no stream added/removed/renamed, no primary-key or cursor field or value change. Not a data-scope reduction — the change restores rows previously truncated at 100k; orderBys changes row order within a stream, not the set of rows or their keys, and the added cohort ordering is over dimensions the cohort report already emits. metadata.yaml diff is a version bump only (2.11.0-rc.1 → 2.11.0-rc.2), so no releases.breakingChanges entry is required.
Forwards Compatibility PASS Warning (elevates Risk Level) paginator / pagination_strategy / page_size keywords present, but no state, cursor, checkpoint, incremental_sync, or partition_router change — pagination and ordering are intra-slice and not persisted in state, so rollback to 2.11.0-rc.1 is safe (it resumes truncating at 100k). New end-to-end mocked reads demonstrate the paged behavior; the PR is self-declared revertible.
Behavioral Changes FAIL Warning (elevates Risk Level) page_size: 25000, body-injected limit, and the orderBys block in the manifest.yaml diff hunks change request volume and request shape: ceil(N/25000) calls per slice instead of one, each carrying a full-dimension sort, and as of 782169ee cohort requests now carry orderBys alongside cohortSpec. Justified in the PR description with GA4 Core quota figures (10 concurrent / 40k tokens per hour Standard; 50 / 400k for 360), default_concurrency unchanged at 4, and no throttling observed in six regression runs. The cohort orderBys acceptance is asserted by unit test only and by the commit's claim of live-API verification — not exercised by the /ai-prove-fix run. Warning-level, non-blocking.
Out-of-Scope Changes PASS Skip All 6 changed files are under airbyte-integrations/connectors/source-google-analytics-data-api/** or docs/integrations/sources/**.
CI Checks PASS Yes Core checks green at 782169ee: Test source-google-analytics-data-api Connector, Lint source-google-analytics-data-api Connector, Connector CI Checks Summary, Build and Verify Artifacts (source-google-analytics-data-api), Format Check, Check Changelog Updated, Docs / Vale, Docs / MarkDownLint, `source-google-analytics-data-api` Connector Test Results (36 ✅ / 2 💤 / 0 ❌). The only failures — source-google-analytics-data-api Progressive Rollout Gate and Connector Active Progressive Rollout Checks Summary — are release-management checks explicitly excluded from this gate (active rollout / RC state on master, not a defect in this diff). They still gate merge until the bypass checkbox is checked.
Live / E2E Tests PASS Yes Deferred to /ai-prove-fix, which concluded Proven (mechanism), no regression on live data: the pre-fix manifest emitted 100,000 of 160,000 rows in a single request while this branch emitted all 160,000 across 7 requests, and six comparison regression runs (control pinned to the pre-fix version) showed no record loss and no new errors. Caveat: that run predates both orderBys commits, so neither the ordering itself nor the new cohort orderBys was exercised live; they are covered by the parametrized unit tests, Baz (@bazarnov)'s verification against Google's runReport reference, and the author's stated live-API check.
📚 Evidence Consulted

Evidence

  • Changed files: 6 (manifest.yaml, metadata.yaml, 3 unit-test files, connector docs page) — +284/−12
  • CI checks: 49 check-runs at 782169ee; all core build/lint/test checks success; 2 failing entries, both progressive-rollout / release-management (excluded from CI Checks); source-google-analytics-data-api Pre-Release Checks success
  • PR labels: connectors/source/google-analytics-data-api, hyd-review, hyd-fix, hyd-prove, hyd-ready — no override/validation labels. hyd-review already present on the PR and on the originating issue airbytehq/oncall#13164
  • PR description: present (8,664 chars), with stale cohort wording noted above
  • Existing bot reviews: prior APPROVE markers at 140754d5, 8543128e, 89e8032b, ac95b9d2 (all superseded by 782169ee); human review APPROVED by Baz (@bazarnov) at ac95b9d2

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

☑️ Resolved — description refreshed for 782169ee. The three stale spots flagged in the review note (the cohort omission sentence, the "dimensions / not-pivot / not-cohort" guard in the Review guide, and the test_run_report_order_bys summary) now describe cohort requests receiving the full-dimension orderBys, and the test-suite head reference was updated from ac95b9d to 782169e. No code change — the code is the source of truth here and the description was the thing lagging.

I also re-ran the connector unit suite at 782169ee974: 33 passed, 0 failed.

Still needs a maintainer, not me: the 2.11.0-rc.2 version choice stacked onto the in-flight 2.11.0 rollout, and the active-rollout bypass acknowledgement checkbox (the only red checks) — I won't self-approve that.


Devin session

@airbyte-support-bot

Copy link
Copy Markdown
Contributor

↪️ Triggering /ai-ready per Hands-Free AI Triage Project triage next step.

Reason: /ai-review returned APPROVE bound to the current HEAD 782169ee, prove-fix passed, and the PR is assigned to Airbyte Support Bot. The previous readiness evaluation ran against the superseded HEAD ac95b9d2, so readiness is re-evaluated here against the reviewed code. Note the earlier evaluation FAILed only on change scope (RC version on an in-flight rollout); if that repeats, this PR is parked for a maintainer merge rather than escalated.

Devin session

@octavia-bot-hoard-suspended

octavia-bot-hoard-suspended Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Auto-merge evaluation: FAIL

Preconditions (all must pass)

Status Check Reasoning
✅ No Breaking Changes Version bump is 2.11.0-rc.1 -> 2.11.0-rc.2 (RC on an in-flight minor rollout), no major bump and no breakingChanges entry in metadata.yaml. No spec, schema, config option, or state format changes; no removed/renamed public APIs. The only behavioral change is that report slices >100k rows are now fully paginated (offset/limit moved into body_json, page_size 25000, full-dimension orderBys added), requiring no downstream code or configuration changes.
✅ Ai Review Passed Comment id 5452085628 by airbyte-support-bot contains '', which matches the current PR HEAD (782169e). Earlier APPROVE markers from the same author exist for 140754d, 8543128, 89e8032 and ac95b9d. Only the warning-level Behavioral Changes gate FAILs (non-blocking); decision is APPROVE.
✅ Airbyte Support Bot Assigned Airbyte Support Bot assignment confirms automated merge eligibility.
✅ No Destination Changes No destination-related changes detected.

Change scope (at least one must pass)

❌ No matching change scope detected.

Devin session | Workflow run

…4-pagination

Version landed at 2.11.3-rc.1.

Co-Authored-By: bot_apk <[email protected]>
Comment on lines 333 to 334
| Version | Date | Pull Request | Subject |
|:---------------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|

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.

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
| Version | Date | Pull Request | Subject |
|:---------------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Version | Date | Pull Request | Subject |
| :--------------- | :----------- | :--------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

@devin-ai-integration devin-ai-integration Bot added the hyd-defer Deferring the PR from the hydra-review-queue despite having a hyd-ready label label Sep 16, 2026
@pnilan
Patrick Nilan (pnilan) merged commit b5e9aac into master Sep 16, 2026
53 of 57 checks passed
@pnilan
Patrick Nilan (pnilan) deleted the devin/1785239083-ga4-pagination branch September 16, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connectors/source/google-analytics-data-api hyd-defer Deferring the PR from the hydra-review-queue despite having a hyd-ready label hyd-fix Playbook eval artifact hyd-prove Hydra: ai-prove-fix stage has run hyd-ready Hydra: ready for human review or merge hyd-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants