Skip to content

Conversation

@kastiglione
Copy link

No description provided.

@kastiglione kastiglione requested a review from a team as a code owner March 20, 2025 20:01
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test

textwrap.dedent(
r"""
\(Task<\(\), Error>\) task = id:(\d+) flags:(?:running\|)?enqueued\|future \{
\(Task<\(\), Error>\) task = id:(\d+) flags:(?:running\|)?(?:enqueued\|)?future \{

Choose a reason for hiding this comment

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

Actually, I'm still confused by this regex.
Why is the | part of the group?
What if enqueued is the last attribute?

Copy link
Author

Choose a reason for hiding this comment

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

  1. the flags are in a fixed order, enqueued will be after running (by design)
  2. the flags are | separated, and if enqueued is present, then it will be followed by the |

Copy link
Author

Choose a reason for hiding this comment

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

I plan to revisit these tests. This change (llvm#131475) is one of the pieces I'm working on in spare time be able to structure these tests with more easy to read regex.

Choose a reason for hiding this comment

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

ah.. because future is always there. Makes sense.

@kastiglione
Copy link
Author

@swift-ci test windows

1 similar comment
@kastiglione
Copy link
Author

@swift-ci test windows

@kastiglione kastiglione merged commit 2ec15cf into stable/20240723 Mar 21, 2025
3 checks passed
@kastiglione kastiglione deleted the dl/lldb-Fix-regex-in-TestSwiftTaskSyntheticProvider branch March 21, 2025 15:01
kastiglione added a commit that referenced this pull request Mar 24, 2025
kastiglione added a commit that referenced this pull request Mar 24, 2025
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.

3 participants