Skip to content

Conversation

@dandavison
Copy link
Contributor

@dandavison dandavison commented Sep 27, 2025

  • Add a newline before test output when --capture=no is active. This means that any printed output you create during debugging will start on a new line.
  • Run pydoctor --quiet. This causes us to see errors/warnings but not see hundreds of "moving..." lines telling us about files it is moving.

Note

Run pydoctor --quiet in docs generator and print a newline before test output when -s is used in pytest.

  • Docs/Build:
    • Quiet pydoctor invocation in scripts/gen_docs.py by running pydoctor --quiet.
  • Tests:
    • Add pytest_runtest_setup to print a leading newline for test output when -s is enabled in tests/conftest.py.

Written by Cursor Bugbot for commit 1083300. This will update automatically on new commits. Configure here.

sdk-python(dan-9986-serialization-context અ ) poe gen-docs
Poe => uv run scripts/gen_docs.py
Generating documentation...
/Users/dan/src/temporal/repos/sdk-python/temporalio/activity.py:291: Cannot find link target for "async def"
/Users/dan/src/temporal/repos/sdk-python/temporalio/client.py:7538: ambiguous ref to connect, could be temporalio.client.Client.connect, temporalio.client.CloudOperationsClient.connect
/Users/dan/src/temporal/repos/sdk-python/temporalio/client.py:7538: Cannot find link target for "connect"
/Users/dan/src/temporal/repos/sdk-python/temporalio/client.py:7538: ambiguous ref to connect, could be temporalio.client.Client.connect, temporalio.client.CloudOperationsClient.connect
/Users/dan/src/temporal/repos/sdk-python/temporalio/client.py:7538: Cannot find link target for "connect"
/Users/dan/src/temporal/repos/sdk-python/temporalio/contrib/openai_agents/workflow.py:63: Documented parameter "For other arguments" does not exist
/Users/dan/src/temporal/repos/sdk-python/temporalio/contrib/openai_agents/workflow.py:64: Documented parameter "refer to workflow start_activity" does not exist
/Users/dan/src/temporal/repos/sdk-python/temporalio/contrib/openai_agents/workflow.py:176: Documented parameter "fn" does not exist
/Users/dan/src/temporal/repos/sdk-python/temporalio/envconfig.py:187: Cannot find link target for "to_connect_config"
/Users/dan/src/temporal/repos/sdk-python/temporalio/envconfig.py:307: Cannot find link target for "temporalio.envconfig.ClientConfigProfile.to_connect_config", resolved from "ClientConfigProfile.to_connect_config"
/Users/dan/src/temporal/repos/sdk-python/temporalio/envconfig.py:308: Cannot find link target for "load_profile"
/Users/dan/src/temporal/repos/sdk-python/temporalio/nexus/_operation_handlers.py:112: Documented parameter "to pass to the workflow cancel method." does not exist, variable keywords should be documented with the "Keyword Arguments" section
/Users/dan/src/temporal/repos/sdk-python/temporalio/nexus/_util.py:128: Cannot find link target for "Operation"
/Users/dan/src/temporal/repos/sdk-python/temporalio/nexus/_util.py:42: Cannot find link target for "start"
/Users/dan/src/temporal/repos/sdk-python/temporalio/nexus/_util.py:161: Cannot find link target for "obj"
/Users/dan/src/temporal/repos/sdk-python/temporalio/nexus/_util.py:148: Cannot find link target for "OperationHandler"
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_workflow.py:620: Cannot find link target for "message"
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_workflow.py:620: Cannot find link target for "replacement_tb"
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/workflow_sandbox/_importer.py:307: Cannot find link target for "_Environment.maybe_restrict_module" (you can link to external docs with --intersphinx)
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_interceptor.py:471: Cannot find link target for "temporalio.workflow.start_nexus_operation"
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_tuning.py:77: Cannot find link target for "CompositeTuner"
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_tuning.py:30: Cannot find link target for "ResourceBasedTuner"
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_worker.py:164: Cannot find link target for "@nexusrpc.handler.service_handler" (you can link to external docs with --intersphinx)
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_worker.py:189: Cannot find link target for "async def"
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_worker.py:300: ambiguous ref to build_id, could be temporalio.worker.ReplayerConfig.build_id, temporalio.worker.WorkerConfig.build_id, temporalio.worker.WorkerDeploymentVersion.build_id
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_worker.py:300: Cannot find link target for "build_id"
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_worker.py:315: ambiguous ref to build_id, could be temporalio.worker.ReplayerConfig.build_id, temporalio.worker.WorkerConfig.build_id, temporalio.worker.WorkerDeploymentVersion.build_id
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_worker.py:315: Cannot find link target for "build_id"
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_worker.py:316: ambiguous ref to use_worker_versioning, could be temporalio.worker.WorkerConfig.use_worker_versioning, temporalio.worker.WorkerDeploymentConfig.use_worker_versioning
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_worker.py:316: Cannot find link target for "use_worker_versioning"
/Users/dan/src/temporal/repos/sdk-python/temporalio/common.py:1091: Cannot find link target for "." (you can link to external docs with --intersphinx)
/Users/dan/src/temporal/repos/sdk-python/temporalio/worker/_workflow_instance.py:180: Documented parameter "codec will have serialization context set appropriately for that command." does not exist
/Users/dan/src/temporal/repos/sdk-python/temporalio/workflow.py:4301: Cannot find link target for "Workflow.get_current_details" (you can link to external docs with --intersphinx)
/Users/dan/src/temporal/repos/sdk-python/temporalio/workflow.py:5247:
Cannot find link target for "await"
@dandavison dandavison requested a review from a team as a code owner September 27, 2025 14:55

def pytest_runtest_setup(item):
"""Print a newline so that custom printed output starts on new line."""
if item.config.getoption("-s"):
Copy link

Choose a reason for hiding this comment

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

Bug: Pytest Capture Status Detection Flaw

The pytest_runtest_setup hook's check for item.config.getoption("-s") doesn't reliably detect when pytest's output capturing is disabled. The -s flag is a shorthand for --capture=no, so checking for it directly may not accurately reflect the capture status.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked that; it does.

@dandavison dandavison merged commit 02322ad into main Sep 29, 2025
26 of 28 checks passed
@dandavison dandavison deleted the dan-qol branch September 29, 2025 23:31
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.

4 participants