Skip to content

test(pipeline): cover async attribution across input arrangements (ITL-1437) - #535

Merged
eywalker merged 1 commit into
mainfrom
eywalker/itl-1437-async-attribution-test-coverage
Nov 24, 2026
Merged

eywalker merged 1 commit into
mainfrom
eywalker/itl-1437-async-attribution-test-coverage

Conversation

@eywalker

@eywalker eywalker commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Expand the three-source attribution regression to cover two tags and two data columns, two layouts, and plain, data-tag, and mixed roles.
  • Assert exact sync rows and provenance and compare async output as row sets under two controlled arrival schedules.

This is test coverage for ITL-1437, following up on the CodeRabbit finding on #533.

Verification

  • 111 targeted tests passed across the run-summary and explain modules.
  • Ruff lint and format, whole-repository basedpyright, and golden hash checks passed.

Summary by CodeRabbit

  • Tests
    • Expanded coverage for shared-input result reuse across different column arrangements and data roles.
    • Added checks that synchronous and asynchronous runs produce matching results and correctly identify which source computed them.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The shared-input run summary test now uses Arrow-table fixtures and a two-input format_reading pod. It checks computed and reused rows, output values, and source attribution across configurable roles, column arrangements, and synchronous and asynchronous runs.

Changes: Shared-input run summary coverage

Layer / File(s) Summary
Configure shared-input cases and verify attribution
tests/test_pipeline/test_job_run_summary.py
The test uses configurable role and column arrangements with gated Arrow-table sources. It checks computed and reused row counts, reading values, synchronous ordering, asynchronous row results, and traces keyed by both tag values.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to 824e5

This change only expands regression test coverage for shared-input attribution. It has no production behavior impact and no concrete merge risk was identified.

Security architecture risk: Minimal · up to 824e5

This PR expands test coverage for which source computes or reuses results. It does not change how production jobs run, store results, or expose data.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "test(pipeline): cover async attribution across input arrangements (ITL-1437)" matches the changeset. The raw summary describes tests for shared-input result reuse across column arrangements…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test(pipeline): cover async attribution across input arrangements (ITL-1437)" matches the changeset. The raw summary describes tests for shared-input result reuse across column arrangements, verifying the computing source and comparing sync and async row results. The PR objectives describe the same regression coverage for three-source attribution across input layouts, roles, and async arrival schedules. The title is concise, specific, and conveys the primary change. It is a test-only change, and the title says so with the conventional commit prefix.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Usage-based review receipt

Note

This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d31d7e9 and 824e5f9.

Files selected for processing: 1

  • tests/test_pipeline/test_job_run_summary.py

Limit details: You’ve used the included review currently available. Your 106 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Recent review details

Context from checks skipped due to timeout: 4

  • GitHub Check: CodeRabbit
  • GitHub Check: Tests (3.13)
  • GitHub Check: Ruff and basedpyright
  • GitHub Check: PostgreSQL tests (3.13)
Additional context used

Code guidelines: 1

CLAUDE.md — auto-discovered
Path-based instructions: 3

Source excerpt: Tests and golden fixtures that build a source with tag columns pass `tag_only_columns=True` unless the test is about the default (developer, November 16, 2026, ITL-1159).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • tests/test_pipeline/test_job_run_summary.py
Source excerpt: Tests use the **public interface** wherever possible (developer, November 10, 2026): drive an operator by calling it, `op(stream)`, and read the result through the stream's public methods.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • tests/test_pipeline/test_job_run_summary.py
Use [Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) Python docstrings everywhere.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • tests/test_pipeline/test_job_run_summary.py
Learnings: 1

Common learnings

Learnt from: CR
Repo: metamorphic-labs/orcapod-python PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-11-24T01:41:10.097Z
Learning: Applies to tests/** : Source excerpt:
# Claude Code instructions for orcapod-python

## Testing conventions

Every argument or input that can take several items (column names, a mapping, keywords,
input streams, sources to bind, output keys) is tested (developer, November 17, 2026,
ITL-1236): with two or more items; in more than one order, asserting what the order does or
must not change (rows, column order, content hash, pipeline hash, system-tag column names);
in each role it accepts (plain tag, data, data-tag: build the role you test, whatever the
`tag_only_columns` default above says); on inputs with two or more tag columns AND two or
more data columns, in more than one arrangement (tag order, table layout); and on the sync
and the async path. A test whose streams have one tag and one data column does not test an
operator. The shared family of such inputs is `tests/test_core/operators/several_items.py`;
the inventory is `docs/dev/specs/itl-1236-several-item-test-audit.md`. The docs...

@eywalker eywalker changed the title Expand async attribution regression coverage test(pipeline): cover async attribution across input arrangements (ITL-1437) Nov 24, 2026
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@eywalker
eywalker merged commit d7df9e5 into main Nov 24, 2026
16 checks passed
@eywalker
eywalker deleted the eywalker/itl-1437-async-attribution-test-coverage branch November 24, 2026 09:58
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.

1 participant