test: consumer-contract gate for bart26k-lecture 14_team_4_submission.qmd#189
Merged
Merged
Conversation
….qmd Statically verifies the protected lecture document's API surface (imports, ConfigEntsoe kwargs, MultiTask pipeline methods, run_task_spotoptim signature) against the installed packages, always parsing the most recent qmd version (TEAM4_QMD env var, skipped when absent). Decider requirement recorded in ADR adr-multitask-configmulti-merge (2026-06-06). First run caught real drift: the qmd needs spotforecast2-safe >= 16.4.0 (target-corruption feature, #328) while the lock held 16.3.0 — lock upgraded to 16.4.0 accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Collaborator
Author
|
🎉 This PR is included in version 5.0.0-rc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Collaborator
Author
|
🎉 This PR is included in version 5.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
tests/test_consumer_contract_team4.py— a consumer-contract gate protecting the lecture documentbart26k-lecture/14_team_4_submission.qmd(decider requirement recorded in ADR adr-multitask-configmulti-merge, 2026-06-06, and tbb-skills4agents work item #1).The test parses the most recent version of the qmd at test time (path via
TEAM4_QMDenv var, module skipped when absent — CI without the lecture repo stays green) and statically verifies its API surface against the installed packages:spotforecast2/spotforecast2_safeimport in its{python}cells resolvesConfigEntsoe(...)constructor keywords bind against the current signatureMultiTask(...)binds; non-signature keywords are validated as config fields; every pipeline method invoked on the instance exists with a compatible signatureNo document render is performed (that would train models and need ENTSO-E credentials).
Lock change
First run caught real drift: the qmd requires spotforecast2-safe ≥ 16.4.0 (
target_qc_range_mw,apply_target_corruption_policy— target-corruption feature, #328) while the lock held 16.3.0.uv.lockupgraded accordingly (constraint>=16.3.0,<17unchanged).Verification
uv run pytest tests/ -q→ 1156 passed (includes the executable docs-example tests)uv run ruff check src/ tests/→ cleanquarto render --no-cachenot re-run (change is a test file + lock bump; docs-example tests cover the executed snippets)🤖 Generated with Claude Code