Skip to content

move error from display to caller #82409

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

Draft
wants to merge 14 commits into
base: devel
Choose a base branch
from
Draft

Conversation

bcoca
Copy link
Member

@bcoca bcoca commented Dec 12, 2023

done to avoid issues with proxying display calls
fixes #82358

ISSUE TYPE
  • Bugfix Pull Request

@ansibot ansibot added bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. has_issue ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. ci_verified Changes made in this PR are causing tests to fail. labels Dec 12, 2023
@sivel
Copy link
Member

sivel commented Dec 14, 2023

Since this exposed a potential issue with the strategy, can we also add a try/except around the dmethod call in the processor thread? That way should any other exception happen, it shouldn't cause issues. Would need some warning or at least a debug of the exception that happens in the thread.

@ansible ansible deleted a comment from ansibot Dec 14, 2023
@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Dec 14, 2023
@ansible ansible deleted a comment from ansibot Dec 14, 2023
@ansibot ansibot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Dec 14, 2023
@webknjaz
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jan 2, 2024
@nitzmahone nitzmahone self-requested a review January 4, 2024 19:02
@nitzmahone nitzmahone removed the needs_triage Needs a first human triage before being processed. label Jan 4, 2024
@ansibot ansibot added the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Feb 15, 2024
@bcoca bcoca force-pushed the display_removed_fix branch from bc488d5 to b15acb6 Compare October 25, 2024 14:31
@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Oct 25, 2024
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Nov 8, 2024
@ansible ansible deleted a comment from ansibot Feb 4, 2025
@bcoca bcoca force-pushed the display_removed_fix branch from 8977b44 to af1ce52 Compare February 4, 2025 19:42
@ansibot ansibot removed the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Feb 4, 2025
@ansible ansible deleted a comment from ansibot Feb 4, 2025
@bcoca bcoca force-pushed the display_removed_fix branch from af1ce52 to af32d7a Compare February 6, 2025 15:51
@ansible ansible deleted a comment from ansibot Feb 6, 2025
@ansibot ansibot removed ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Feb 6, 2025
@bcoca bcoca force-pushed the display_removed_fix branch from af32d7a to 3b061a4 Compare February 18, 2025 15:35
@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Feb 18, 2025
@ansible ansible deleted a comment from ansibot Feb 18, 2025
@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Feb 18, 2025
@ansibot
Copy link
Contributor

ansibot commented Feb 18, 2025

The test ansible-test sanity --test mypy [explain] failed with 1 error:

lib/ansible/utils/display.py:366:16: return-value: Incompatible return value type (got "_Wrapped[[Display, **P], str, [Any, **P], str]", expected "Callable[..., None]")

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Feb 19, 2025

The test ansible-test sanity --test mypy [explain] failed with 1 error:

lib/ansible/utils/display.py:359:65: valid-type: Variable "func" is not valid as a type

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Feb 19, 2025

The test ansible-test sanity --test mypy [explain] failed with 2 errors:

lib/ansible/utils/display.py:363:20: return-value: Incompatible return value type (got "str", expected "Callable[..., None]")
lib/ansible/utils/display.py:364:16: return-value: Incompatible return value type (got "_Wrapped[[Display, **P], str, [Any, **P], Callable[..., None]]", expected "Callable[..., None]")

click here for bot help

@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Mar 3, 2025
@ansibot ansibot added the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Apr 15, 2025
@mattclay
Copy link
Member

mattclay commented Jun 4, 2025

#82358 is no longer an issue in 2.19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug. ci_verified Changes made in this PR are causing tests to fail. data_tagging has_issue needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calling display.deprecated with removed=True break the proxy_display method
6 participants