Skip to content

Add tracing support to mdtest#14935

Merged
MichaReiser merged 2 commits intomainfrom
micha/mdtest-tracing
Dec 13, 2024
Merged

Add tracing support to mdtest#14935
MichaReiser merged 2 commits intomainfrom
micha/mdtest-tracing

Conversation

@MichaReiser
Copy link
Member

@MichaReiser MichaReiser commented Dec 12, 2024

Summary

This PR extends the mdtest configuration with a log setting that can be any of:

  • true: Enables tracing
  • false: Disables tracing (default)
  • String: An ENV_FILTER similar to RED_KNOT_LOG
log = true

Closes #13865

Test Plan

I changed a test and tried log=true, log=false, and log=INFO

@MichaReiser MichaReiser added the ty Multi-file analysis & type inference label Dec 12, 2024
@MichaReiser MichaReiser changed the base branch from main to micha/rename-some-cli-options December 12, 2024 13:19
@github-actions
Copy link
Contributor

github-actions bot commented Dec 12, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

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

Nice, thank you!!

Base automatically changed from micha/rename-some-cli-options to main December 13, 2024 08:21
@MichaReiser MichaReiser enabled auto-merge (squash) December 13, 2024 09:05
@MichaReiser MichaReiser merged commit f52b1f4 into main Dec 13, 2024
@MichaReiser MichaReiser deleted the micha/mdtest-tracing branch December 13, 2024 09:10
dcreager added a commit that referenced this pull request Dec 13, 2024
* main:
  [red-knot] Display definition range in trace logs (#14955)
  [red-knot] Move the `ClassBase` enum to its own submodule (#14957)
  [red-knot] mdtest: python version requirements (#14954)
  [airflow]: Import modules that has been moved to airflow providers (AIR303) (#14764)
  [red-knot] Support `typing.TYPE_CHECKING` (#14952)
  Add tracing support to mdtest (#14935)
  Re-enable the fuzzer job on PRs (#14953)
  [red-knot] Improve `match` mdtests (#14951)
  Rename `custom-typeshed-dir`, `target-version` and `current-directory` CLI options (#14930)
  [red-knot] Add narrowing for 'while' loops (#14947)
  [`ruff`]  Skip SQLModel base classes for `mutable-class-default` (`RUF012`) (#14949)
  [red-knot] Tests for 'while' loop boundness (#14944)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[red-knot] Setup tracing for mdtests

3 participants