Skip to content

test(airflow-routing): require connection_verified on openclaw fixture#1303

Merged
muddlebee merged 1 commit intoTracer-Cloud:mainfrom
Davidson3556:fix-airflow-routing-openclaw-connection-verified
May 5, 2026
Merged

test(airflow-routing): require connection_verified on openclaw fixture#1303
muddlebee merged 1 commit intoTracer-Cloud:mainfrom
Davidson3556:fix-airflow-routing-openclaw-connection-verified

Conversation

@Davidson3556
Copy link
Copy Markdown
Contributor

Summary

  • _seed_action_names_for_sources was tightened in #141193c6 (openclaw runtime validation) to only seed search_openclaw_conversations / list_openclaw_tools when available_sources["openclaw"]["connection_verified"] is truthy.
  • The companion test in test_airflow_routing.py was missed in that PR's fixture updates and still passed {"url": ...} only, so CI started failing with assert 'search_openclaw_conversations' in ['get_s3_object', 'get_recent_airflow_failures', 'get_airflow_dag_runs'].
  • Adds "connection_verified": True to the openclaw fixture so the test reflects the current contract.

Test plan

  • python -m pytest tests/nodes/plan_actions/test_airflow_routing.py -v — all 3 pass
  • make lint
  • make format-check
  • make typecheck

The openclaw seed branch in _seed_action_names_for_sources was tightened
to require a truthy connection_verified flag, but this test still passed
the bare URL shape and started failing CI with
"search_openclaw_conversations" missing from the seeded list.
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 5, 2026

Greptile Summary

  • Fixes a broken test by adding "connection_verified": True to the openclaw fixture in test_seed_action_names_for_sources_keeps_existing_seed_sources, aligning it with the tightened validation introduced in #141193c6.
  • No production code is changed; the fix is purely in test fixture data.

Confidence Score: 4/5

Safe to merge — single-line test fixture fix with no production code changes.

Only P2 findings (missing negative-path test coverage). The fix itself is correct and minimal.

No files require special attention.

Important Files Changed

Filename Overview
tests/nodes/plan_actions/test_airflow_routing.py Adds connection_verified: True to the openclaw fixture so the test aligns with the tightened _seed_action_names_for_sources contract; no logic changed, only fixture data.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[available_sources] --> B{source == openclaw?}
    B -->|Yes| C{connection_verified truthy?}
    C -->|True| D[Seed search_openclaw_conversations\nlist_openclaw_tools]
    C -->|False / missing| E[Skip openclaw actions]
    B -->|No| F[Process other sources\ns3_audit, airflow, grafana...]
Loading

Comments Outside Diff (1)

  1. tests/nodes/plan_actions/test_airflow_routing.py, line 19-36 (link)

    P2 Missing negative-path coverage for connection_verified

    The PR adds the connection_verified: True case, but there is no test asserting that search_openclaw_conversations and list_openclaw_tools are absent when connection_verified is False or omitted. Without it, a regression that accidentally seeds openclaw actions for unverified sources would go undetected.

Reviews (1): Last reviewed commit: "test(airflow-routing): require connectio..." | Re-trigger Greptile

@muddlebee muddlebee merged commit e879ae4 into Tracer-Cloud:main May 5, 2026
10 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

🎯 Bullseye. @Davidson3556 opened a PR, kept the vibes clean, and got it merged. Absolute cinema. 🎬


👋 Join us on Discord - OpenSRE : hang out, contribute, or hunt for features and issues. Everyone's welcome.

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