Skip to content

test: read the TES version from Funnel - #487

Merged
uniqueg merged 1 commit into
devfrom
test/486-funnel-service-info
Nov 13, 2026
Merged

uniqueg merged 1 commit into
devfrom
test/486-funnel-service-info

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

The integration job now runs Funnel once with the label tes.version and once without it. Without the label, proTES has to read Funnel's TES version (1.1.0) from Funnel's service info.

  • .github/workflows/ci.yml: the job integration gets a matrix (fail-fast: false) with two entries. They run the same steps, and only the config overlay of proTES differs:

    • Integration (label) uses tests/integration/config.yaml, which still has the label, so the label path stays tested.
    • Integration (service info) uses the new tests/integration/config-service-info.yaml, the same config without the label.

    The gate CI passed is unchanged: the gate doesn't need integration (it is in NOT_IN_GATE, by design), so no required check changes.

  • tests/integration/compose.yaml: FOCA_CONFIG_OVERLAY is now /integration/${INTEGRATION_CONFIG:-config.yaml}, so a local run works as before by default.

  • tests/test_workflows.py:

    • The new test_integration_matrix checks the entries, the overlay variable in Compose, and that the two configs differ only in Funnel's label.
    • test_integration_versions checks the versions.sh steps against the config of every entry. Without a label, it takes the version that the backend reports (REPORTED: Funnel 1.1, else 1.0).
  • Docs:

    • docs/development.md says which entry tests what, how to run the service info entry locally, and that release notes now cite three integration checks.
    • docs/configuration.md notes that CI runs Funnel both with and without the label.

Light lane: only CI and test configuration, tests and docs change. No secrets, permissions, release workflow or app code are touched, so I reviewed the diff myself and skipped the reviewer subagents.

Closes #486

Verification

  • pre-commit run --all-files: all hooks pass (ruff, semgrep, gitleaks, actionlint, ast-grep, mypy).
  • coverage run -m pytest: 1687 passed, 100% coverage. 191 failed, all in tests/test_chart.py and the chart examples of tests/test_config_examples.py, because Helm isn't usable on this machine (same as in test: run the integration tests on Funnel 0.12.3 #485). CI covers them.
  • mkdocs build --strict: passes.
  • docker compose config resolves FOCA_CONFIG_OVERLAY to /integration/config.yaml by default and to /integration/config-service-info.yaml with INTEGRATION_CONFIG=config-service-info.yaml.
  • CI: all checks pass on 83e1e6c (run 43347728432). That includes Integration (label), Integration (service info) (its log shows INTEGRATION_CONFIG: config-service-info.yaml, and versions.sh … 1.1 passes on Funnel without the label) and Integration (TESK).
  • Note: on runs for edits of the PR, which skip the integration jobs, GitHub lists the skipped matrix job under its raw name Integration (${{ matrix.version-from }}). It isn't a required check, so it doesn't matter.

Open questions

None.

🤖 Generated with Claude Code

https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV

Summary by Sourcery

Test Funnel TES version discovery through both configuration labels and backend service information.

New Features:

  • Run integration coverage in parallel for Funnel using both its configured TES version label and its reported service information.

Enhancements:

  • Make integration configuration selection configurable while preserving the existing local default.
  • Validate CI integration matrix entries, configuration parity, and expected TES versions across all backend configurations.

CI:

  • Expand the integration workflow into non-failing-fast label and service-info matrix entries.

Documentation:

  • Document the two integration paths, local service-info execution, and the additional integration check in release notes.

Tests:

  • Add workflow tests covering the integration matrix, configuration differences, and TES version expectations.

Run the integration job in two matrix entries that differ in the config
overlay of proTES only: `label` keeps the label `tes.version` of Funnel
(`config.yaml`), `service info` drops it
(`config-service-info.yaml`), so that proTES reads Funnel's TES version
from its service info. `tests/integration/compose.yaml` takes the
overlay from `INTEGRATION_CONFIG`, by default `config.yaml`.

`tests/test_workflows.py` checks the matrix, that the two configs differ
in the label only, and that the steps' TES versions match the configs of
both entries. The docs say which entry tests what.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
@uniqueg uniqueg self-assigned this Nov 13, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Configure the integration matrix to run Funnel with and without its TES-version label, and select the matching proTES overlay through INTEGRATION_CONFIG while keeping the default local configuration unchanged.

  • .github/workflows/ci.yml L419-439, L460-462, L481-482
  • tests/integration/compose.yaml L8-11, L17, L26
  • tests/integration/config-service-info.yaml L1-46
  • tests/integration/config.yaml L23-25

Documentation

Explain what each integration entry tests, how to run the service-info variant locally, and how the expanded checks affect release notes.

  • docs/configuration.md L321-322
  • docs/development.md L84-99, L651-655 (+5 small edits)

Tests

Check the integration matrix and overlay selection, verify that the two overlays differ only by Funnel’s version label, and validate version-check steps against every entry’s configuration.

  • tests/test_workflows.py L24-28, L128-186, L191-212 (+1 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 proTES | 🛠️ Build #35855977 | 📁 Comparing 83e1e6c against latest (12ad575)

  🔍 Preview build  

2 files changed
± configuration/index.html
± development/index.html

@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (12ad575) to head (83e1e6c).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #487   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        31           
  Lines         3038      3038           
=========================================
  Hits          3038      3038           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review November 13, 2026 01:58
@sourcery-ai

sourcery-ai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Linked issues

Checked at commit 83e1e6c

#486 test: read the TES version from Funnel · 3 of 3 met

# Requirement Status Notes
1 CI runs the Funnel integration tests without the tes.version label so the version comes from service info. ✅ Met The service info matrix entry uses config-service-info.yaml, which omits Funnel’s label; the version check still expects TES 1.1.
2 Keep the run with the label so the label path stays tested. ✅ Met The label matrix entry uses config.yaml, which retains the label.
3 docs/development.md says which entry tests what. ✅ Met The docs describe both entries and the version source each tests.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 4bbca3d into dev Nov 13, 2026
65 checks passed
@uniqueg
uniqueg deleted the test/486-funnel-service-info branch November 13, 2026 02:10
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.

test: read the TES version from Funnel

1 participant