Repository navigation
test: read the TES version from Funnel - #487
Conversation
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
Reviewer's GuideConfigurationConfigure the integration matrix to run Funnel with and without its TES-version label, and select the matching proTES overlay through
DocumentationExplain what each integration entry tests, how to run the service-info variant locally, and how the expanded checks affect release notes.
TestsCheck 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.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
Linked issuesChecked at commit 83e1e6c #486 test: read the TES version from Funnel · 3 of 3 met
|
Summary
The integration job now runs Funnel once with the label
tes.versionand 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 jobintegrationgets a matrix (fail-fast: false) with two entries. They run the same steps, and only the config overlay of proTES differs:Integration (label)usestests/integration/config.yaml, which still has the label, so the label path stays tested.Integration (service info)uses the newtests/integration/config-service-info.yaml, the same config without the label.The gate
CI passedis unchanged: the gate doesn't needintegration(it is inNOT_IN_GATE, by design), so no required check changes.tests/integration/compose.yaml:FOCA_CONFIG_OVERLAYis now/integration/${INTEGRATION_CONFIG:-config.yaml}, so a local run works as before by default.tests/test_workflows.py:test_integration_matrixchecks the entries, the overlay variable in Compose, and that the two configs differ only in Funnel's label.test_integration_versionschecks theversions.shsteps 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.mdsays which entry tests what, how to run theservice infoentry locally, and that release notes now cite three integration checks.docs/configuration.mdnotes 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 intests/test_chart.pyand the chart examples oftests/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 configresolvesFOCA_CONFIG_OVERLAYto/integration/config.yamlby default and to/integration/config-service-info.yamlwithINTEGRATION_CONFIG=config-service-info.yaml.Integration (label),Integration (service info)(its log showsINTEGRATION_CONFIG: config-service-info.yaml, andversions.sh … 1.1passes on Funnel without the label) andIntegration (TESK).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:
Enhancements:
CI:
Documentation:
Tests: