-
Notifications
You must be signed in to change notification settings - Fork 14
chore: align ci titles and group tests #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,124 @@ | ||
| .DEFAULT_GOAL := help | ||
|
|
||
| # ── Pytest marker expression ─────────────────────────────────────── | ||
| # Override on the command line: make test MARKER="integration" | ||
| # Default excludes integration tests for everyday local development. | ||
| MARKER ?= not integration | ||
|
|
||
| # ── Video-related test paths (single source of truth) ────────────── | ||
| # When you add a new video test file, add it here. Both test (via | ||
| # --ignore) and test-video (via positional args) stay in sync. | ||
| VIDEO_PATHS := \ | ||
| getstream/video \ | ||
| tests/rtc \ | ||
| tests/test_audio_stream_track.py \ | ||
| tests/test_connection_manager.py \ | ||
| tests/test_connection_utils.py \ | ||
| tests/test_signaling.py \ | ||
| tests/test_video_examples.py \ | ||
| tests/test_video_integration.py \ | ||
| tests/test_video_openai.py \ | ||
| tests/test_webrtc_generation.py | ||
|
|
||
| # ── Manual tests (require local infrastructure, never run in CI) ─── | ||
| MANUAL_PATHS := \ | ||
| tests/test_tracing_jaeger_manual.py \ | ||
| tests/test_metrics_prometheus_manual.py | ||
|
|
||
| # ── Derived ignore flags ────────────────────────────────────────── | ||
| VIDEO_IGNORE := $(addprefix --ignore=,$(VIDEO_PATHS)) | ||
| MANUAL_IGNORE := $(addprefix --ignore=,$(MANUAL_PATHS)) | ||
|
|
||
| # ── Typecheck exclusions ────────────────────────────────────────── | ||
| TY_EXCLUDES := \ | ||
| --exclude "getstream/models/" \ | ||
| --exclude "getstream/video/rtc/pb/" \ | ||
| --exclude "**/rest_client.py" \ | ||
| --exclude "**/async_rest_client.py" \ | ||
| --exclude "getstream/chat/channel.py" \ | ||
| --exclude "getstream/chat/async_channel.py" \ | ||
| --exclude "getstream/chat/client.py" \ | ||
| --exclude "getstream/chat/async_client.py" \ | ||
| --exclude "getstream/common/client.py" \ | ||
| --exclude "getstream/common/async_client.py" \ | ||
| --exclude "getstream/moderation/client.py" \ | ||
| --exclude "getstream/moderation/async_client.py" \ | ||
| --exclude "getstream/video/client.py" \ | ||
| --exclude "getstream/video/async_client.py" \ | ||
| --exclude "getstream/video/call.py" \ | ||
| --exclude "getstream/video/async_call.py" \ | ||
| --exclude "getstream/feeds/client.py" \ | ||
| --exclude "getstream/feeds/feeds.py" \ | ||
| --exclude "getstream/stream.py" | ||
|
|
||
| # ── Targets ─────────────────────────────────────────────────────── | ||
|
|
||
| .PHONY: test test-video test-all test-integration test-jaeger test-prometheus lint format typecheck check regen help | ||
|
|
||
| ## Run non-video tests (chat, feeds, moderation, etc.) | ||
| test: | ||
| uv run pytest -m "$(MARKER)" tests/ getstream/ $(VIDEO_IGNORE) $(MANUAL_IGNORE) | ||
|
|
||
| ## Run video/WebRTC tests only | ||
| test-video: | ||
| uv run pytest -m "$(MARKER)" $(VIDEO_PATHS) | ||
|
|
||
| ## Run all tests (non-video + video), excluding manual tests | ||
| test-all: | ||
| uv run pytest -m "$(MARKER)" tests/ getstream/ $(MANUAL_IGNORE) | ||
|
|
||
| ## Run integration tests for both groups | ||
| test-integration: | ||
| $(MAKE) test MARKER="integration" | ||
| $(MAKE) test-video MARKER="integration" | ||
|
|
||
| ## Run the Jaeger tracing manual test (requires local Jaeger on :4317) | ||
| test-jaeger: | ||
| uv run pytest -m "integration" tests/test_tracing_jaeger_manual.py | ||
|
|
||
| ## Run the Prometheus metrics manual test (requires telemetry deps) | ||
| test-prometheus: | ||
| uv run pytest -m "integration" tests/test_metrics_prometheus_manual.py | ||
|
|
||
| ## Run Ruff linter and formatter check | ||
| lint: | ||
| uv run ruff check . | ||
| uv run ruff format --check . | ||
|
|
||
| ## Auto-fix lint issues and format | ||
| format: | ||
| uv run ruff check --fix . | ||
| uv run ruff format . | ||
|
|
||
| ## Run ty type checker | ||
| typecheck: | ||
| uvx ty check getstream/ $(TY_EXCLUDES) | ||
|
|
||
| ## Run full check: lint + typecheck + non-video tests | ||
| check: lint typecheck test | ||
|
|
||
| ## Regenerate all generated code (OpenAPI + WebRTC protobuf) | ||
| regen: | ||
| ./generate.sh | ||
| ./generate_webrtc.sh | ||
|
|
||
| ## Show available targets | ||
| help: | ||
| @echo "Usage: make <target> [MARKER=\"...\"]" | ||
| @echo "" | ||
| @echo "Test targets:" | ||
| @echo " test Non-video tests (default MARKER='not integration')" | ||
| @echo " test-video Video/WebRTC tests only" | ||
| @echo " test-all All tests except manual infrastructure tests" | ||
| @echo " test-integration Integration tests (both non-video and video)" | ||
| @echo " test-jaeger Jaeger tracing manual test (needs Docker Jaeger)" | ||
| @echo " test-prometheus Prometheus metrics manual test (needs telemetry deps)" | ||
| @echo "" | ||
| @echo "Quality targets:" | ||
| @echo " lint Ruff linter + format check" | ||
| @echo " format Auto-fix lint issues and format code" | ||
| @echo " typecheck ty type checker" | ||
| @echo " check Full check: lint + typecheck + non-video tests" | ||
| @echo "" | ||
| @echo "Code generation:" | ||
| @echo " regen Regenerate OpenAPI + WebRTC protobuf code" |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the new Markdown hierarchy/language lint regressions.
These sections read as top-level siblings of
## Releaseand## OpenAPI & Protobuf, so they should be##headings instead of###. The added command snippets are also all shell examples, so fencing them asshellwill clear the MD001/MD040 warnings and keep the document structure consistent.Also applies to: 27-64
🧰 Tools
🪛 markdownlint-cli2 (0.21.0)
[warning] 3-3: Heading levels should only increment by one level at a time
Expected: h2; Actual: h3
(MD001, heading-increment)
[warning] 7-7: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
[warning] 18-18: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents